Permalink
Browse files

More Refactor

  • Loading branch information...
1 parent 93a1342 commit d1c291d785021f0a5bb86218cabf66d2eb95e217 @gomayonqui gomayonqui committed Sep 30, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 app/controllers/sessions_controller.rb
  2. +2 −2 app/controllers/users_controller.rb
  3. +1 −1 config/routes.rb
@@ -1,7 +1,7 @@
class SessionsController < ApplicationController
def create
session[:token] = auth_data[:token]
- redirect_to profiles_path
+ redirect_to user_path (1)
end
private
@@ -1,8 +1,8 @@
require "github_api"
-class ProfilesController < ApplicationController
+class UsersController < ApplicationController
- def index
+ def show
@user = get_user_info session[:token]
end
View
@@ -5,7 +5,7 @@
root :to => "home#index"
match "/auth/:provider/callback" => "sessions#create"
- resources :profiles
+ resources :users
# Sample of regular route:
# match 'products/:id' => 'catalog#view'

0 comments on commit d1c291d

Please sign in to comment.