Browse files

respond_with, not render

  • Loading branch information...
1 parent 991ef66 commit 97299ae23cce00f07cd119c26e054d875d5ebfa8 Daniel Nelson committed Sep 20, 2011
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

0 comments on commit 97299ae

Please sign in to comment.