On Dec 13, 10:45 am, Jim Burgess <li...@ruby-forum.com> wrote:
> When I run "rake routes" I see: > PUT /flights/:id(.:format) {:controller=>"flights", :action=>"update"} > > What am I missing? > Can anyone point me in the right direction? > Thanks very much in advance. > because a route isn't just a path, it's also an HTTP method. In the case of update the method is PUT (browsers don't let forms use methods other than POST or GET but rails lets you simulate the extra methods by adding a form parameter). You may be overcomplicating things - if you do form_for @flight ... rails will pick the right path & method for you ( based on whether the record is a new record or not) Fred > -- > Posted viahttp://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.