From b9db2ed1d43c317421975a2e8dd0bb42a0fde683 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Mon, 2 May 2016 19:24:45 +0300 Subject: [PATCH] Fix proposal#update so that it shows errors when trying to create user --- app/controllers/proposal_controller.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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