Module: Ccls::ActionViewExtension::FormBuilder::InstanceMethods

Defined in:
lib/ccls_engine/action_view_extension/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#adna_select(method, options = {}, html_options = {}) ⇒ Object



30
31
32
33
# File 'lib/ccls_engine/action_view_extension/form_builder.rb', line 30

def adna_select(method,options={},html_options={})
	@template.select(object_name, method, ADNA.selector_options,
		{:include_blank => true}.merge(objectify_options(options)), html_options)
end

#yndk_select(method, options = {}, html_options = {}) ⇒ Object

NOTE calling <%= f.wrapped_yndk_select :code %> will NOT call these methods. It will call the method missing and then the @template.method Actually, now I believe that it will.



15
16
17
18
# File 'lib/ccls_engine/action_view_extension/form_builder.rb', line 15

def yndk_select(method,options={},html_options={})
	@template.select(object_name, method, YNDK.selector_options,
		{:include_blank => true}.merge(objectify_options(options)), html_options)
end

#ynodk_select(method, options = {}, html_options = {}) ⇒ Object



25
26
27
28
# File 'lib/ccls_engine/action_view_extension/form_builder.rb', line 25

def ynodk_select(method,options={},html_options={})
	@template.select(object_name, method, YNODK.selector_options,
		{:include_blank => true}.merge(objectify_options(options)), html_options)
end

#ynrdk_select(method, options = {}, html_options = {}) ⇒ Object



20
21
22
23
# File 'lib/ccls_engine/action_view_extension/form_builder.rb', line 20

def ynrdk_select(method,options={},html_options={})
	@template.select(object_name, method, YNRDK.selector_options,
		{:include_blank => true}.merge(objectify_options(options)), html_options)
end