Class: Spina::Admin::Conferences::PresentationAttachmentsController
- Inherits:
-
ApplicationController
- Object
- AdminController
- ApplicationController
- Spina::Admin::Conferences::PresentationAttachmentsController
- Defined in:
- app/controllers/spina/admin/conferences/presentation_attachments_controller.rb
Overview
Controller for PresentationAttachment objects.
Actions collapse
-
#new ⇒ void
Renders a form for a PresentationAttachment.
Instance Method Details
#new ⇒ void
This method returns an undefined value.
Renders a form for a Spina::Admin::Conferences::PresentationAttachment.
13 14 15 16 17 18 |
# File 'app/controllers/spina/admin/conferences/presentation_attachments_controller.rb', line 13 def new @presentation = Presentation.find_by(id: params[:presentation_id]) || Presentation.new = @presentation..build respond_to :js render locals: { index: params[:index].to_i, active: params[:active] == 'true' } end |