instance method
helper
Ruby on Rails 4.1.16
Since v3.2.22.5 Last seen in v7.1.6Signature
helper()
Gets the helper methods available to the controller.
This method assumes an ApplicationController exists, and it extends ActionController::Base
Source
# File railties/lib/rails/console/helpers.rb, line 6
def helper
@helper ||= ApplicationController.helpers
end
Defined in railties/lib/rails/console/helpers.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::ConsoleMethods