I'm really baffled since this should be very textbook:
<% form_for :person, :url => { :controller => "people", :action =>
"update", :id => @person.id } do |form| %>
should produce
<form action="/people/3/update" ...>
but instead it produces
<form action="/people/3" ...>
What's going on? I really thought I could just do
<% form_for :person, :url => { :action => "update", :id =>
@person.id } do |form| %>
but that produces the same result.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment