Class: DownloadablesController

Inherits:
SbdevCoreController show all
Defined in:
app/controllers/downloadables_controller.rb

Instance Method Summary collapse

Methods inherited from SbdevCoreController

#create, #destroy, #edit, #index, #new, #update

Instance Method Details

#showObject



6
7
8
9
10
# File 'app/controllers/downloadables_controller.rb', line 6

def show
  show! do |format|
    format.html {send_data(@downloadable.asset.url, :filename => @downloadable.asset_file_name, :type => @downloadable.asset_content_type, :disposition => 'attachment')}
  end
end