Skip to content

Instantly share code, notes, and snippets.

@apotonick
Created October 10, 2010 20:51
Show Gist options
  • Save apotonick/619553 to your computer and use it in GitHub Desktop.
Save apotonick/619553 to your computer and use it in GitHub Desktop.
# in a cell view:
%h3 hey, Yahooda
render :state => :yay
#now, render :state internally does nothing more than
elsif opts[:state]
opts[:text] = render_state(opts[:state])
#and then
render_to_string(opts)
#which allows stuff like
render :state => :yay, :layout => :awesome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment