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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -