Posted By

cczona on 03/28/08


rails ruby partials

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Rendering partials in Rails 2.0

 / Published in: Rails


"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.