Default form helper

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?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs