module ActiveAdminAddons::InputHtmlHelpers
Public Instance Methods
build_separator()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 30 def build_separator template.content_tag(:span, "-", class: "separator") end
empty_input_id()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 26 def empty_input_id "#{prefixed_method}_empty" end
method_to_input_array_name()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 13 def method_to_input_array_name "#{method_to_input_name}[]" end
method_to_input_id(id)
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 17 def method_to_input_id(id) raise "invalid input id" if id.blank? "#{prefixed_method}_#{id}" end
method_to_input_name()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 9 def method_to_input_name "#{model_name}[#{valid_method}]" end
prefixed_method()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 5 def prefixed_method "#{model_name}_#{valid_method}" end
selected_values_id()
click to toggle source
# File lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb, line 22 def selected_values_id "#{prefixed_method}_selected_values" end