diff options
| author | Teddy Wing | 2015-12-30 17:48:27 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:48:27 -0800 |
| commit | b55284210ee80e26b2b66406f30dfcce1c960f13 (patch) | |
| tree | 32b5ecb28ba7ebad9782f4b475af986f90b3a820 | |
| parent | 2394a77ce1e2df12f8f85813b4d93b0df51873a8 (diff) | |
| download | Evernote-Rails-Example-b55284210ee80e26b2b66406f30dfcce1c960f13.tar.bz2 | |
Create NotesController
This will show an example page that gets notebook & note information
from Evernote and displays it.
| -rw-r--r-- | app/assets/javascripts/notes.coffee | 3 | ||||
| -rw-r--r-- | app/assets/stylesheets/notes.scss | 3 | ||||
| -rw-r--r-- | app/controllers/notes_controller.rb | 4 | ||||
| -rw-r--r-- | app/helpers/notes_helper.rb | 2 | ||||
| -rw-r--r-- | app/views/notes/index.html.erb | 2 | ||||
| -rw-r--r-- | test/controllers/notes_controller_test.rb | 9 |
6 files changed, 23 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.coffee b/app/assets/javascripts/notes.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/notes.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/notes.scss b/app/assets/stylesheets/notes.scss new file mode 100644 index 0000000..56d31f5 --- /dev/null +++ b/app/assets/stylesheets/notes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the notes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb new file mode 100644 index 0000000..71be366 --- /dev/null +++ b/app/controllers/notes_controller.rb @@ -0,0 +1,4 @@ +class NotesController < ApplicationController + def index + end +end diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb new file mode 100644 index 0000000..8078f73 --- /dev/null +++ b/app/helpers/notes_helper.rb @@ -0,0 +1,2 @@ +module NotesHelper +end diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb new file mode 100644 index 0000000..00a278e --- /dev/null +++ b/app/views/notes/index.html.erb @@ -0,0 +1,2 @@ +<h1>Notes#index</h1> +<p>Find me in app/views/notes/index.html.erb</p> diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb new file mode 100644 index 0000000..d33ea65 --- /dev/null +++ b/test/controllers/notes_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class NotesControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + end + +end |
