Heroku + Rails 3.1: asset_path undefined?

别说谁变了你拦得住时间么 提交于 2019-12-23 04:32:09

问题


i try to deploy a rails 3.1.3 app to heroku but keep getting the following error when browsing the pages:

ActionView::Template::Error (undefined method `asset_path' for #<#<Class:0x00000002ecd630>:0x00000002e52480>):

i use the "cedar" stack as recommended by heroku. any idea why i get this issue? do i have to make some more configuration?

thanks in advance!

EDIT: works again. i forgot to add "require 'sprockets/railtie'" in the application.rb...


回答1:


You forgot to add "require 'sprockets/railtie'" in the application.rb



来源:https://stackoverflow.com/questions/8443117/heroku-rails-3-1-asset-path-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!