validates_presence_of
doesn't work on my date field. Is there a simple way to check that user has selected a date (a birthday, for instance)?
I'm using blank values of "Day:", "Month:", and "Year:" on my select boxes. I want to make sure that a user can't pass validation unless they select a date.
<%= f.input :birthday,
:label => 'Birthday:',
:as => :date,
:start_year => Date.current.year,
:end_year => Date.current.year - 106,
:order => [:day, :month, :year],
:prompt => {
:day => 'Day:',
:month => 'Month:',
:year => 'Year:'
} %>