sameera207
sameera207

Reputation: 16629

Rails not identifying haml - rails 2.3.8

I have a Rails 2.3.8 project running on Ruby (Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]).

I have a folder in app/views called uploads and it has haml file:

_files.html.haml

But when I try to call it using:

<%= render :partial =>  "/uploads/files"%>

is says:

Missing template /uploads/_users.erb in view path app/views:vendor/plugins/devise-1.0.8/app/views

It appears to be that it tried to locate .erb (_users.erb) where as the file name is _users.html.haml.

How can I fix this?

Upvotes: 0

Views: 368

Answers (1)

jordancooperman
jordancooperman

Reputation: 2011

Do you have the haml gem listed in your gemfile? I believe that's all that needs to be done.

Upvotes: 2

Related Questions