Forum: Ruby on Rails ActionController::Base.send :include,

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
661ae6e97d0e16c2af2aaf7d197e8387?d=identicon&s=25 Sijo k g (sijo)
on 2008-12-08 10:12
Hi
   n one of the pluggin I saw this code Could anybody please tell what
does all this mean

ActionController::Base.send :include, helper_name
ActionController::Base.helper helper_name
ActionView::Helpers::FormBuilder.send :include, helper_name


Thanks in advance
Sijo
7855792dbc5f3b4c365344314e2b1ad6?d=identicon&s=25 AndyV (Guest)
on 2008-12-08 14:11
(Received via mailing list)
The first line is including some instance methods into
ActionController::Base (from which ApplicationController inherits).
The second line then adds helper_name to the list of helpers available
to all controllers.
The final line does the same thing for the views.
This topic is locked and can not be replied to.