The code is actually post :update, I have mistyped there. But that’s not
the
issue.
The problem is when I try to use the Rails-generated resource method:
put
user_url(@user). It does generate the URL correctly ( http://test.domain/users/int where int is any integer) but it fails to
actually map this to UsersController#update:
PUT /users/:id should map to controller => ‘users’,:action => ‘update’:
But I get the following error when in the controlle test example (the
put
user_url(@user)):
ActionController::
UnknownAction in 'UsersController#update on (snip) No action responded to /users/89. Actions: (snip)
Thanks,
Marcelo.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.