class ActionView::Helpers::InstanceTag
Public Instance Methods
to_language_select_tag(priority_languages, options, html_options)
click to toggle source
# File lib/lola/helpers.rb, line 31 def to_language_select_tag(priority_languages, options, html_options) html_options = html_options.stringify_keys add_default_name_and_id(html_options) value = value(object) opts = add_options(language_options_for_select(value, *priority_languages), options, value) content_tag("select", opts, html_options) end