This may be a bonehead question, but when I have some error in a view
I’m testing, the server spits out a generic page:
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
This is pretty unhelpful when I’m debugging. Is there an error log
for Rails overall or for view errors specifically? Or is there some
erb code I can insert into 500.html to show me the exact error
message being generated?
This may be a bonehead question, but when I have some error in a view
I’m testing, the server spits out a generic page:
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
Are you running in development mode? Since what you’re getting is the
default output in production mode, and in development mode you should
get the detailed output you desire (but wouldn’t want your customers
to see).
Also, all errors (and generally everything important) is logged in
RAILS_ROOT/.log
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.