我做了一个rails web应用程序,当我将它部署到heroku时,一切工作正常,但在线我有这些错误:ActionController :: RoutingError(没有路线匹配[GET]“/assets/star-off.png”):在rails4中,heroku
ActionController::RoutingError (No route matches [GET] "/assets/star-off.png"):
我看着在回答类似的问题,在这里和我在production.rb改变了这个:
config.serve_static_files = true
和我做了一个耙资产:预编译RAILS_ENV =生产
但徒劳无功。我该怎么办才能解决这个问题?
请按照此步骤参考:https://devcenter.heroku.com/articles/getting-started-with-rails4 –