I am using the following code
<%= f.date_select 'event_date', selected: Date.today, :start_year => Date.today.year, :end_year => Date.today.year + 1 %>
I want to ban people from choosing data at a min of 5 days from now. and max of 1 year max. How can i set the date and month?
Or should i do this in model validation?