I'm using DataMapper in Sinatra (not Rails, but hopefully close
enough -
I'm new!)
I have created a model similar to this:
##
class Server
include DataMapper::Resource
property :id, Serial
property :name, String
property :ip, String
has n, :serverTables
has n, :tables, :through
Hi, this code used to work, but for some reason it won't now:
[... load models]
DataMapper.setup(:default, "mysql://cm:password@172.26.0.3/cm")
DataMapper.setup(:lite, "sqlite3:///home/tigre/cm.sqlite")
DataMapper.finalize
DataMapper.repository(:lite).auto_migrate!
DataMapper.repository(:lite) d
On 25 December 2010 04:59, Javier 12 wrote:
> Hi, I'm trying to find some records by datetime.
>
> My experience is this:
>
> Event.all(:date.gte => day, :date.lt => day + 1).each do |event|
> ...
> ...
>
> That expression is not working. It's returning an event with day 31 when
> "day" variable i
Hi, I'm trying to find some records by datetime.
My experience is this:
Event.all(:date.gte => day, :date.lt => day + 1).each do |event|
...
...
That expression is not working. It's returning an event with day 31 when
"day" variable is 30.
For example:
event = 2010-12-31
day = 2010-12-30
T
2010/4/1 Carlos Andrés Gallón Villegas :
> Im building a proyect, it is posible to integrate Datamapper with Ruby
> on Rails?
Did you try googling for ruby rails datamapper? It throws up many
links on how to do it.
Colin
--
You received this message because you are subscribed to the
Im building a proyect, it is posible to integrate Datamapper with Ruby
on Rails?
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send
Hi guys,
Anyone knows of any project aiming to port datamapper style conditions
to activerecord?
-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)
--~--~-~--~~~---~--~~
You received this message because you are subscri
7 matches
Mail list logo