Form_for won't generate the correct action path

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

but instead it produces

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.

Hi Richard,

On Mon, 2010-06-28 at 06:46 -0700, richardsugg wrote:

With REST, /people/3 using the PUT verb maps to the update method. Run
‘rake routes’ in the console to see the routes your app responds to / is
generating.

HTH,
Bill

Thanks, Bill. I checked out the documentation on REST and it makes
much better sense now.