Smart RoR wrote:
> Hi There:
>
> If I raise an exception in a Non Active Record Model object on call from
> Controller that extends from ApplicationController, what are the best
> ways to show it on the view side as an error?
>
>
> Thanks much.
I raise exception in Non Active Record Model.
I then have in Controller
begin
@some_var=NonActiveRecordModel.find_by_something
rescue => e
raise e
end
But the exception doesn't reach the Controller from the Non Active
Record Model?
Something missing here.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.