We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

cczona on 03/28/08


Tagged

rails ruby partials


Versions (?)


Rendering partials in Rails 2.0


Published in: Rails 


URL: http://dev.rubyonrails.org/ticket/8076

"The new naming scheme for template (eg. .html.erb) does not seem to work for partials. When using :partial => 'form' a filename "_form.html.erb" is not recognized. "

Rails now requires the partial to be referenced by dotted format


  1. render :partial 'foo.html.erb' # renders '_foo.html.erb'

Report this snippet 

You need to login to post a comment.