aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/notes_controller.rb3
-rw-r--r--app/views/notes/index.html.erb6
2 files changed, 8 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
diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb
index 28d2850..5019db5 100644
--- a/app/views/notes/index.html.erb
+++ b/app/views/notes/index.html.erb
@@ -1,3 +1,9 @@
<% @notebooks.each do |b| %>
<%= b.name %><br />
+
+ <% b.notes.each do |n| %>
+ <%= n.title %><br />
+ <%= n.enml.html_safe %><br />
+ <%= n.tags %>
+ <% end %>
<% end %>