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
mbj has quit [Ping timeout: 240 seconds]
brianpWins has quit [Quit: brianpWins]
Eiam has quit [Ping timeout: 260 seconds]
rsim has quit [Ping timeout: 240 seconds]
knowtheory has quit [Quit: Computer has gone to sleep]
jShaf has left #datamapper ["Leaving..."]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
knowtheory has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
zombor has quit [Remote host closed the connection]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
snusnu has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
postmodern has joined #datamapper
tehprofessor has quit [Quit: tehprofessor]
akasper has quit [Ping timeout: 264 seconds]
brianpWins has joined #datamapper
postmodern has quit [Quit: Leaving]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
rsim has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
namelessjon has joined #datamapper
namelessjon_ has quit [Ping timeout: 245 seconds]
skade has joined #datamapper
postmodern has joined #datamapper
brainopia has joined #datamapper
brainopia has quit [Client Quit]
rsim has quit [Read error: Connection reset by peer]
rsim has joined #datamapper
mikecmpbll has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
knowtheory has joined #datamapper
skade has joined #datamapper
snusnu has joined #datamapper
postmodern has quit [Quit: Leaving]
g0bl1n has joined #datamapper
g0bl1n has joined #datamapper
snusnu has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
snusnu has joined #datamapper
mikecmpbll has joined #datamapper
mkf has quit [Quit: Lost terminal]
zombor has joined #datamapper
nvg has joined #datamapper
knowtheory has quit [Ping timeout: 248 seconds]
Gadgetoid has quit [*.net *.split]
Gadgetoid has joined #datamapper
akasper has joined #datamapper
akasper has quit [Client Quit]
akasper has joined #datamapper
<nvg> I have a question about updating records.. I'm running into a problem with updating attributes for a sinatra / datamapper project. I'm pretty sure I'm missing something or doing something wrong but I haven't found it yet. I'm hoping someone can point me in the correct direction. I have an example of what I'm encountering at <http://pastebin.com/raw.php?i=1PAn4qw4>
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
<mikecmpbll> nvg: maybe validation is failing?
<mikecmpbll> owait, nvm.
<nvg> If I update within the same irb session, the record gets correctly updated. If I relaunch irb, the record update fails. I think this is because the property is a key. I can update properties that are not key.
<mikecmpbll> nvg: having a default value for a key attribute seems kinda weird.
<nvg> I made it a non-key attribute and it updates now.
<nvg> mikecmpbll: I'll work at this some more, thanks for looking.
<mikecmpbll> nvg: no probs. I've only used data mapper a little bit in a small sinatra app.
knowtheory has joined #datamapper
<nvg> this is the first time I'm using datamapper and sinatra... except for a some very crude proof of concept items
v0n has quit [Ping timeout: 248 seconds]
akasper1 has joined #datamapper
akasper has quit [Ping timeout: 248 seconds]
v0n has joined #datamapper
brianpWins has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
skade has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #datamapper
Eiam has joined #datamapper
Aristata has joined #datamapper
<Aristata> If I have an attribute in x.dirty_attributes, how can I get the original value?
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
skade has joined #datamapper
mbj has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Quit: Ex-Chat]
g0bl1n has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
rsim has quit [Quit: Leaving.]
postmodern has joined #datamapper
mbj has joined #datamapper
brainopia has joined #datamapper
rsim has joined #datamapper
brainopia has quit [Quit: brainopia]
<Eiam> namelessjon: any theories on hwio to track down DataObjects::ConnectionError - :
<Eiam> there is no actual error beyond that
<Eiam> it starts in a basic .get call e.g MyModel.get(id=>blah)
knowtheory has quit [Quit: Computer has gone to sleep]
nvg has quit [Ping timeout: 250 seconds]
mbj has quit [Ping timeout: 245 seconds]
knowtheory has joined #datamapper
<namelessjon> Eiam: Are you using something like unicorn?
<Eiam> namelessjon: nginx + passenger phusion
<namelessjon> Hmmm.
Aristata has quit [Quit: Leaving.]
knowtheo1y has joined #datamapper
knowtheory has quit [Ping timeout: 240 seconds]
skade has joined #datamapper
_br_ has quit [Ping timeout: 260 seconds]
knowtheory has joined #datamapper
_br_ has joined #datamapper
knowtheo1y has quit [Ping timeout: 256 seconds]
<onewheelskyward> Is there a good way for me to put functions in for a field in datamapper without resorting to a raw query?
<onewheelskyward> I want to say, select id, payload->'data', using the new postgres json field operators.
<onewheelskyward> I tried putting a string in the fields: array but it just ignored it.
<onewheelskyward> oops, that was an also_reload problem. It actually complains about it not being a field. I guess I'm trying to pre-mutate this thing which is why Datamapper is mad.
knowtheo1y has joined #datamapper
knowtheory has quit [Ping timeout: 264 seconds]
rsim has quit [Quit: Leaving.]
knowtheo1y has quit [Quit: Computer has gone to sleep]
zombor has quit [Remote host closed the connection]
rsim has joined #datamapper
akasper1 has quit [Quit: Leaving.]
rsim has quit [Ping timeout: 240 seconds]
knowtheory has joined #datamapper