Redirect to profile page after claiming (closes #51)

openid
Marcin Kulik 13 years ago
parent 8ae29838d7
commit 16d11a1249

@ -13,7 +13,7 @@ class UserTokensController < ApplicationController
notice = "Authenticated successfully, yippie!" notice = "Authenticated successfully, yippie!"
end end
redirect_to root_path, :notice => notice redirect_to profile_path(current_user), :notice => notice
else else
render :error render :error
end end

@ -21,10 +21,10 @@ describe UserTokensController do
post :create, :user_token => user_token.token post :create, :user_token => user_token.token
end end
it 'redirects to root_path' do it 'redirects to ~nickname' do
post :create, :user_token => user_token.token post :create, :user_token => user_token.token
response.should redirect_to(root_path) response.should redirect_to(profile_path(user))
end end
end end

Loading…
Cancel
Save