dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
solnic has quit [Quit: Leaving...]
knowtheory has joined #datamapper
tillsc has joined #datamapper
tillsc has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
v0n has joined #datamapper
brianpWins has joined #datamapper
Ortuna has joined #datamapper
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
tillsc has joined #datamapper
dkubb has joined #datamapper
cored has quit [Ping timeout: 264 seconds]
tillsc has quit [Ping timeout: 246 seconds]
zombor has joined #datamapper
bobocopy1 has quit [Quit: Leaving.]
zombor has quit [Ping timeout: 256 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
snusnu has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
zombor has joined #datamapper
brianpWins has joined #datamapper
zombor has quit [Ping timeout: 246 seconds]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Ping timeout: 248 seconds]
dkubb has quit [Quit: Leaving...]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
brianpWins has quit [Quit: brianpWins]
zombor has joined #datamapper
dkubb has joined #datamapper
zombor has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 240 seconds]
Aristata1 has joined #datamapper
Aristata has quit [Ping timeout: 248 seconds]
brianpWins has joined #datamapper
rsim has joined #datamapper
brainopia has joined #datamapper
brainopia has quit [Client Quit]
brainopia has joined #datamapper
zombor has joined #datamapper
<swarmhost>
Can someone here help me learn how to build a pretty basic datamapper-driven app per my spec? I'd be willing to donate somewhere for your time, or pay you directly. I am just trying to get a basic calendar working so I can understand how everything works together.
<Cinchy>
mbj: [10h 41m 23s ago] <dkubb> I would love an --rspec-class strategy. it'd work really well with the rails app I'm using. --rspec-unit works alright for now but only because the project is new. it won't scale anywhere near as well
mbj has quit [Read error: Connection reset by peer]
solnic has joined #datamapper
splattael has joined #datamapper
kapowaz has joined #datamapper
abuiles has joined #datamapper
mbj has joined #datamapper
theCrab has joined #datamapper
mikecmpbll has joined #datamapper
xeviox has joined #datamapper
<xeviox>
hi guys
<xeviox>
tried to move to the convention ('./models/somemodel' => 'Models::SomeModel'), but now datamapper looks for "models_somemodel" table
<xeviox>
the only thing I don't get is the ":legacy" repository
<xeviox>
do I have to use this
<xeviox>
or stay with the ":default"
<xeviox>
?
<namelessjon>
xeviox: Oh, no. Stay with :default. The doc was just written with the idea of still needing to talk to some legacy schema for some operations.
<xeviox>
ah ok
<xeviox>
so the repository should be set up before the call to "DataMapper.setup(..)" ?
<namelessjon>
xeviox: No, do the DataMapper.setup(...), then define your naming convention.
<namelessjon>
If you don't setup first, DM won't know about the :default repository
<xeviox>
may it be a problem when I try to store a connected model that has serial and a key
kleech has joined #datamapper
kleech has quit [Ping timeout: 276 seconds]
<xeviox>
damn I'm unable to connect to models, everytime I try to update a model with this connection (or even create) I receive a SaveFailureError
<xeviox>
but I've no idea why..
<xeviox>
or is there a problem doing it with a hash ? e. g. someModel.update({:user => user})
brianpWins has joined #datamapper
rsim has quit [Quit: Leaving.]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
<xeviox>
any ideas why a optional association fails during save? (belongs_to :user, :required => false)
<xeviox>
everytime I try to use and save it, an error is throws, but inspecting it there is no validation error..
<solnic>
xeviox: you probably have a not null constraint on the fk
<solnic>
in the db
<xeviox>
solnic: the db is created with "migrate!"
<solnic>
xeviox: check if there's no constraint
<xeviox>
the problem is that I'm unable to set it to a value (null value works fine)
<solnic>
ah ok
<solnic>
then I dunno
<xeviox>
is it possible to output the insert statement?
brianpWins has quit [Quit: brianpWins]
<xeviox>
damn, I really can't figure out what happens, the database looks as expected. And even if I output exception.resource.errors.inspect I only see "@errors={}" and the "problematic" field holding the correct value..
brianpWins has joined #datamapper
snusnu has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #datamapper
kleech has joined #datamapper
<xeviox>
how is it possible that the insert is never executed when there is no validation error?
kleech has quit [Remote host closed the connection]