Have you considered enforcing this through validation in your model? On Tuesday, December 1, 2015 at 11:01:46 PM UTC-6, fugee ohu wrote: > > 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 %> >
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/80b0da7f-995b-4bc0-90bb-b6e24855d44b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

