Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm having a weird issue.

Locally everything renders fine, and when I fire it up 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 is it blows up with /app/app/views? Why would it have two apps in there? I'm not sure what's wrong. It's a pretty basic app. I haven't done anything fancy.

like image 896
Daniel Fischer Avatar asked Dec 31 '11 06:12

Daniel Fischer


3 Answers

In my case it was failing due to haml-rails gem being in :assets group. It was not able to render haml files.

like image 156
Vibhuti Avatar answered Oct 30 '22 13:10

Vibhuti


Be sure you add the haml-rails gem tu your gemfile

like image 45
hecbuma Avatar answered Oct 30 '22 14:10

hecbuma


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

Moving gem "haml-rails" to outside of assets group, works fine.

like image 3
Diego M. Rodrigues Avatar answered Oct 30 '22 13:10

Diego M. Rodrigues