class Beespew::FormBuilder
Public Instance Methods
beespew_field(options = {})
click to toggle source
# 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
Also aliased as: honeypot
Private Instance Methods
placeholder()
click to toggle source
# File lib/beespew/form_builder.rb, line 15 def placeholder I18n.t "beespew.placeholder", default: 'If you are human, leave this blank' end