Date validation in Rails

If you're using :date fields in your Rails models, you probably encoutered one ore more situations where you'd want to use some kind of date validation.

I came accross this great gem: date_validator.

Install it by adding it to your Gemfile and sudo bundle install and boom! Validating dates is now a piece of cake:

validates :expiration_date,
  :date => { :after =>, :before => + 1.year }

Looks interesting?

Are you looking for someone who can assist you with your web project?
Someone with know-how who can handle your project completely in-house?

Contact Me!