Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v6.1.7.7) is shown here.
build_selects_from_types(order)
private
Given an ordering of datetime components, create the selection HTML and join them with their appropriate
separators.
# File actionview/lib/action_view/helpers/date_helper.rb, line 1137
def build_selects_from_types(order)
select = +""
first_visible = order.find { |type| !@options[:"discard_#{type}"] }
order.reverse_each do |type|
separator = separator(type) unless type == first_visible # don't add before first visible field
select.insert(0, separator.to_s + public_send("select_#{type}").to_s)
end
select.html_safe
end