On Mon, Feb 1, 2010 at 10:20 AM, Frederick Cheung <frederick.che...@gmail.com> wrote: > On Feb 1, 3:11 pm, Rick DeNatale <rick.denat...@gmail.com> wrote: >> No, helper methods are indeed methods. They are defined in modules, >> and those modules are included into views by the controllers, and can >> be explicitly included by other classes. >> > Aren't all 'functions' technically methods in ruby ?
Of course. My point is that helpers are REALLY methods of the instance of view, have access to it's state, and all the other rights and privileges of an instance method. Yes, ruby 'functions' are really private instance methods which get defined in the Object class, and module functions (as in Module.module_function) are methods of an instance of Module, but helpers are not 'functions' in either of those senses. --- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.