Forum: Ruby on Rails rescue runtime error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rajasekaramya (Guest)
on 2009-03-06 00:36
(Received via mailing list)

I am trying to rescue the runtime error and  trying to access the
object but  it returns [#,#,#,#] i dont know why

here is my code for rescuing the runtime error in application.rb.

rescue_from Exception , :with => :runtime_error

def runtime_error(exception) render :text =>
exception.message.to_s,:layout=> ‘bug.rhtml’, :status => not_found

it  rescues the run time error page but doesnt print the error messages.

Let me know any suggestions


View this message in context:
Sent from the RubyOnRails Users mailing list archive at
This topic is locked and can not be replied to.