mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38524 from BKSpurgeon/master
[ci skip] Update Documentation: Add a code example and clarify docs
This commit is contained in:
commit
2a44ff12c8
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ module ActionController
|
|||
#
|
||||
# In previous versions of \Rails the controller will include a helper which
|
||||
# matches the name of the controller, e.g., <tt>MyController</tt> will automatically
|
||||
# include <tt>MyHelper</tt>. To return old behavior set +config.action_controller.include_all_helpers+ to +false+.
|
||||
# include <tt>MyHelper</tt>. You can revert to the old behavior with the following:
|
||||
#
|
||||
# # config/application.rb
|
||||
# class Application < Rails::Application
|
||||
# config.action_controller.include_all_helpers = false
|
||||
# end
|
||||
#
|
||||
# Additional helpers can be specified using the +helper+ class method in ActionController::Base or any
|
||||
# controller which inherits from it.
|
||||
|
|
Loading…
Reference in a new issue