actionview/lib/action_view/helpers/date_helper.rb
# Given an ordering of datetime components, create the selection HTML
# and join them with their appropriate separators.
Given an ordering of datetime components, create the selection HTML
and join them with their appropriate separators.
Given an ordering of datetime components create the selection HTML and join them with their appropriate separators .
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 
            select.insert(0, separator.to_s + public_send("select_#{type}").to_s)
          end
          select.html_safe
        end
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 select . insert ( 0 , separator . to_s + public_send ( "select_#{type}" ) . to_s ) end select . html_safe end
Given an ordering of datetime components, create the selection HTML
and join them with their appropriate separators.
Given an ordering of datetime components create the selection HTML and join them with their appropriate separators .
# don't add before first visible field
order
<not_specific>