Search code examples
renderruby-on-rails-3.2actionviewpartialsmissing-template

MissingTemplate : Render partial in Rails 3.2.3


Hi I am new to Ruby on Rails and I am following Michael Hartl's book online. In Partials section of his book. The code he used to render partial was

<%= render 'layouts/stylesheets' %>

but I get this error.

I read the API and tried this

<%=render :partial => "/layouts/stylesheets" %>
but still can't figure this one out.

Thanks for all the help!


Solution

  • I overlooked the filename. When I initially created the file, after the .erb extension, I accidentally put a space after.