aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/notes.coffee3
-rw-r--r--app/assets/stylesheets/notes.scss3
-rw-r--r--app/controllers/notes_controller.rb4
-rw-r--r--app/helpers/notes_helper.rb2
-rw-r--r--app/views/notes/index.html.erb2
-rw-r--r--test/controllers/notes_controller_test.rb9
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