On Tuesday, September 10, 2013 8:25:34 AM UTC-4, Norman Clarke wrote: > > On Mon, Sep 9, 2013 at 11:48 PM, Martin Vann Nostrand < > drvannn...@gmail.com <javascript:>> wrote: > >> I've installed the haml gem via my Gemfile. Everything seems okay in >> development, but in production I get the following trying to load a view >> that I converted to haml: >> >> ActionView::MissingTemplate (Missing template admin/events/index, >> application/index with {:locale=>[:en], :formats=>[:html], >> :handlers=>[:erb, :builder]}. Searched in: >> * "/home/deployer/apps/myapp/releases/20130910022213/app/views" >> * >> "/home/deployer/apps/myapp/shared/bundle/ruby/1.9.1/gems/devise_invitable-1.1.5/app/views" >> * >> "/home/deployer/apps/myapp/shared/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views" >> ): >> app/controllers/admin/events_controller.rb:11:in `index' >> >> I've found a few similar questions on StackOverflow. I have tried >> everything I have found that was recommended, yet nothing seems to work... >> >> - confirmed that gem was in Gemfile, but not in assets >> - tried specifying latest version in gemfile >> - tried using haml-rails gem instead of haml >> - tried setting assets to lazily complied in application.rb >> >> Any ideas? >> > > Make sure Haml is explicitly included in your Gemfile. I.e., don't rely on > Haml-rails requiring it for you. Also make sure your server has been > restarted. >
I had originally tried just including the gem 'haml' in my Gemfile, and that wasn't successful. Or are you saying I would have needed gem 'haml' as well as gem 'haml-rails' ? Maybe the server bounce is my issue. I'll try it again. -- You received this message because you are subscribed to the Google Groups "Haml" group. To unsubscribe from this group and stop receiving emails from it, send an email to haml+unsubscr...@googlegroups.com. To post to this group, send email to haml@googlegroups.com. Visit this group at http://groups.google.com/group/haml. For more options, visit https://groups.google.com/groups/opt_out.