class Mercury::ImagesController < MercuryController
  respond_to :json

  # POST /images.json
  def create
    @image = Mercury::Image.new(params[:image])
    @image.save

    respond_with @image
  end

  # DELETE /images/1.json
  def destroy
    @image = Mercury::Image.find(params[:id])
    @image.destroy

    respond_with @image
  end
end

Add Mercury::Image Controller for Image Handling
Add Mercury::Image Controller for Image Handling

Add a Mercury::Image controller to handle image uploads.
