trying to create a schedule select field so users can only select date time greater than now

12 views
Skip to first unread message

fugee ohu

unread,
Dec 2, 2015, 12:01:46 AM12/2/15
to Ruby on Rails: Talk
this is the way i have my select without the feature i haven't attempted to add the feature because i don't know what method that would be
<%= f.datetime_select :start_time, discard_year: true %>

dana tassler

unread,
Dec 2, 2015, 1:51:44 PM12/2/15
to Ruby on Rails: Talk
Have you considered enforcing this through validation in your model?
Reply all
Reply to author
Forward
0 new messages