Created
March 25, 2009 23:34
-
-
Save seivan/85786 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
#Post.rb | |
def picture(pos=0) | |
photos[pos.to_i].image.url(:medium) | |
end | |
#Index.erb.html I NEED post.picture to get AN ARGUMENT from 'picture' | |
<%= textilize(Liquid::Template.parse(post.content).render('picture' => post.picture)) %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment