Error log for views?

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?

Thanks!

-Jason

Jason F. - remove[email protected] - http://www.seethroo.us/
work: (310) 601-8454
cell: (415) 254-4890
AIM/Skype: jfrankov

(if you’re using webrick) look in the log folder + development.log if
you’re in development mode.

cheers,Jodi

On 6/24/06, Jason F. [email protected] wrote:

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.

| Privacy Policy | Terms of Service | Remote Ruby Jobs