Class: Spotlight::AttachmentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::AttachmentsController
- Defined in:
- app/controllers/spotlight/attachments_controller.rb
Overview
Create image attachments for the sir-trevor image widget
Instance Method Summary collapse
-
#create ⇒ Object
POST /attachments.
Methods included from Concerns::ApplicationController
#enabled_in_spotlight_view_type_configuration?, #field_enabled?
Methods included from Controller
#add_breadcrumb, #blacklight_config, #breadcrumbs, #current_exhibit, #current_masthead, #current_masthead=, #current_site, #default_url_options, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_path, #resource_masthead?, #search_action_url, #search_facet_path, #search_state, #set_exhibit_locale_scope, #set_locale
Methods included from Config
#exhibit_specific_blacklight_config
Instance Method Details
#create ⇒ Object
POST /attachments
12 13 14 15 16 |
# File 'app/controllers/spotlight/attachments_controller.rb', line 12 def create @attachment.attributes = @attachment.save! render json: @attachment end |