Posted By

cczona on 03/28/08


Tagged

rails ruby partials


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


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.