Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

respond_with, not render

  • Loading branch information...
commit 97299ae23cce00f07cd119c26e054d875d5ebfa8 1 parent 991ef66
Daniel Nelson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/selected_photos_controller.rb
View
2  app/controllers/selected_photos_controller.rb
@@ -17,7 +17,7 @@ def create
def update
@selected_photo.update_attributes(params[:selected_photo])
- render(:json => @selected_photo)
+ respond_with @selected_photo
end
def show
Please sign in to comment.
Something went wrong with that request. Please try again.