Created
November 5, 2011 21:56
-
-
Save wrburgess/1342076 to your computer and use it in GitHub Desktop.
rails controller response formats
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
respond_to do |format| | |
format.html # show.html.erb | |
format.json { render :json => @model } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment