aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/address_book_controller.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-02-04 20:47:05 +0000
committerRick Olson <technoweenie@gmail.com>2007-02-04 20:47:05 +0000
commit69b0e5c44a05fddcac996c7aaaca61cb3188da5e (patch)
tree4e5da68ffe3eac5561a9101a451a2f56a701e989 /actionpack/examples/address_book_controller.rb
parent8f614a80e725228c0cc0c03fd731c6cbad0ffcb7 (diff)
downloadrails-69b0e5c44a05fddcac996c7aaaca61cb3188da5e.tar.gz
rails-69b0e5c44a05fddcac996c7aaaca61cb3188da5e.tar.bz2
rails-69b0e5c44a05fddcac996c7aaaca61cb3188da5e.zip
Allow Controllers to have multiple view_paths instead of a single template_root. Closes #2754 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/examples/address_book_controller.rb')
-rw-r--r--actionpack/examples/address_book_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/examples/address_book_controller.rb b/actionpack/examples/address_book_controller.rb
index 9ca6612512..7042ad84a5 100644
--- a/actionpack/examples/address_book_controller.rb
+++ b/actionpack/examples/address_book_controller.rb
@@ -42,7 +42,7 @@ class AddressBookController < ActionController::Base
end
end
-ActionController::Base.template_root = File.dirname(__FILE__)
+ActionController::Base.view_paths = [ File.dirname(__FILE__) ]
# ActionController::Base.logger = Logger.new("debug.log") # Remove first comment to turn on logging in current dir
begin