Datetime_select Separator
<%= f.datetime_select :published_at, {:use_short_month=>"true", :end_year=>Time.now.year,:order => [:day, :month, :year, :hour, :minute], :datetime_separator => " at "} %>
The default datetime separator for rails is a —
:datetime_separator => " at "
Written by Nishant Modak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#