class Forme::InputsWrapper::Div

  1. lib/forme/transformers/inputs_wrapper.rb
Superclass: Object

Use a <div> tag to wrap the inputs.

Registered as :div.

Methods

Public Instance

  1. call

Public Instance methods

call (form, opts, &block)

Wrap the inputs in an <div> tag

[show source]
# File lib/forme/transformers/inputs_wrapper.rb, line 57
def call(form, opts, &block)
  form.tag(:div, opts[:attr], &block)
end