fix bugs with note deletion

This commit is contained in:
albert
2013-02-21 11:47:54 -05:00
parent 3c68d64540
commit eb8f601e31
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class NotesController < ApplicationController
def destroy
@note = Note.find(params[:id])
@note.update_column(:is_active, false)
@note.update_attribute(:is_active, false)
respond_with(@note)
end