Class: Forme::InputsWrapper::Div

Inherits:
Object
  • Object
show all
Defined in:
lib/forme.rb

Overview

Use a <div> tag to wrap the inputs.

Registered as :div.

Instance Method Summary collapse

Instance Method Details

#call(form, opts, &block) ⇒ Object

Wrap the inputs in an <div> tag



1211
1212
1213
# File 'lib/forme.rb', line 1211

def call(form, opts, &block)
  form.tag(:div, opts[:attr], &block)
end