DataMapper Dates
- by Ethan Turkeltaub
Forgive me if this is a simple answer.
But how do you get a Date from a DataMapper property. For example:
require 'rubygems'
require 'sinatra'
require 'datamapper'
class Test
include DataMapper::Resource
property :id, Serial
property :created_at, Date
end
get '/:id' do
test = Test.get(1)
test.created_at = ?
end