Class: Spina::Admin::Conferences::EventsController
- Inherits:
-
ApplicationController
- Object
- AdminController
- ApplicationController
- Spina::Admin::Conferences::EventsController
- Defined in:
- app/controllers/spina/admin/conferences/events_controller.rb
Overview
Controller for Event objects.
Actions collapse
-
#new ⇒ void
Renders a form for an Event.
Instance Method Details
#new ⇒ void
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 |