[Rails] Re: I can't update data in table

2012-04-06 Thread phoe san
Thank Fred! routes are considered in the order they are defined, so although you do have a put specific route, rails never even looks at it because it finds match '/ profile/:id' first.. This logic fix my error. phoesan -- Posted via http://www.ruby-forum.com/. -- You received this m

[Rails] Re: I can't update data in table

2012-04-06 Thread Frederick Cheung
On Apr 6, 10:01 am, phoe san wrote: > > In Route ... > > match "/profile/:id" => "profile#index", :as => :profile > match "/profile/:id/edit" => "profile#edit", :as => :profile_edit > put '/profile/:id' => "profile#update"  ## method = put for update Your update action looks a little confused - i