Ruby on rails 升级到rails 3.1.0后atom_提要的ActionView::Template::Error(参数数目错误(1代表0))

Ruby on rails 升级到rails 3.1.0后atom_提要的ActionView::Template::Error(参数数目错误(1代表0)),ruby-on-rails,feed,atom-feed,Ruby On Rails,Feed,Atom Feed,我刚刚将rails应用程序从3.0.7版本升级到候选版本3.1.0,我在atom提要生成器中发现了一个奇怪的错误: ActionView::Template::Error(参数数目错误(1代表0)): 1:atom|u feed do|feed| 2:提要标题(“站点名称”) 三: 4:对于@posts中的post app/views/posts/index.atom.builder:1:in`_app_view_posts_index_atom_builder____1517323884_21

我刚刚将rails应用程序从3.0.7版本升级到候选版本3.1.0,我在atom提要生成器中发现了一个奇怪的错误:

ActionView::Template::Error(参数数目错误(1代表0)):
1:atom|u feed do|feed|
2:提要标题(“站点名称”)
三:
4:对于@posts中的post
app/views/posts/index.atom.builder:1:in`_app_view_posts_index_atom_builder____1517323884_2197638100'

atom\u feed
方法中似乎需要一个参数,但我尝试在其中添加一些内容,但它没有解决问题。它在升级之前工作。

Builder 3.0与ruby 1.8.7上的fast_xs 0.8.0不兼容,将出现此错误。也许你已经安装好了?(还要注意,Hpricot捆绑fast_xs 0.8.0)

(编辑:)您可以通过将其放入配置目录来对其进行修补:

class String
  def fast_xs_absorb_args(*args); fast_xs; end
  alias_method :to_xs, :fast_xs_absorb_args
end

那么我该如何解决这个问题。。。?