aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
AgeCommit message (Collapse)Author
2015-12-31Remove Auth::EvernoteControllerTeddy Wing
No longer used now that we're authenticating with OmniAuth.
2015-12-30NotesController: Display notes and note contentsTeddy Wing
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.
2015-12-30NotesController#index: List Evernote notebook namesTeddy Wing
List the names of all Evernote notebooks. We create a new service to make it easier to query the Evernote Ruby SDK and get all notebooks from it. This code to list notebooks was copied from the Evernote Ruby SDK's sample EDAMTest.rb file (https://github.com/evernote/evernote-sdk-ruby/blob/master/sample/client/EDAMTest.rb#L52-L62). In our controller, we call this service to get our notebooks and pass those to the view where we display each notebook's name. Hard-coded the my Evernote Sandbox access token and NoteStore URL because I didn't save them in the OmniAuth OAuth process. Using these to query the Evernote API using the SDK. Note to self: I'll want to deactivate that Evernote Sandbox account before releasing this.
2015-12-30Create NotesControllerTeddy Wing
This will show an example page that gets notebook & note information from Evernote and displays it.
2015-12-30Add a link to login with Evernote on homepageTeddy Wing
* Add index method to HomeController * Add root route to HomeController#index * Add link on index page to `/auth/evernote`
2015-12-30Add Auth::EvernoteControllerTeddy Wing
Include some sample code from the 'evernote-oauth' gem README (https://github.com/evernote/evernote-oauth-ruby). Not quite sure how I'm going to get this to work just yet though.
2015-12-30Initial commit. Base Rails 4.2.5 project.Teddy Wing