Sha256: 06001b0d5032e58665889c149cd1951622bba73cb34d8b1863a79659a3bcf982
Contents?: true
Size: 407 Bytes
Versions: 4
Compression:
Stored size: 407 Bytes
Contents
module KktShoppe class AttachmentsController < KktShoppe::ApplicationController def destroy @attachment = Nifty::Attachments::Attachment.find(params[:id]) @attachment.destroy respond_to do |wants| wants.html { redirect_to request.referer, :notice => t('kkt_shoppe.attachments.remove_notice')} wants.json { render :status => 'complete' } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems