Skip to content

Instantly share code, notes, and snippets.

@ilake
Created July 20, 2013 10:40
Show Gist options
  • Save ilake/6044601 to your computer and use it in GitHub Desktop.
Save ilake/6044601 to your computer and use it in GitHub Desktop.
  • The actual rendering is done by subclasses of ActionView::TemplateHandlers.
  • You can use the :location option to set the HTTP Location header
  • head :created, location: photo_path(@photo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment