goodmike / mustache_rails3

mustache_rails3 provides a template handler and generators for Rails 3.
Other
54 stars 23 forks source link

missing template #10

Closed ghost closed 12 years ago

ghost commented 12 years ago
Started GET "/home/index" for 127.0.0.1 at 2011-11-14 11:27:00 +0100
  Processing by HomeController#index as */*
Rendered home/index.rb within layouts/application (0.8ms)Completed 500 Internal Server Error in 4ms

ActionView::Template::Error (No such file or directory - ./home/index.mustache):
  app/views/home/index.rb:22:in `_app_views_home_index_rb___2011066484058913103_26216040'

yet, app/views/templates/home/index.html.mustache exists. When I rename it to index.mustache, I get:

No such file or directory - /home/uri/Labs/mongoid3/app/templates/home/index.html.mustache 

So it seems to be looking at the right file, as it notices when i change from html.mustache to mustache, but still won't load.

app/views/home/index.rb

class Home::Index < Mustache::Rails
  def content
    'Hello World!'
  end
end

app/templates/home/index.html.mustache

{{content}}
ghost commented 12 years ago

Not sure what was wrong, but it's working now...

jakeboxer commented 12 years ago

I get this whenever I try make a change to a template or view and don't restart the server after.