Skip to content

Instantly share code, notes, and snippets.

@mariovisic
Created January 19, 2011 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariovisic/785617 to your computer and use it in GitHub Desktop.
Save mariovisic/785617 to your computer and use it in GitHub Desktop.
Rendering Partial collections in rails
# has access to loan_product instance variable.
# This
= render @loan_products
# is the same as this
= render :partial => 'loan_product', :collection => @loan_products
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment