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

On Jun 28, 10:15 am, bill walton <[email protected]> wrote:
> Hi Richard,
>
> On Mon, 2010-06-28 at 06:46 -0700, richardsugg wrote:
> > 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" ...>
>
> 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

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to