diff --git a/app/controllers/proposal_controller.rb b/app/controllers/proposal_controller.rb index 4efe8555..d0404ef6 100644 --- a/app/controllers/proposal_controller.rb +++ b/app/controllers/proposal_controller.rb @@ -29,6 +29,8 @@ class ProposalController < ApplicationController def create @url = conference_program_proposal_index_path(@conference.short_title) + @event = Event.new(event_params) + @event.program = @program # We allow proposal submission and sign up on same page. # If user is not signed in then first create new user and then sign them in @@ -44,11 +46,6 @@ class ProposalController < ApplicationController end end - params[:event].delete :user - - @event = Event.new(event_params) - @event.program = @program - # User which creates the proposal is both `submitter` and `speaker` of proposal # by default. # TODO: Allow submitter to add speakers to proposals