Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include URL helpers in TestController in bug report templates

[ci skip]

Fixes #12848.
  • Loading branch information...
commit 299fe844dd38026ec194170c4e9e848fd0c1b0db 1 parent 331c59f
Roman Kushnir authored RKushnir committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.