Forum: Ruby on Rails rescue runtime error

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

I am trying to rescue the runtime error and  trying to access the
exception
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

Regards
Ramya
end

--
View this message in context:
http://www.nabble.com/rescue-runtime-error-tp22362...
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
This topic is locked and can not be replied to.