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 Frankovitz - jason@seethroo.us - 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 24-Jun-06, at 3:09 PM, Jason Frankovitz 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" > > > > 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 Frankovitz - jason@seethroo.us - http://www.seethroo.us/ > work: (310) 601-8454 > cell: (415) 254-4890 > AIM/Skype: jfrankov > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 6/24/06, Jason Frankovitz <jason@seethroo.us> 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/<your environment>.log> > 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 Frankovitz - jason@seethroo.us - http://www.seethroo.us/ > work: (310) 601-8454 > cell: (415) 254-4890 > AIM/Skype: jfrankov > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -Alder