Skip to Content Skip to Search

module ActionMailer::FormBuilder

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.

Public instance methods

Default form builder for the mailer

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

Namespace

Definition files