Skip to content

Instantly share code, notes, and snippets.

@stuartchaney
Created April 9, 2011 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartchaney/911576 to your computer and use it in GitHub Desktop.
Save stuartchaney/911576 to your computer and use it in GitHub Desktop.
respond_to :html, :xml
def show
@post = Post.find(params[:id])
respond_with @post
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment