Class: ActionView::Helpers::FormBuilder
- Defined in:
- lib/plugins/monkey_patches/lib/monkey_patches.rb
Overview
Allow some application_helper methods to be used in the scoped form_for manner
Instance Method Summary collapse
- #field_container(method, options = {}, &block) ⇒ Object
- #label(method, text = nil, options = {}) ⇒ Object
Instance Method Details
#field_container(method, options = {}, &block) ⇒ Object
46 47 48 |
# File 'lib/plugins/monkey_patches/lib/monkey_patches.rb', line 46 def field_container(method, = {}, &block) @template.field_container(@object_name,method,,&block) end |
#label(method, text = nil, options = {}) ⇒ Object
42 43 44 |
# File 'lib/plugins/monkey_patches/lib/monkey_patches.rb', line 42 def label(method, text = nil, ={}) @template.label(@object_name,method,text,) end |