Fix proposal#update so that it shows errors when trying to create user
This commit is contained in:
parent
65ee166570
commit
b9db2ed1d4
1 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue