aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTeddy Wing2015-12-30 17:22:25 -0800
committerTeddy Wing2015-12-30 17:45:27 -0800
commitccd50d7ced3417f39b7c6a98df372554ae6d2722 (patch)
tree012b1b2c81c85cdffcb677415a6c9a0931bf81b5 /app
parent358bad0827736ce61f24a640199ee2a99e9119c3 (diff)
downloadEvernote-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`
Diffstat (limited to 'app')
-rw-r--r--app/controllers/home_controller.rb2
-rw-r--r--app/views/home/index.html1
2 files changed, 3 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>