I'd like to rescue exceptions inside my html.erb files, something like this:
<% begin %> <p>this is what we display if there are no errors</p> <% rescue %> <p>we're sorry but an error occurred</p> <% end %> Unfortunately, the rescue is not happening. I can rescue the call to render in the controller. However, if I'm trying to display 10 objects and only 1 has an error, I'd like to display the 9 good objects. If I just rescue a render then I won't have that granularity. Am I doing something wrong above? Any other suggestions? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
