           @redirect returnTo
         else @redirectToTeam person
       else
-        @redirect '/people/' + person.id() + '/edit'
+        @redirect '/people/' + person.toParam() + '/edit'
     else
       @errors = error
       @person = new Person(@req.body)

          @render 'teams/new.html.haml'
        else
          @cookie 'teamAuthKey', @team.authKey()
          @redirect '/teams/' + @team.id()

# show team
get '/teams/:id', ->


get '/me', ->
  if @currentPerson?
    @redirect "/people/#{@currentPerson.toParam()}/edit"
  else
    @redirectToLogin()

