开发者

(ActionView::MissingTemplate) Error when deploying app to heroku

I have a 'pages' controller with some static pages instead of using the rest method (show, index etc).

The static files view fine on my local mach开发者_如何学Goine but when deploying with heroku I get the following error:

PagesController#used_cars_south_wales (ActionView::MissingTemplate) "Missing template pages/used_cars_south_wales.erb in view path app/views"

Anyone else get the same problem, any advice appreciated.


The error message says it all I think. Heroku Rails is looking for app/views/pages/used_cars_south_wales.html.erb but it's obviously not finding it. If it's working locally then that file does exist. That it's not working on Heroku suggests it has not been added and committed to the git repo before pushing your app.

$ git add app/views/pages/used_cars_south_wales.html.erb
$ git commit -m "some comment..."
$ git push heroku master
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜