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.
精彩评论