Project

General

Profile

« Previous | Next » 

Revision 1443d37f

Added by Martin Bacovsky almost 12 years ago

  • ID 1443d37f1669f467e0cc2ab6fe6cd04801224070

Fixed error handling in BaseController

View differences:

app/controllers/api/v1/bookmarks_controller.rb
end
def create
@bookmark = Bookmark.create(params[:bookmark])
@bookmark = Bookmark.new(params[:bookmark])
process_response @bookmark.save
end
def update
@bookmark.update_attributes(params[:bookmark])
process_response @bookmark.update_attributes(params[:bookmark])
end
def destroy
respond_with @bookmark.destroy
process_response @bookmark.destroy
end
end

Also available in: Unified diff