Debugging templates

Hello,

I’m using Rails 1.2.1 (Locomotive on OS X). Whenever I make a slight
syntax error in one of my eRB templates, the whole page fails to
render. I just get a blank page.

Calling “app.get ‘/foo/bar’” from the irb console just gives me a HTTP
500 status, no error explanation. Looking at development.log just logs
various “Rendering …” tasks. I can’t find any way to see in which
template I made an error.

Since it’s not always obvious, I’d like a more verbose error display
also for problems inside templates. How do I do this?

Thanks!

Jens

On 13 Feb., 08:40, “Jeremy McAnally” [email protected] wrote:

Are you sure that you’re still in development mode? For me, it shows
a little error page with my error and all.

Hi,

I’m quite sure because I don’t have a production database yet and I
can see the data of my dev database.
But I also have some plugins installed - dr nics magic models for one,
scaffold_extensions, and some others. Maybe that’s the problem?

Thanks!

Jens

Are you sure that you’re still in development mode? For me, it shows
a little error page with my error and all.

–Jeremy

On 2/13/07, Jens [email protected] wrote:

template I made an error.


http://www.jeremymcanally.com/

My free Ruby e-book:
http://www.humblelittlerubybook.com/book/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

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