ActionView :: Template :: Error (wrong number of arguments (1 for 0)) with atom_feed after upgrading to rails 3.1.0

I just upgraded the rails application from version 3.0.7 to version 3.1.0, and I got a strange error located in my Atom feed linker:

ActionView::Template::Error (wrong number of arguments (1 for 0)): 1: atom_feed do |feed| 2: feed.title("site name") 3: 4: for post in @posts app/views/posts/index.atom.builder:1:in `_app_views_posts_index_atom_builder___1517323884_2197638100' 

It seems like an argument is needed in the atom_feed method, but I tried to put something in it, and it did not fix the problem. It worked before the update.

+5
source share
1 answer

Builder 3.0 is not compatible with fast_xs 0.8.0 on ruby ​​1.8.7 and will give this error. Perhaps you have it installed? (Also note that Hpricot binds fast_xs 0.8.0)

(edit :) you can decapitate it by dropping it in the config directory:

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

Source: https://habr.com/ru/post/887755/


All Articles