DataMapper Dates
Posted
by Ethan Turkeltaub
on Stack Overflow
See other posts from Stack Overflow
or by Ethan Turkeltaub
Published on 2010-03-30T23:49:23Z
Indexed on
2010/03/30
23:53 UTC
Read the original article
Hit count: 623
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
© Stack Overflow or respective owner