Weird render on heroku using app / app / views rendering templates

I have a strange problem.

Locally, everything is fine, and when I run it on Heroku, I get this error:

2011-12-31T06:26:23+00:00 app[web.1]: ActionView::MissingTemplate (Missing template pages/index, application/index with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in: 2011-12-31T06:26:23+00:00 app[web.1]: * "/app/app/views" 2011-12-31T06:26:23+00:00 app[web.1]: ): 

Why does it explode with /app/app/views ? Why does he have two applications? I'm not sure what happened. This is a pretty simple app. I did not do anything.

+8
ruby-on-rails heroku
source share
4 answers

In my case, this was unsuccessful due to the fact that the haml-rails stone was in the asset group. He was unable to display haml files.

+18
source share

Make sure you add haml-rails gem tu to your gemfile

+3
source share

In my case, the problem is that haml-rails insitde "group: assets do" in the Gemfile

Moving haml-rails gems outside an asset group works great.

+3
source share

I had this problem after reorganizing with RubyMine. I changed the folder name in / views to use the "Messages" capital in case of an accident. Changing it to lowercase was not enough to fix the problem. I had to change one of the letters, click on the hero, rename the folder correctly, and then click on the hero again.

0
source share

All Articles