Created
November 30, 2010 01:09
-
-
Save MarkNijhof/720951 to your computer and use it in GitHub Desktop.
index.haml
This file contains hidden or 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
- for article in @blog_dorsey.articles.select{|item| item[:published] }[0...5] | |
= haml :'_article_heading', :layout => false, :article => article <<< passing article to the second partial view? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
#haml
method you're using here isn't part of Haml; it's part of the host framework (presumably Sinatra).