def draw_date(f, col_or_sym, options={})
      col_name  = get_column_name(col_or_sym)
      dom_id    = sprintf("%s_%s", f.object_name, col_name)
      f.text_field(col_name, id: dom_id, size: 14) +
      javascript_tag(<<-EOJS)
        $(function(){
          $('##{dom_id}').datepicker({buttonImageOnly: true}).
              datepicker('option', {
                dateFormat:       'yy/mm/dd'
              });
        });
      EOJS
    end
def draw_date(f, col_or_sym, options={})
      col_name  = get_column_name(col_or_sym)
      dom_id    = sprintf("%s_%s", f.object_name, col_name)
      f.text_field(col_name, id: dom_id, size: 14) +
      javascript_tag(<<-EOJS)
        $(function(){
          $('##{dom_id}').datepicker({buttonImageOnly: true}).
              datepicker('option', {
                dateFormat:       'yy/mm/dd'
              });
        });
      EOJS
    end
draw calendar date select

 === INPUTS
 f::           Form builder object.
 col_or_sym::  column object returned by rec.class.columns, or symbol
 options::     passed to calendar_date_select