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