Skip to content

Instantly share code, notes, and snippets.

@ChaosSteffen
Created March 29, 2010 04:40
Show Gist options
  • Save ChaosSteffen/347405 to your computer and use it in GitHub Desktop.
Save ChaosSteffen/347405 to your computer and use it in GitHub Desktop.
# view
<%= render(:partial => “test_in_wrapper”, :collection => ["hello", "world"]) %>
# wrapper partial
some text before yield
<%= render(:partial => “test”, :locals => {:test => test_in_wrapper}) %>
some text after yield
# partial
<%= test %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment