Class: Spotlight::FeaturedImagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Spotlight::FeaturedImagesController
- Defined in:
- app/controllers/spotlight/featured_images_controller.rb
Overview
Handles requests to upload images for exhibit thumbnails
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/spotlight/featured_images_controller.rb', line 10 def create if @featured_image.save && @featured_image.file_present? render json: { tilesource:, id: @featured_image.id } else render json: { error: 'unable to create image' }, status: :bad_request end end |