aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-11-11 12:17:03 -0800
committerYves Senn <yves.senn@gmail.com>2013-11-11 12:17:03 -0800
commitbd004eccfa1b7e6c8e4f1273da94477d75b9515f (patch)
tree55d62009b3c14dfeb20b742acefb19978c07dbb6 /guides
parent92f11ddd5068a8da35d0218aaac6b0eff2e7d284 (diff)
parent299fe844dd38026ec194170c4e9e848fd0c1b0db (diff)
downloadrails-bd004eccfa1b7e6c8e4f1273da94477d75b9515f.tar.gz
rails-bd004eccfa1b7e6c8e4f1273da94477d75b9515f.tar.bz2
rails-bd004eccfa1b7e6c8e4f1273da94477d75b9515f.zip
Merge pull request #12851 from RKushnir/master
Include URL helpers in TestController in bug report templates [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/bug_report_templates/action_controller_gem.rb2
-rw-r--r--guides/bug_report_templates/action_controller_master.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/guides/bug_report_templates/action_controller_gem.rb b/guides/bug_report_templates/action_controller_gem.rb
index 693bc320b3..89ac28671a 100644
--- a/guides/bug_report_templates/action_controller_gem.rb
+++ b/guides/bug_report_templates/action_controller_gem.rb
@@ -19,6 +19,8 @@ class TestApp < Rails::Application
end
class TestController < ActionController::Base
+ include Rails.application.routes.url_helpers
+
def index
render text: 'Home'
end
diff --git a/guides/bug_report_templates/action_controller_master.rb b/guides/bug_report_templates/action_controller_master.rb
index 5d88749118..d44fd9196a 100644
--- a/guides/bug_report_templates/action_controller_master.rb
+++ b/guides/bug_report_templates/action_controller_master.rb
@@ -28,6 +28,8 @@ class TestApp < Rails::Application
end
class TestController < ActionController::Base
+ include Rails.application.routes.url_helpers
+
def index
render text: 'Home'
end