diff options
| author | Teddy Wing | 2015-12-30 17:41:23 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:45:28 -0800 |
| commit | 2394a77ce1e2df12f8f85813b4d93b0df51873a8 (patch) | |
| tree | da265ce63eb54fedf5327d826a55e87486b97668 | |
| parent | 122f68c5cec937953dab0d42d0a7a0fa656806d7 (diff) | |
| download | Evernote-Rails-Example-2394a77ce1e2df12f8f85813b4d93b0df51873a8.tar.bz2 | |
SessionsController: Remove `User`-related code
Since we don't have a `User` model or any user handling whatsoever in
this app currently, let's remove any references to a "user" and just
output the auth hash to the server log to see what we get.
We can just copy our auth tokens manually to start making some requests
to the Evernote API.
| -rw-r--r-- | app/controllers/sessions_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index c755c69..3ae19b3 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,7 +1,9 @@ class SessionsController < ApplicationController def create - @user = User.find_or_create_from_auth_hash(auth_hash) - self.current_user = @user + # @user = User.find_or_create_from_auth_hash(auth_hash) + puts '&&&&&&&&&&&&&&&&&&&&&&&&&&' + puts auth_hash + # self.current_user = @user redirect_to '/' end |
