aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorTeddy Wing2015-12-30 18:46:23 -0800
committerTeddy Wing2015-12-30 18:46:23 -0800
commit5b18c8156a6735502f735c253d80071b5ae72b84 (patch)
treee67e341a6fc6725486f6d1683bd716b48871b723 /app/controllers
parente129dc5b3f70005e8b33a62f66e673a9c0d8084c (diff)
downloadEvernote-Rails-Example-5b18c8156a6735502f735c253d80071b5ae72b84.tar.bz2
NotesController: Display notes and note contents
For all notebooks, display all notes inside a notebook and the contents and tags of each note. Rendering the note contents with `html_safe` to get them to display quickly in a user-readable form because the contents are formatted in ENML, Evernote's XML markup language. Tried collecting the notes in the controller but ultimately decided to output them directly in the view.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/notes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index 6b40ca3..4faf0e6 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -13,6 +13,7 @@ class NotesController < ApplicationController
access_token = auth_token
note_store = EvernoteService::NoteStore.new(notestore_url, access_token)
- @notebooks = note_store.list_notebooks
+ @notebooks = note_store.notebooks
+ # @notes = @notebooks.collect { |b| b.notes }
end
end