module ActionView::Helpers::FormOptionsHelper
def country_options_for_select(selected = nil, priority_countries = nil)
def country_options_for_select(selected = nil, priority_countries = nil) country_options = "" if priority_countries country_options += options_for_select(priority_countries, selected) country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n" end return country_options + options_for_select(Country::Names, selected) end
def country_select(object, method, priority_countries = nil, options = {}, html_options = {})
def country_select(object, method, priority_countries = nil, options = {}, html_options = {}) InstanceTag.new(object, method, self, options.delete(:object)).to_country_select_tag(priority_countries, options, html_options) end