ruby on rails - How can I render a numbered date field with the names not numbers? -
i creating date picker events section , cannot fathom how have datepicker names of days/months/years rendered not numbers.
i using
f.inputs "event date" f.input :eventdate, :as => :date_picker, :use_month_names => true end
it renders on frontend:
2014-04-02
can point me in right direction?
if don't want display date in deafult format, write own method like:
array = months("jan", "feb","mar", etc); string displaydate= months[0] . " " . dayis . ", " . yearis;
will return: jan 1, 2014
Comments
Post a Comment