Saturday, September 25, 2010

HAML on Rails 3 doesn`t work

Programmer Question

Hey there,



i have tried to render some files with HAML in Rails 3. But HAMl doesn`t work.



My testfiles have the extension .html.haml.
In the GEMFile i have written gem 'haml' and executed the bundle install



When i call my testapp i become an error like this:
Template is missing
Missing template posts/index with {:locale=>[:en, :en], :formats=>[:html], :handlers=>[:rjs, :rhtml, :rxml, :builder, :erb]} in view paths "/Users/piet/Sites/blog/app/views"



Hope, i become some help here.



Peter



Find the answer here

1 comment:

  1. What haml version are you using? According to http://www.railsplugins.org/plugins/71-haml Haml 3 beta is compatible with Rails 3.

    ReplyDelete

LinkWithin

Related Posts with Thumbnails