diff options
| author | Teddy Wing | 2015-12-30 17:22:25 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:45:27 -0800 |
| commit | ccd50d7ced3417f39b7c6a98df372554ae6d2722 (patch) | |
| tree | 012b1b2c81c85cdffcb677415a6c9a0931bf81b5 | |
| parent | 358bad0827736ce61f24a640199ee2a99e9119c3 (diff) | |
| download | Evernote-Rails-Example-ccd50d7ced3417f39b7c6a98df372554ae6d2722.tar.bz2 | |
Add a link to login with Evernote on homepage
* Add index method to HomeController
* Add root route to HomeController#index
* Add link on index page to `/auth/evernote`
| -rw-r--r-- | app/controllers/home_controller.rb | 2 | ||||
| -rw-r--r-- | app/views/home/index.html | 1 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index fc0b474..95f2992 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,2 +1,4 @@ class HomeController < ApplicationController + def index + end end diff --git a/app/views/home/index.html b/app/views/home/index.html new file mode 100644 index 0000000..13da327 --- /dev/null +++ b/app/views/home/index.html @@ -0,0 +1 @@ +<a href="/auth/evernote">Login with Evernote</a> diff --git a/config/routes.rb b/config/routes.rb index 3f66539..08c7222 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ Rails.application.routes.draw do + root 'home#index' + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". |
