Alex Rivera | Logout

How do I get Haml to work with Rails?

Asked 2008-09-19T03:12:47.537
77

I am trying to get Haml to work with my Ruby on Rails project. I am new to Ruby on Rails and I really like it. However, when I attempt to add an aplication.html.haml or index.html.haml for a view, I just receive errors.

I am using NetBeans as my IDE.

Edit
Report

1 Answer

11

Before trying to use haml in your rails application, you can verify that the command line executable is installed correctly:

$ haml
%p 
  %span Hello World!

Then press CTRL-D and you should see:

<p>
  <span>Hello World!</span>
</p>
answered 2009-04-21T18:44:50.537

Your Answer