Catch Exeptions

Added by Anatoly Mikhailov almost 9 years ago

To author of Redmine:
I've tried to edit uncreated user and see the exception:
"ActiveRecord::RecordNotFound in UsersController#edit
Couldn't find User with ID=10"
Because I have only 2 users into my database.

Could you put into Users controller this one, like from Account controller:
"rescue ActiveRecord::RecordNotFound
render_404"