Gem date_validator not working Ruby 1.9.3 Rails 3.2.1 -
i've installed gem with:
gem install 'date_validation' and can see it's installed, appears in list when use:
gem list but when try validate content of field form date, error:
argumenterror in productescontroller#new unknown validator: 'datevalidator' i use code validate:
validates :data_caducitat, :date => { :after => proc.new { time.now } } any idea of may problem?
thanks in advance.
a simple date validator rails 3. compatible ruby 1.8.7, 1.9.2 , rubinius 1.2.2.
that write @ https://github.com/codegram/date_validator
could not compatible 1.9.3 version
use 1 instead.
https://github.com/adzap/validates_timeliness
works me !
Comments
Post a Comment