Class: Beespew::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/beespew/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#beespew_field(options = {}) ⇒ Object Also known as: honeypot



5
6
7
8
9
# File 'lib/beespew/form_builder.rb', line 5

def beespew_field(options = {})
  options = { class: 'beespew', placeholder: placeholder, tabindex: -1 }.
    merge(options.with_indifferent_access)
  text_field Beespew.attribute, options
end