Created
October 10, 2010 20:51
-
-
Save apotonick/619553 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
# 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