Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
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

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, options = {}, &block)
  @template.field_container(@object_name,method,options,&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, options={})
  @template.label(@object_name,method,text,options)
end