开发者

Rails in production not rendering application.html.erb

I know it's hard/impossible to troubleshoot without our code but I'm hoping someone might give us a clue as to where to BEGIN looking to troubleshoot this problem? production.log looks normal and application is functional..just NO stylesheets or header/footer because application.html.erb layout isn't being called...which is apparent when we view source: no <html> <head> <body> etc...

Works fine in Development!?!

Passenger 3, Apache 2, Rails 3.0.7, Ruby 1.9.2p180 RVM 1.6.5

Update: addi开发者_Go百科ng environment info per request

production.rb & development.rb are stock from initial rails new appname -T -J. This app is bare-bones (one resource) just trying to get round-trip functional on a new client's server.

Update2 strangely when I touch approot/tmp/restart.txt to restart Passenger per their docs: "Passenger will restart on next request" the file restart.txt remains. So A) Passenger is not seeing it and restarting...or B) Passenger doesn't delete it automatically which seems abnormal.

So, wondering now if my application may be running on the System's Ruby/Rails (2.3.5?) and not the RVM version. How to verify?


It's probably the HAML gem that's causing you trouble. You probably have a blank .haml file(if you're still using erbs) or a blank erb file if you're using mostly HAML files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜