开发者

Heroku Cedar stack and Rails 3.1 RC5 not displaying images?

开发者 https://www.devze.com 2023-03-25 08:56 出处:网络
Anyone get Rails 3.1 RC5 running on Heroku, Cedar stack? Everything seems to work so far, except that asset images (such as logo, icons, main_bg, etc.) are not being displayed.

Anyone get Rails 3.1 RC5 running on Heroku, Cedar stack? Everything seems to work so far, except that asset images (such as logo, icons, main_bg, etc.) are not being displayed.

I'm not sure if it is related to this issue开发者_JAVA百科.

Would like to hear from anyone who was able to fix this problem.


Tweaking this setting should no longer be necessary in Rails 3.1, but if you're upgrading from earlier versions of 3.1 RC, either comment out the x_sendfile_header setting, or set it to nil in your production.rb file:

config.action_dispatch.x_sendfile_header = nil

This is the setting recommended in the Heroku docs.

0

精彩评论

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