Class: ContentFilesController

Inherits:
Spree::BaseController
  • Object
show all
Defined in:
app/controllers/content_files_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
7
8
# File 'app/controllers/content_files_controller.rb', line 3

def create
  @content_file = ContentFile.new(params[:content_file])
  @content_file.save!

  render :text => "#{@content_file.attachment.url},#{@content_file.attachment_file_name}"
end