All,
Rails 1.1.6
Ruby 1.8.6
Win XP
It appears that none of my rescue_action_* methods, if defined in my
application.rb file, are being called.
I''ve placed debug statements inside of the ActionController Rescue
module to verify that rescue_action is being called.
Here are my overrides in application.rb, none of which are being called
- they are all protected visibility (these are just for debugging
purposes, so please no comments on how dumb they look ;]):
def local_request?
puts "Calling custom local_request method"
false
end
def rescue_action_locally(exception)
puts "Calling custom rescue locally method"
end
def rescue_action_in_public(exception)
puts "rescue_action custom called"
render :text => "<html><body>
<p>There was a controller specfic error processing your request.</p>
<!-- #{exception} --></body></html>"
end
Has anyone seen this case where the rescue_action method in
ActionController::Rescue cannot successfully call any custom defined
methods in application.rb?
Thanks,
Wes
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---