Created
January 19, 2011 03:06
-
-
Save mariovisic/785617 to your computer and use it in GitHub Desktop.
Rendering Partial collections in rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# has access to loan_product instance variable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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