Ruby on Rails Sunday, September 2, 2012

Ok, nevermined, it appears when Active support loaded, its defined as
a class method on actionview:

ActiveSupport.on_load(:action_view) do
cattr_accessor(:default_form_builder)
{ ::ActionView::Helpers::FormBuilder }
end

On Sep 2, 12:57 pm, John Merlino <stoici...@aol.com> wrote:
> On line 1152 of form_helper.rb, there is this line:
>
>         def default_form_builder
>           builder = ActionView::Base.default_form_builder
>           builder.respond_to?(:constantize) ? builder.constantize :
> builder
>         end
>
> I tried searching for default_form_builder on ActiveView::Base but
> couldnt find the definition. Can anyone guide to where it's defined,
> specifically file and line number?

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment