Rendering partials in Rails 2.0


/ Published in: Rails
Save to your folder(s)

"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


Copy this code and paste it in your HTML
  1. render :partial 'foo.html.erb' # renders '_foo.html.erb'

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.