wondering if should this work? - "validates_inclusion_of :start_date,
:in => (Time.now.to_date - 100.years)..(Time.now.to_date + 100.years)"
(doesn't seem to for me)
i.e. should I be able to "validates_inclusion_of" to do date validation.
................
class GraphOptions < ActiveRecord::BaseWithoutTable
column :start_date, :date
validates_inclusion_of :start_date, :in => (Time.now.to_date -
100.years)..(Time.now.to_date + 100.years)
end
................
tks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---