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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -