Skip to Content Skip to Search

Action Mailer Form Builder

Override the default form builder for all views rendered by this mailer and any of its descendants. Accepts a subclass of ActionView::Helpers::FormBuilder.

While emails typically will not include forms, this can be used by views that are shared between controllers and mailers.

For more information, see ActionController::FormBuilder.

Namespace
Methods
D

Instance Public methods

default_form_builder()

Default form builder for the mailer

# File actionmailer/lib/action_mailer/form_builder.rb, line 33
def default_form_builder
  self.class._default_form_builder
end