[Rails] DataMapper select fields from join tables

2014-05-27 Thread Mark Shock
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

[Rails] Datamapper problem "no such table"

2011-12-23 Thread Javier 12
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

Re: [Rails] DataMapper and DataTime problem

2010-12-25 Thread Colin Law
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

[Rails] DataMapper and DataTime problem

2010-12-24 Thread Javier 12
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

Re: [Rails] Datamapper

2010-04-01 Thread Colin Law
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

[Rails] Datamapper

2010-04-01 Thread Carlos Andrés Gallón Villegas
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

[Rails] Datamapper port

2009-04-08 Thread Maurício Linhares
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