Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

"ActionView::TemplateError" "wrong argument type" "expected Proc"

#512

I updated Ruby 1.8.6 (the version recommended on http://www.rubyonrails.org/down ) to the patch level recommended on

http://www.ruby-lang.org/en/news...

  $ ruby -v
  ruby 1.8.6 (2008-06-20 patchlevel 230) [i686-linux]

Updating Rails to 2.1.0 brought this:

$ ./script/server -e test -p 2000
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.0 application starting on http://0.0.0.0:2000
[...]
ActionView::TemplateError (wrong argument type String (expected Proc)) on line #21 db:structure:dump broken by 8a5a9dc of list/index.html.erb:
18: <div>
19: <h3>Add list</h3>
20: <%= error_messages_for :list %>
21: <% form_for :list, @list, :url => {:action => "create"} do |f| %>
22:   <div>
23:     <%= label(:list, :name) %>
24:     <%= f.text_field :name, :size => 22 %>

    (eval):2:in `protect_against_forgery?'
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_tag_helper.rb:431:in `extra_tags_for_for

Reported by Tobi Reif · June 30th, 2008 @ 11:28 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Tobi Reif
  2. Tobi Reif
    Tobi Reif
    • Tag set to 2.1

    It might be purely a Ruby bug, see http://rubyforge.org/tracker/?fu...

    June 30th, 2008 @ 02:58 PM

  3. Tobi Reif
    Tobi Reif

    It's a Ruby issue, and it seems to be resolved:

    http://redmine.ruby-lang.org/iss...

    (I'd delete this ticket if I could find a way to do that.)

    July 2nd, 2008 @ 04:07 PM

  4. josh
    josh
    • State changed from new to invalid

    July 13th, 2008 @ 08:29 PM