开发者

Rails not identifying haml - rails 2.3.8

开发者 https://www.devze.com 2023-03-16 20:42 出处:网络
I have a Rails 2.3.8 pro开发者_开发百科ject running on Ruby (Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]).

I have a Rails 2.3.8 pro开发者_开发百科ject 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消