This commit is contained in:
Toks
2013-05-26 10:25:00 -04:00
parent 70616dd1a7
commit 9a2dce89aa
2 changed files with 12 additions and 2 deletions

View File

@@ -31,7 +31,11 @@ class NotesController < ApplicationController
def update
@note = Note.find(params[:id])
@note.update_attributes(params[:note])
respond_with(@note)
respond_with(@note) do |format|
format.json do
render :json => @note.to_json
end
end
end
def destroy