/Ruby on Rails 7.0

module ActionController::FormBuilder::ClassMethods

Public Instance Methods

default_form_builder(builder) Show source
# File actionpack/lib/action_controller/form_builder.rb, line 40
def default_form_builder(builder)
  self._default_form_builder = builder

Set the form builder to be used as the default for all forms in the views rendered by this controller and its subclasses.


  • builder - Default form builder, an instance of ActionView::Helpers::FormBuilder

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.