# File app/controllers/people_controller.rb, line 95
  def register
    if request.post?
      @person = Person.new(params[:person])
      if @person.save
        session[:user_id] = @person.id
        flash[:notice] << _('New person successfully registered')
        redirect_to :action => 'account'

        Notification.deliver_welcome(@person)

        return true
      else
        flash[:error] << [_('Could not register person: '),
                          @person.errors.full_messages].flatten
      end
    end
    redirect_to :action => 'new'
  end