<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>buxiangshuo (部响烁)</title>
    <link>https://ruby-china.org/buxiangshuo</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>多个 checkbox 同时提交</title>
      <description>&lt;p&gt;如果模型里有 5 个 &lt;code&gt;string&lt;/code&gt; 字段，然后 &lt;code&gt;form&lt;/code&gt; 里有 25 个 &lt;code&gt;checkbox&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;用户可以随意填写 5 个，然后这 5 个选择项 &lt;code&gt;value&lt;/code&gt; 填充到 5 个 &lt;code&gt;string&lt;/code&gt; 字段里&lt;/p&gt;

&lt;p&gt;请问大家这个怎么实现？&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Fri, 10 May 2013 15:19:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/10878</link>
      <guid>https://ruby-china.org/topics/10878</guid>
    </item>
    <item>
      <title>API 的 JSON 如何在 view 中显示，或者用什么 gem 呢？</title>
      <description>&lt;p&gt;正在准备使用豆瓣 API 做一个关于电影的小应用，用来交作业的&lt;/p&gt;

&lt;p&gt;现在豆瓣统一用 json 了，例如：&lt;a href="http://api.douban.com/v2/movie/subject/1764796" rel="nofollow" target="_blank"&gt;http://api.douban.com/v2/movie/subject/1764796&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;但是不知道如何在 rails 中使用，或者有什么比较好用的 gem 么？&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Thu, 09 May 2013 15:08:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/10847</link>
      <guid>https://ruby-china.org/topics/10847</guid>
    </item>
    <item>
      <title>关于创建群组，项目拥有者的问题，哪位大神能给一点思路指导？</title>
      <description>&lt;p&gt;正在试着完成这样的逻辑：&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="n"&gt;has_many&lt;/span&gt; &lt;span class="n"&gt;teams&lt;/span&gt;
&lt;span class="n"&gt;team&lt;/span&gt; &lt;span class="n"&gt;has_many&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;
&lt;span class="n"&gt;team&lt;/span&gt; &lt;span class="n"&gt;has_many&lt;/span&gt; &lt;span class="n"&gt;projects&lt;/span&gt;
&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="n"&gt;has_many&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;之间的 &lt;code&gt;user_teamship&lt;/code&gt;，&lt;code&gt;team_projectship&lt;/code&gt;，&lt;code&gt;user_projectship&lt;/code&gt; 之类的工作都写好了
只是不知道怎样继续进行下去的思路，用的 &lt;code&gt;devise&lt;/code&gt;，&lt;code&gt;cancan&lt;/code&gt;
PS：或许我欲速则不达了~&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Sat, 20 Apr 2013 00:35:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/10355</link>
      <guid>https://ruby-china.org/topics/10355</guid>
    </item>
    <item>
      <title>Rails 有没有好用的 Calendar？</title>
      <description>&lt;p&gt;目前看到这两个 gem：&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/elevation/event_calendar" rel="nofollow" target="_blank"&gt;https://github.com/elevation/event_calendar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/excid3/simple_calendar" rel="nofollow" target="_blank"&gt;https://github.com/excid3/simple_calendar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;但是 &lt;code&gt;event_calendat&lt;/code&gt; 好久都没有更新了，大家有没有什么推荐的？&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Sun, 14 Apr 2013 15:36:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/10190</link>
      <guid>https://ruby-china.org/topics/10190</guid>
    </item>
    <item>
      <title>学习多态遇到的一点问题</title>
      <description>&lt;p&gt;刚刚开始学习 ruby on rails
正在做&lt;code&gt;comment&lt;/code&gt;的时候学习多态的用法
按照这个做的：&lt;a href="http://terenceponce.github.io/blog/2012/03/02/polymorphic-associations-in-rails-32/" rel="nofollow" target="_blank"&gt;http://terenceponce.github.io/blog/2012/03/02/polymorphic-associations-in-rails-32/&lt;/a&gt;
我 scaffold 了&lt;code&gt;doc&lt;/code&gt;，&lt;code&gt;issue&lt;/code&gt;，&lt;code&gt;discuss&lt;/code&gt;，想要每个都有&lt;code&gt;comment&lt;/code&gt;
但是不知道为什么运行后抛出这个错误：&lt;code&gt;undefined method 'each' for nil:NilClass&lt;/code&gt;
请问怎样解决？
谢谢大家~&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Thu, 11 Apr 2013 21:04:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/10116</link>
      <guid>https://ruby-china.org/topics/10116</guid>
    </item>
    <item>
      <title>google-bootstrap 如何在 rails 中使用</title>
      <description>&lt;p&gt;&lt;a href="http://todc.github.com/google-bootstrap/index.html" rel="nofollow" target="_blank"&gt;http://todc.github.com/google-bootstrap/index.html&lt;/a&gt;
这个是 google 样式的 bootstrap，非常喜欢
但是由于刚刚接触 rails，不太清楚如何使用，直接使用 assets 的话样式会出现问题
不知道哪里的问题，有没有哪位大虾能够指点一下，谢谢啦～～&lt;/p&gt;</description>
      <author>buxiangshuo</author>
      <pubDate>Wed, 16 Jan 2013 13:53:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/8110</link>
      <guid>https://ruby-china.org/topics/8110</guid>
    </item>
  </channel>
</rss>
