Fix proposal#update so that it shows errors when trying to create user

This commit is contained in:
Stella Rouzi 2016-05-02 19:24:45 +03:00
parent 65ee166570
commit b9db2ed1d4

View file

@ -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