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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Have you considered enforcing this through validation in your model?