Skip to content

Instantly share code, notes, and snippets.

@Osmose
Created February 6, 2011 01:00
Show Gist options
  • Save Osmose/812986 to your computer and use it in GitHub Desktop.
Save Osmose/812986 to your computer and use it in GitHub Desktop.
# Renders "tags/form" with the @form instance variable defined
<%= render :partial => 'tags/form',
:locals => {:form => post_form} %>
# Renders "customer"; the value in :object is defined as a local variable customer in the partial
<%= render :partial => "customer", :object => @new_customer %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment