From 59fe29c1a440d279a7282a56250c4b46ee493f0d Mon Sep 17 00:00:00 2001 From: Matt Barringer Date: Wed, 6 Feb 2013 18:43:10 +0100 Subject: [PATCH] Force new users to fill out their name before trying to register --- app/controllers/conference_registration_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conference_registration_controller.rb b/app/controllers/conference_registration_controller.rb index 73bda8fc..0d3e45f6 100644 --- a/app/controllers/conference_registration_controller.rb +++ b/app/controllers/conference_registration_controller.rb @@ -6,7 +6,7 @@ class ConferenceRegistrationController < ApplicationController @conference = Conference.find_all_by_short_title(params[:id]).first @person = current_user.person if @person.first_name.blank? || @person.last_name.blank? - redirect_to(edit_user_registration, :alert => "Please fill in your first and last name before registering.") + redirect_to(edit_user_registration_path, :alert => "Please fill in your first and last name before registering.") return end @registration = @person.registrations.where(:conference_id => @conference.id).first