Created
August 14, 2012 20:35
-
-
Save cwoodcox/3352700 to your computer and use it in GitHub Desktop.
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 partial: 'posts/post_preview', collection: @posts, as: :post | |
# Is not the same as this: | |
render 'posts/post_preview', collection: @posts, as: :post | |
# Even though this: | |
render 'posts/post_preview', collection: @posts | |
# Behaves exactly as it should. | |
# Rails bug? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment