class ActionView::Helpers::RailsLanguageSelect
Public Instance Methods
render(options, html_options)
click to toggle source
# File lib/rails_language_select/rails3/language_select_helper.rb, line 25 def render(options, html_options) @options = options @html_options = html_options if self.respond_to?(:select_content_tag) select_content_tag(language_option_tags, @options, @html_options) else html_options = @html_options.stringify_keys add_default_name_and_id(html_options) content_tag(:select, add_options(language_option_tags, options, value(object)), html_options) end end