diff options
| author | Teddy Wing | 2015-12-31 01:25:49 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-31 01:25:49 -0800 |
| commit | d0b3646fb6c4b9ecad272cb1079e36e310251dda (patch) | |
| tree | 3fd4518f8f416cb6ef7e8eedb5a3986c0d43138f /app/controllers/notes_controller.rb | |
| parent | 6947d34d29ae8255cd882682a396a32794dd8350 (diff) | |
| download | Evernote-Rails-Example-d0b3646fb6c4b9ecad272cb1079e36e310251dda.tar.bz2 | |
The first block here was before we integrated the 'evernote' wrapper gem
and is no longer used.
The second block was me thinking of getting all the notes for all
notebooks in the controller but I ended up just doing that in the view.
Diffstat (limited to 'app/controllers/notes_controller.rb')
| -rw-r--r-- | app/controllers/notes_controller.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index c63e873..5e6f9c8 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -3,14 +3,7 @@ class NotesController < ApplicationController access_token = 'S=s1:U=91e2f:E=151f92661a2:C=151f4000220:P=185:A=evernotesandbox199:V=2:H=5777502290baf1ae1b36ad6254592258' notestore_url = 'https://sandbox.evernote.com/shard/s1/notestore' - # e = EvernoteService.new(auth_token, notestore_url) - # @notebooks = e.notebooks - - # @notes = @notebooks.collect { |b| e.notes_from_notebook(b) } - note_store = Evernote::NoteStore.new(notestore_url, access_token) - @notebooks = note_store.notebooks - # @notes = @notebooks.collect { |b| b.notes } end end |
