I want my edit and update actions to load @user by setting it to current_user. I have tried load_and_authorize_resource through: :current_user, only: [:edit, :update]
but get the error "undefined method users for #user". Is this possible or do I have to manually load and authorize @user?
Asked
Active
Viewed 228 times
0

Eric M.
- 5,399
- 6
- 41
- 67
-
Why doesn't the normal syntax work for you? – Jesse Wolgamott Apr 06 '12 at 16:18
-
If I understand you correctly, because I am not using standard restful routes... /profile/edit instead of /users/:user_id/edit. – Eric M. Apr 06 '12 at 16:23