diff --git a/cookbook/015/02/passingdata/Gemfile.lock b/cookbook/015/02/passingdata/Gemfile.lock new file mode 100644 index 0000000..95136d2 --- /dev/null +++ b/cookbook/015/02/passingdata/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/02/passingdata/app/controllers/novel_controller.rb b/cookbook/015/02/passingdata/app/controllers/novel_controller.rb new file mode 100644 index 0000000..893a7b4 --- /dev/null +++ b/cookbook/015/02/passingdata/app/controllers/novel_controller.rb @@ -0,0 +1,5 @@ +class NovelController < ApplicationController + def index + end + +end diff --git a/cookbook/015/02/passingdata/app/helpers/novel_helper.rb b/cookbook/015/02/passingdata/app/helpers/novel_helper.rb new file mode 100644 index 0000000..4cc94cd --- /dev/null +++ b/cookbook/015/02/passingdata/app/helpers/novel_helper.rb @@ -0,0 +1,2 @@ +module NovelHelper +end diff --git a/cookbook/015/02/passingdata/app/views/novel/index.html.erb b/cookbook/015/02/passingdata/app/views/novel/index.html.erb new file mode 100644 index 0000000..62796a6 --- /dev/null +++ b/cookbook/015/02/passingdata/app/views/novel/index.html.erb @@ -0,0 +1,2 @@ +

Novel#index

+

Find me in app/views/novel/index.html.erb

diff --git a/cookbook/015/02/passingdata/config/routes.rb b/cookbook/015/02/passingdata/config/routes.rb index 3b60bcb..18165e1 100644 --- a/cookbook/015/02/passingdata/config/routes.rb +++ b/cookbook/015/02/passingdata/config/routes.rb @@ -1,4 +1,6 @@ Passingdata::Application.routes.draw do + get "novel/index" + # The priority is based upon order of creation: # first created -> highest priority. diff --git a/cookbook/015/02/passingdata/test/functional/novel_controller_test.rb b/cookbook/015/02/passingdata/test/functional/novel_controller_test.rb new file mode 100644 index 0000000..49bafbb --- /dev/null +++ b/cookbook/015/02/passingdata/test/functional/novel_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class NovelControllerTest < ActionController::TestCase + test "should get index" do + get :index + assert_response :success + end + +end diff --git a/cookbook/015/02/passingdata/test/unit/helpers/novel_helper_test.rb b/cookbook/015/02/passingdata/test/unit/helpers/novel_helper_test.rb new file mode 100644 index 0000000..ffbe00c --- /dev/null +++ b/cookbook/015/02/passingdata/test/unit/helpers/novel_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class NovelHelperTest < ActionView::TestCase +end