<% order = order.nil? ? [:year, :month, :day] : comma_split(order).*.to_sym -%>
<%= date_select(param_name_for_this_parent, this_field,
(all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time).merge(:order => order),
attributes - [:name]) %>
<%# Selects the `` as the default input for date. datepicker-rails is pretty old-school; hobo_jquery_ui provides a much more pleasant ``.
%>
<%= time_select( param_name_for_this_parent, this_field,
(all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time),
attributes - [:name] ) %>
<% if ! order.nil?
order = comma_split(order).*.to_sym
attributes.merge!(:order => order)
end -%>
<%= datetime_select(param_name_for_this_parent, this_field,
(all_attributes - attributes.keys).reverse_merge(:object => this_parent, :default => current_time).merge(:order => order),
attributes - [:name] ) %>