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.
On Dec 8, 4:12 am, Sijo Kg
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---