module ActionView module Helpers module FormHelper def form_for(foo, bar) instantiate_builder(foo, bar) end def instantiate_builder(foo,bar) self end end end end
"self" in instantiate_builder refers to ActionView::Helpers::FormHelper. self it will have access to methods in ActionView::Helpers (its parent module), correct? -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.