Martian eyrie

December 21, 2006

RoR gems: validates_date_time

Filed under: RubyOnRails

= validates_date_time This plugin adds the ability to do stricter date and time checking with ActiveRecord. The validators can be used to parse strings into Date and Time objects as well as restrict an attribute based on other dates or times.

class Person < ActiveRecord::Base validates_date :date_of_birth validates_time :time_of_birth validates_date_time :date_and_time_of_birth end

== Installation script/plugin install http://svn.viney.net.nz/things/rails/plugins/validates_date_time

Comments »

The URI to TrackBack this entry is: http://eyrie.blogsome.com/2006/12/21/ror-gems-validates_date_time/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham