Skip to content

Instantly share code, notes, and snippets.

@MarkNijhof
Created November 30, 2010 01:09
Show Gist options
  • Save MarkNijhof/720951 to your computer and use it in GitHub Desktop.
Save MarkNijhof/720951 to your computer and use it in GitHub Desktop.
index.haml
- 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?
@nex3
Copy link

nex3 commented Dec 3, 2010

The #haml method you're using here isn't part of Haml; it's part of the host framework (presumably Sinatra).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment