Class: Spina::Admin::Conferences::PresentationAttachmentsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spina/admin/conferences/presentation_attachments_controller.rb

Overview

Controller for PresentationAttachment objects.

Actions collapse

Instance Method Details

#newvoid

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
  @attachment = @presentation.attachments.build
  respond_to :js
  render locals: { index: params[:index].to_i, active: params[:active] == 'true' }
end