Ruby Issue Tracking System: Issues
https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2008-07-01T18:23:22Z
Ruby Issue Tracking System
Redmine
Ruby 1.8 - Bug #211 (Closed): "wrong argument type" "expected Proc"
https://bugs.ruby-lang.org/issues/211
2008-07-01T18:23:22Z
Tobi_Reif (Tobi Reif)
tobireif@gmail.com
<p>=begin<br>
I have</p>
<p>$ ruby -v<br>
ruby 1.8.6 (2008-06-20 patchlevel 230) [i686-linux]</p>
<p>When I do this</p>
<p>$ ./script/server</p>
<p>and then browse to <a href="http://localhost:3000/" class="external">http://localhost:3000/</a> I get this:</p>
<p>ActionView::TemplateError (wrong argument type String (expected Proc)) on line <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: should terminate @receiver_thread of Net::IMAP safely (Closed)" href="https://bugs.ruby-lang.org/issues/21">#21</a> of list/index.html.erb:<br>
18: </p><div>
<br>
19: <a name="Add-list"></a>
<h3 >Add list<a href="#Add-list" class="wiki-anchor">¶</a></h3>
<br>
20: <%= error_messages_for :list %><br>
21: <% form_for :list, @list, :url => {:action => "create"} do |f| %><br>
22: <div>
<br>
23: <%= label(:list, :name) %><br>
24: <%= f.text_field :name, :size => 22 %>
<pre><code> (eval):2:in `protect_against_forgery?'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_tag_helper.rb:404:in `extra_tags_for_form'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_tag_helper.rb:412:in `form_tag_html'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_tag_helper.rb:41:in `form_tag'
</code></pre>
<p>[...]<br>
=end</p>
</div>
</div>