Sha256: 65f4b1d79475900c550be0945598d58e9aa0df822a06c2fb4256f545bf9ce5f9
Contents?: true
Size: 368 Bytes
Versions: 10
Compression:
Stored size: 368 Bytes
Contents
class Shoppe::AttachmentsController < Shoppe::ApplicationController def destroy @attachment = Nifty::Attachments::Attachment.find(params[:id]) @attachment.destroy respond_to do |wants| wants.html { redirect_to request.referer, :notice => "Attachment removed successfully" } wants.json { render :status => 'complete' } end end end
Version data entries
10 entries across 10 versions & 1 rubygems