I am using the Regex to validate the date format(YYYY-MM-DD) using this gem(https://github.com/nicolasblanco/rails_param)
param! :start_date, Date, format: /([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))/, required: true, message: "Query start_date is not specified and invalid"
For right date format also it is saying error Query start_date is not specified
A sample query http://localhost:3005/data?start_date=2008-01-27&end_date=2009-01-27
It's not working