<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>a8885313 (z.赫本)</title>
    <link>https://ruby-china.org/a8885313</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>关于 will_paginate 自定义 View</title>
      <description>&lt;p&gt;使用 will_paginate 分页时，想自定义 View，知道是继承 WillPaginate::ViewHelpers::LinkRenderer 然后用 renderer 指定，但是不知到实现那些方法 ,有什么文档么&lt;/p&gt;</description>
      <author>a8885313</author>
      <pubDate>Mon, 28 Jan 2013 20:00:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/8440</link>
      <guid>https://ruby-china.org/topics/8440</guid>
    </item>
    <item>
      <title>使用 will_paginate 分页问题</title>
      <description>&lt;p&gt;class BlogYear &amp;lt; ActiveRecord::Base
default_scope :order =&amp;gt; "name Desc"
attr_accessible :name ,:blogs
has_many :blogs
end&lt;/p&gt;

&lt;p&gt;使用 will_paginate 给 BlogYear 中 blogs 分页，&lt;/p&gt;

&lt;p&gt;class Blog &amp;lt; ActiveRecord::Base
belongs_to :blog_year
attr_accessible :content , :title...
end&lt;/p&gt;

&lt;p&gt;并不能直接给 Blog 分页因为要根据 BlogYear 分组&lt;/p&gt;</description>
      <author>a8885313</author>
      <pubDate>Wed, 16 Jan 2013 16:04:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/8117</link>
      <guid>https://ruby-china.org/topics/8117</guid>
    </item>
    <item>
      <title>使用 will_paginate 分页问题</title>
      <description>&lt;p&gt;class BlogYear &amp;lt; ActiveRecord::Base
  default_scope :order =&amp;gt; "name Desc"
  attr_accessible :name ,:blogs
  has_many :blogs
end&lt;/p&gt;

&lt;p&gt;使用 will_paginate 给 BlogYear 中 blogs 分页，&lt;/p&gt;

&lt;p&gt;class Blog &amp;lt; ActiveRecord::Base
  belongs_to :blog_year
  attr_accessible :content , :title...
end&lt;/p&gt;

&lt;p&gt;并不能直接给 Blog 分页因为要根据 BlogYear 分组&lt;/p&gt;</description>
      <author>a8885313</author>
      <pubDate>Wed, 16 Jan 2013 14:55:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/8114</link>
      <guid>https://ruby-china.org/topics/8114</guid>
    </item>
    <item>
      <title>文件域中有没有什么事件能在单击打开后触发的</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/5bbba3a2ab29ba1fa53f44e965af9e67.jpg" title="" alt=""&gt;
&amp;lt;%= u.file_field :head_url,:size =&amp;gt; 25 %&amp;gt; 文件域中有没有事件能获取到单击打开后触发的事件&lt;/p&gt;</description>
      <author>a8885313</author>
      <pubDate>Mon, 03 Dec 2012 20:01:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/7280</link>
      <guid>https://ruby-china.org/topics/7280</guid>
    </item>
    <item>
      <title>select 使用时出现 AssociationTypeMismatch </title>
      <description>&lt;p&gt;Completed 500 Internal Server Error in 3ms&lt;/p&gt;

&lt;p&gt;ActiveRecord::AssociationTypeMismatch (Type(#70137863544680) expected, got String(#701
37856381380)):
  app/controllers/houses_controller.rb:65:in &lt;code&gt;block in update'
  app/controllers/houses_controller.rb:64:in&lt;/code&gt;update'&lt;/p&gt;

&lt;p&gt;表单是这样写的 &amp;lt;%= f.select :type, &lt;a href="/types.collect" class="user-mention" title="@types.collect"&gt;&lt;i&gt;@&lt;/i&gt;types.collect&lt;/a&gt;{|p| [p.name,p.id ]} %&amp;gt;&lt;/p&gt;</description>
      <author>a8885313</author>
      <pubDate>Sat, 17 Nov 2012 12:42:25 +0800</pubDate>
      <link>https://ruby-china.org/topics/6834</link>
      <guid>https://ruby-china.org/topics/6834</guid>
    </item>
  </channel>
</rss>
