app/controllers/people_controller.rb
#GET /people/select
#
#Page for after registration that allows you to select yourself from a list of
#people yet to be assigned, or create a new one if you don't exist
GET /people/select
Page for after registration that allows you to select yourself from a list of
people yet to be assigned, or create a new one if you don't exist
GET / people / select Page for after registration that allows you to select yourself from a list of people yet to be assigned or create a new one if you don ' t exist
def register
    email = params[:email]
    if email && Person.not_registered_with_matching_email(email).any?
      render :is_this_you,:locals=>{:email=>email}
    else
      @person = Person.new(:email=>email)
    end
  end
def register email = params [ :email ] if email && Person . not_registered_with_matching_email ( email ) . any? render :is_this_you , :locals => { :email => email } else @person = Person . new ( :email => email ) end end
GET /people/select
Page for after registration that allows you to select yourself from a list of
people yet to be assigned, or create a new one if you don't exist
GET / people / select Page for after registration that allows you to select yourself from a list of people yet to be assigned or create a new one if you don ' t exist