Class: Locomotive::LocalesInput

Inherits:
ArrayInput
  • Object
show all
Defined in:
app/inputs/locomotive/locales_input.rb

Instance Method Summary collapse

Methods inherited from ArrayInput

#array_wrapper, #array_wrapper_class, #collection, #collection_to_html, #include_input_for_new_item?, #input, #link, #new_item_input, #new_item_wrapper, #singularized_name, #text

Methods included from SimpleForm::Inputs::FasterTranslate

#translate_from_namespace

Methods included from SimpleForm::HeaderLink

#_header_link

Methods included from SimpleForm::BootstrapHelpers

#col_wrapping, #row_wrapping

Instance Method Details

#input_htmlObject



4
5
6
# File 'app/inputs/locomotive/locales_input.rb', line 4

def input_html
  template.select_tag 'locale', collection: template.options_for_locale, include_blank: false
end