On 26/02/2006, at 3:18 AM, David Heinemeier Hansson wrote:

No love for those using named routes and form_for in trunk?

form_for(:comment, comment, new_comment_url
(article.hash_for_permalink)) do |f|
        => can't convert Symbol into String

also the docs are no longer valid as it doesn't use :url => {}

form_for(
  :comment, comment,
  :url => new_comment_url(article.hash_for_permalink)) do |f|

The :url option is broken in trunk...

form_for : comment, comment, :url => { :action => 'update' } do; end
 =>  <form action="/?url=actionupdate" method="post">

form_for : comment, comment, :action => 'update' do; end
 =>  <form action="/comments/update" method="post">

...hence why I was asking what you wanted to do with it. I think it needs to be reverted to the old API.

http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/ helpers/form_helper.rb#L123 http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/ helpers/form_tag_helper.rb#L18

-- tim

_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to