Displaying 1 result from an estimated 1 matches for "0e23e6f8".
2006 Apr 28
3
Handling errors - incorrect value entered in url...
I have many "edit" actions in my project. If the url is like
http://localhost/project/3/edit and someone enters
http://localhost/project/3333333/edit the edit action will fails because
it cannot find a project with id of 3333333.
To combat this I am adding to every action like edit:
rescue
redirect_to :action => ''index''
flash[''errors''] =