class Mercury::ImagesController
Public Instance Methods
create()
click to toggle source
POST /images.json
# File lib/generators/mercury/install/images/templates/images_controller.rb, line 6 def create @image = Mercury::Image.new(params[:image]) @image.save respond_with @image end
destroy()
click to toggle source
DELETE /images/1.json
# File lib/generators/mercury/install/images/templates/images_controller.rb, line 13 def destroy @image = Mercury::Image.find(params[:id]) @image.destroy respond_with @image end