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
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
2 matches
Mail list logo