Class: Spina::Admin::Conferences::EventsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/spina/admin/conferences/events_controller.rb

Overview

Controller for Event objects.

See Also:

Actions collapse

Instance Method Details

#newvoid

This method returns an undefined value.

Renders a form for an Spina::Admin::Conferences::Event.



13
14
15
16
17
18
# File 'app/controllers/spina/admin/conferences/events_controller.rb', line 13

def new
  @conference = Conference.find_by(id: params[:conference]) || Conference.new
  @event = @conference.events.build
  respond_to :js
  render locals: { index: params[:index].to_i, active: params[:active] == 'true' }
end