Class: ActiveAdmin::FormBuilder
- Inherits:
-
Formtastic::FormBuilder
- Object
- Formtastic::FormBuilder
- ActiveAdmin::FormBuilder
show all
- Defined in:
- lib/active_admin/form_builder.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
Returns the value of attribute already_in_an_inputs_block.
31
32
33
|
# File 'lib/active_admin/form_builder.rb', line 31
def already_in_an_inputs_block
@already_in_an_inputs_block
end
|
Instance Method Details
#cancel_link(url = { action: "index" }, html_options = {}, li_attrs = {}) ⇒ Object
24
25
26
27
28
29
|
# File 'lib/active_admin/form_builder.rb', line 24
def cancel_link(url = { action: "index" }, html_options = {}, li_attrs = {})
li_attrs[:class] ||= "action cancel"
html_options[:class] ||= "cancel-link"
li_content = template.link_to I18n.t("active_admin.cancel"), url, html_options
template.content_tag(:li, li_content, li_attrs)
end
|
#has_many(assoc, options = {}, &block) ⇒ Object
33
34
35
|
# File 'lib/active_admin/form_builder.rb', line 33
def has_many(assoc, options = {}, &block)
HasManyBuilder.new(self, assoc, options).render(&block)
end
|