diff options
Diffstat (limited to 'actionpack/examples')
-rw-r--r-- | actionpack/examples/address_book_controller.rb | 2 | ||||
-rw-r--r-- | actionpack/examples/benchmark.rb | 2 | ||||
-rwxr-xr-x | actionpack/examples/blog_controller.cgi | 2 | ||||
-rwxr-xr-x | actionpack/examples/debate_controller.cgi | 2 |
4 files changed, 4 insertions, 4 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 diff --git a/actionpack/examples/benchmark.rb b/actionpack/examples/benchmark.rb index 1e10a0c962..21d81283a6 100644 --- a/actionpack/examples/benchmark.rb +++ b/actionpack/examples/benchmark.rb @@ -24,7 +24,7 @@ class BenchmarkController < ActionController::Base end end -#ActionController::Base.template_root = File.dirname(__FILE__) +#ActionController::Base.view_paths = [ File.dirname(__FILE__) ] require "benchmark" diff --git a/actionpack/examples/blog_controller.cgi b/actionpack/examples/blog_controller.cgi index 3868c306df..506afad62f 100755 --- a/actionpack/examples/blog_controller.cgi +++ b/actionpack/examples/blog_controller.cgi @@ -43,7 +43,7 @@ class BlogController < 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 diff --git a/actionpack/examples/debate_controller.cgi b/actionpack/examples/debate_controller.cgi index dbe022568b..9cb787940c 100755 --- a/actionpack/examples/debate_controller.cgi +++ b/actionpack/examples/debate_controller.cgi @@ -47,7 +47,7 @@ class DebateController < 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 |