Sha256: c8c69d709316c17603b4c472fedf9944c433e500957fae94b8347151da0845d1

Contents?: true

Size: 567 Bytes

Versions: 50

Compression:

Stored size: 567 Bytes

Contents

class Tramway::Event::ParticipantsController < Tramway::Event::ApplicationController
  def create
    event = ::Tramway::Event::Event.find params[:tramway_event_participant][:event_id]
    @participant_form = ::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(request.uuid, event).new ::Tramway::Event::Participant.new event_id: event.id
    if @participant_form.submit params[:tramway_event_participant].except :event_id
      redirect_to event_path event, flash: :success
    else
      redirect_to event_path event, flash: :error
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
tramway-event-1.6.2 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.6.1 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.6 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.5.4 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.5.3 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.5.2 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.5.1 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.5 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.4 app/controllers/tramway/event/participants_controller.rb
tramway-event-1.3 app/controllers/tramway/event/participants_controller.rb