Rescue runtime error

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-tp22362268p22362268.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.