diff --git a/cookbook/015/hodgepodge/app/controllers/people_controller.rb b/cookbook/015/hodgepodge/app/controllers/people_controller.rb new file mode 100644 index 0000000..05b6e39 --- /dev/null +++ b/cookbook/015/hodgepodge/app/controllers/people_controller.rb @@ -0,0 +1,5 @@ +class PeopleController < ApplicationController + def list + end + +end diff --git a/cookbook/015/hodgepodge/app/helpers/people_helper.rb b/cookbook/015/hodgepodge/app/helpers/people_helper.rb new file mode 100644 index 0000000..b682fbf --- /dev/null +++ b/cookbook/015/hodgepodge/app/helpers/people_helper.rb @@ -0,0 +1,2 @@ +module PeopleHelper +end diff --git a/cookbook/015/hodgepodge/app/views/people/list.html.erb b/cookbook/015/hodgepodge/app/views/people/list.html.erb new file mode 100644 index 0000000..5e49dc6 --- /dev/null +++ b/cookbook/015/hodgepodge/app/views/people/list.html.erb @@ -0,0 +1,2 @@ +

People#list

+

Find me in app/views/people/list.html.erb

diff --git a/cookbook/015/hodgepodge/config/routes.rb b/cookbook/015/hodgepodge/config/routes.rb index 20f0926..e16dc87 100644 --- a/cookbook/015/hodgepodge/config/routes.rb +++ b/cookbook/015/hodgepodge/config/routes.rb @@ -1,4 +1,6 @@ Hodgepodge::Application.routes.draw do + get "people/list" + get "foo/pretty" get "foo/count" diff --git a/cookbook/015/hodgepodge/test/functional/people_controller_test.rb b/cookbook/015/hodgepodge/test/functional/people_controller_test.rb new file mode 100644 index 0000000..69420d1 --- /dev/null +++ b/cookbook/015/hodgepodge/test/functional/people_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class PeopleControllerTest < ActionController::TestCase + test "should get list" do + get :list + assert_response :success + end + +end diff --git a/cookbook/015/hodgepodge/test/unit/helpers/people_helper_test.rb b/cookbook/015/hodgepodge/test/unit/helpers/people_helper_test.rb new file mode 100644 index 0000000..d554493 --- /dev/null +++ b/cookbook/015/hodgepodge/test/unit/helpers/people_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class PeopleHelperTest < ActionView::TestCase +end