Class: ContentImagesController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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

def create
  @content_image = ContentImage.new(params[:content_image])
  @content_image.save!

  render :text => @content_image.attachment.url
end