Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3.1.0 Problems using haml - Missing template error
    text
    copied!<p>I'm trying to use haml in my project, I have a controller class and a view template, .html.haml</p> <p>Here is my gemfile:</p> <pre><code>source "http://rubygems.org" #use Haml for templates gem 'haml' '3.1.6' #use Ruby debugger group :development, :test do gem 'ruby-debug19' end group :assets do gem 'therubyracer' end </code></pre> <p>I ran <strong>bundle install</strong> and restarted rails server many times, but haml doesn't even appear in <strong>bundle show</strong>.</p> <p>I updated haml using gem, still no result.</p> <p><strong>haml --rails</strong> doesn't work - invalid option</p> <p>vendor/plugins folder is empty</p> <p>If I run rails server and open "http://localhost:3000/myindex", which I have a controller and a view template for, I get template error</p> <pre><code>Missing template movies/index, application/index with {:handlers=&gt;[:erb, :builder, :coffee], :formats=&gt;[:html], :locale=&gt;[:en, :en]}. Searched in: </code></pre> <p>haml isn't there in handlers at all.</p> <p>I tried to add</p> <pre><code>config.generators do |g| g.template_engine :haml end </code></pre> <p>to config/application.rb. Didn't work</p> <p>Searched the web a whole day, read a lots of suggestions, but none of them helped.</p> <p>bundle just refuses to install haml gem properly. Without indicating it as error. It simply ignores the gem.</p> <p>Oh, and I ran <strong>haml index.html.haml</strong> on my template: html is generated perfectly. I made it very simple for test purposes.</p> <p>Rails v: 3.1.0</p> <p>Ruby v: 1.9.2p290</p> <p>haml v: 3.1.6</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload