diff options
| -rw-r--r-- | app/controllers/user_controller.rb | 23 | ||||
| -rw-r--r-- | app/helpers/user_helper.rb | 2 | ||||
| -rw-r--r-- | app/views/user/create.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/destroy.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/edit.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/index.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/new.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/show.html.erb | 2 | ||||
| -rw-r--r-- | app/views/user/update.html.erb | 2 | ||||
| -rw-r--r-- | test/functional/user_controller_test.rb | 8 | ||||
| -rw-r--r-- | test/unit/helpers/user_helper_test.rb | 4 |
11 files changed, 51 insertions, 0 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb new file mode 100644 index 0000000..b30ac7f --- /dev/null +++ b/app/controllers/user_controller.rb | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | class UserController < ApplicationController | ||
| 2 | def index | ||
| 3 | end | ||
| 4 | |||
| 5 | def new | ||
| 6 | end | ||
| 7 | |||
| 8 | def create | ||
| 9 | end | ||
| 10 | |||
| 11 | def edit | ||
| 12 | end | ||
| 13 | |||
| 14 | def update | ||
| 15 | end | ||
| 16 | |||
| 17 | def show | ||
| 18 | end | ||
| 19 | |||
| 20 | def destroy | ||
| 21 | end | ||
| 22 | |||
| 23 | end | ||
diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb new file mode 100644 index 0000000..0147c3f --- /dev/null +++ b/app/helpers/user_helper.rb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | module UserHelper | ||
| 2 | end | ||
diff --git a/app/views/user/create.html.erb b/app/views/user/create.html.erb new file mode 100644 index 0000000..4ceeba1 --- /dev/null +++ b/app/views/user/create.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#create</h1> | ||
| 2 | <p>Find me in app/views/user/create.html.erb</p> | ||
diff --git a/app/views/user/destroy.html.erb b/app/views/user/destroy.html.erb new file mode 100644 index 0000000..a328fb9 --- /dev/null +++ b/app/views/user/destroy.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#destroy</h1> | ||
| 2 | <p>Find me in app/views/user/destroy.html.erb</p> | ||
diff --git a/app/views/user/edit.html.erb b/app/views/user/edit.html.erb new file mode 100644 index 0000000..21cbe9f --- /dev/null +++ b/app/views/user/edit.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#edit</h1> | ||
| 2 | <p>Find me in app/views/user/edit.html.erb</p> | ||
diff --git a/app/views/user/index.html.erb b/app/views/user/index.html.erb new file mode 100644 index 0000000..c825aaf --- /dev/null +++ b/app/views/user/index.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#index</h1> | ||
| 2 | <p>Find me in app/views/user/index.html.erb</p> | ||
diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb new file mode 100644 index 0000000..8e6ddd5 --- /dev/null +++ b/app/views/user/new.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#new</h1> | ||
| 2 | <p>Find me in app/views/user/new.html.erb</p> | ||
diff --git a/app/views/user/show.html.erb b/app/views/user/show.html.erb new file mode 100644 index 0000000..301bd6e --- /dev/null +++ b/app/views/user/show.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#show</h1> | ||
| 2 | <p>Find me in app/views/user/show.html.erb</p> | ||
diff --git a/app/views/user/update.html.erb b/app/views/user/update.html.erb new file mode 100644 index 0000000..01ff3a6 --- /dev/null +++ b/app/views/user/update.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>User#update</h1> | ||
| 2 | <p>Find me in app/views/user/update.html.erb</p> | ||
diff --git a/test/functional/user_controller_test.rb b/test/functional/user_controller_test.rb new file mode 100644 index 0000000..104b787 --- /dev/null +++ b/test/functional/user_controller_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class UserControllerTest < ActionController::TestCase | ||
| 4 | # Replace this with your real tests. | ||
| 5 | test "the truth" do | ||
| 6 | assert true | ||
| 7 | end | ||
| 8 | end | ||
diff --git a/test/unit/helpers/user_helper_test.rb b/test/unit/helpers/user_helper_test.rb new file mode 100644 index 0000000..ad44a53 --- /dev/null +++ b/test/unit/helpers/user_helper_test.rb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class UserHelperTest < ActionView::TestCase | ||
| 4 | end | ||
