Created
March 24, 2012 20:39
-
-
Save wrburgess/2187571 to your computer and use it in GitHub Desktop.
Rails rendering format strategies
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
render :text => @body #renders without layout as text/plain | |
# GET /page | |
def page | |
render :layout => 'layout_file_name' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment