Rescue runtime error


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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs