search for: m000069

Displaying 2 results from an estimated 2 matches for "m000069".

Did you mean: 000069
2006 Dec 04
2
begin, rescue, end for the whole darn app
Hello. Imagine how paranoid and ugly code would look if one put a ''begin,rescue, end'' in every action in the app... With server, mysql, etc errors, is there a way to rescue anything weird when (not if :( ) it were to ever happen? Thoughts? Dominic -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message
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''] =