Skip to content
Browse files

Include URL helpers in TestController in bug report templates

[ci skip]

Fixes #12848.
  • Loading branch information...
1 parent 331c59f commit 299fe844dd38026ec194170c4e9e848fd0c1b0db Roman Kushnir committed with RKushnir
View
2 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
View
2 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

0 comments on commit 299fe84

Please sign in to comment.
Something went wrong with that request. Please try again.