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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
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...-YDxpq3io04c@public.gmane.org>
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.