Module: LRD::FormBuilder

Defined in:
lib/app/helpers/lrd_form_helper.rb

Overview

f.labeled_input(stuff, :input_type => :hidden)

f.labeled_input(stuff){ f.hidden_field(stuff) }

Instance Method Summary collapse

Instance Method Details

#labeled_input(method, options = {}, &block) ⇒ Object



156
157
158
# File 'lib/app/helpers/lrd_form_helper.rb', line 156

def labeled_input(method, options = {}, &block)
  @template.labeled_input(@object_name, method, objectify_options(options), &block)
end

#unlabeled_submit(text = nil, options = {}) ⇒ Object



159
160
161
# File 'lib/app/helpers/lrd_form_helper.rb', line 159

def unlabeled_submit(text = nil, options={})
  @template.unlabeled_submit(text, options)
end