problem with build and ruby on rails
Posted by: dagi3d
Posted on: 2006-05-27 11:25:00
hi,
I recently noticed that the feeds I was generating with my ruby on
rails application didn't work. The problem is that the rxml template
is causing this error but I didnt change anything
Did you upgrade any ruby on rails gem (maybe the builder one)?
here is the application log:
ActionView::TemplateError (wrong number of arguments (1 for 2)) on
line #6 of app/views/blog/atom.rxml:
3: xml.id("http://dagi3d.net/blog/")
4: xml.title("dagi3d")
5:
6: xml.link(:rel => "self", :type => "text/xml",
7: :href => "http://dagi3d.net/blog/atom/")
8:
9: xml.link(:rel => "alternate", :type => "text/html",
#{RAILS_ROOT}/app/views/blog/atom.rxml:6:in `link'
#{RAILS_ROOT}/app/views/blog/atom.rxml:6:in `_run_rxml_blog_atom'
#{RAILS_ROOT}/app/views/blog/atom.rxml:2:in `call'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendor/builde r/xmlbase.rb:138:in
`_nested_structures'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendor/builde r/xmlbase.rb:60:in
`method_missing'
#{RAILS_ROOT}/app/views/blog/atom.rxml:2:in `_run_rxml_blog_atom'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:314:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:314:in
`compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in
`render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in
`render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:699: in
`render_file'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:637: in
`render_with_no_layout'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:25 1:in
`render_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:53:in
`render'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:53:in
`measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:53:in
`render'
#{RAILS_ROOT}/app/controllers/blog_controller.rb:158:in `feeds'
#{RAILS_ROOT}/app/controllers/blog_controller.rb:163:in `atom'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910: in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910: in
`perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:3 68:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:69:in
`measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking .rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82 :in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381: in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381: in
`process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:3 77:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_mana gement.rb:117:in
`process'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in
`process_request'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in
`process!'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in
`each_cgi'
/usr/lib/ruby/1.8/fcgi.rb:597:in `each'
/usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in
`process!'
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in
`process!'
dispatch.fcgi:24