diff --git a/cookbook/015/01/status/Gemfile.lock b/cookbook/015/01/status/Gemfile.lock new file mode 100644 index 0000000..95136d2 --- /dev/null +++ b/cookbook/015/01/status/Gemfile.lock @@ -0,0 +1,76 @@ +GEM + remote: http://rubygems.org/ + specs: + abstract (1.0.0) + actionmailer (3.0.9) + actionpack (= 3.0.9) + mail (~> 2.2.19) + actionpack (3.0.9) + activemodel (= 3.0.9) + activesupport (= 3.0.9) + builder (~> 2.1.2) + erubis (~> 2.6.6) + i18n (~> 0.5.0) + rack (~> 1.2.1) + rack-mount (~> 0.6.14) + rack-test (~> 0.5.7) + tzinfo (~> 0.3.23) + activemodel (3.0.9) + activesupport (= 3.0.9) + builder (~> 2.1.2) + i18n (~> 0.5.0) + activerecord (3.0.9) + activemodel (= 3.0.9) + activesupport (= 3.0.9) + arel (~> 2.0.10) + tzinfo (~> 0.3.23) + activeresource (3.0.9) + activemodel (= 3.0.9) + activesupport (= 3.0.9) + activesupport (3.0.9) + arel (2.0.10) + builder (2.1.2) + erubis (2.6.6) + abstract (>= 1.0.0) + i18n (0.5.0) + mail (2.2.19) + activesupport (>= 2.3.6) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.16) + polyglot (0.3.2) + rack (1.2.3) + rack-mount (0.6.14) + rack (>= 1.0.0) + rack-test (0.5.7) + rack (>= 1.0) + rails (3.0.9) + actionmailer (= 3.0.9) + actionpack (= 3.0.9) + activerecord (= 3.0.9) + activeresource (= 3.0.9) + activesupport (= 3.0.9) + bundler (~> 1.0) + railties (= 3.0.9) + railties (3.0.9) + actionpack (= 3.0.9) + activesupport (= 3.0.9) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (~> 0.14.4) + rake (0.9.2) + rdoc (3.9.1) + sqlite3 (1.3.4) + thor (0.14.6) + treetop (1.4.10) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.29) + +PLATFORMS + ruby + +DEPENDENCIES + rails (= 3.0.9) + sqlite3 diff --git a/cookbook/015/01/status/app/controllers/status_controller.rb b/cookbook/015/01/status/app/controllers/status_controller.rb new file mode 100644 index 0000000..4256a76 --- /dev/null +++ b/cookbook/015/01/status/app/controllers/status_controller.rb @@ -0,0 +1,5 @@ +class StatusController < ApplicationController + def index + end + +end diff --git a/cookbook/015/01/status/app/helpers/status_helper.rb b/cookbook/015/01/status/app/helpers/status_helper.rb new file mode 100644 index 0000000..fc2a6e1 --- /dev/null +++ b/cookbook/015/01/status/app/helpers/status_helper.rb @@ -0,0 +1,2 @@ +module StatusHelper +end diff --git a/cookbook/015/01/status/app/views/status/index.html.erb b/cookbook/015/01/status/app/views/status/index.html.erb new file mode 100644 index 0000000..0f40df0 --- /dev/null +++ b/cookbook/015/01/status/app/views/status/index.html.erb @@ -0,0 +1,2 @@ +
Find me in app/views/status/index.html.erb
diff --git a/cookbook/015/01/status/config/routes.rb b/cookbook/015/01/status/config/routes.rb index b08272d..57feab2 100644 --- a/cookbook/015/01/status/config/routes.rb +++ b/cookbook/015/01/status/config/routes.rb @@ -1,4 +1,6 @@ Status::Application.routes.draw do + get "status/index" + # The priority is based upon order of creation: # first created -> highest priority. diff --git a/cookbook/015/01/status/test/functional/status_controller_test.rb b/cookbook/015/01/status/test/functional/status_controller_test.rb new file mode 100644 index 0000000..45c7cc3 --- /dev/null +++ b/cookbook/015/01/status/test/functional/status_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class StatusControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + end + +end diff --git a/cookbook/015/01/status/test/unit/helpers/status_helper_test.rb b/cookbook/015/01/status/test/unit/helpers/status_helper_test.rb new file mode 100644 index 0000000..7662f1a --- /dev/null +++ b/cookbook/015/01/status/test/unit/helpers/status_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class StatusHelperTest < ActionView::TestCase +end