« Back to channel list

#RubyOnRails - 25 May 2019

« Back 1 day
[00:03:42] gambl0re: has joined #RubyOnRails
[00:04:50] weaksauce: in a loop amperry? is it just a basic ruby object or an active record model?
[00:04:58] amperry: weaksauce: an AR model
[00:05:14] weaksauce: existing object or new?
[00:08:44] orbyt_: has joined #RubyOnRails
[00:10:43] skryking: has joined #RubyOnRails
[00:11:36] weaksauce: and you can't use update(thehash)
[00:12:04] amperry: weaksauce: correct, if you're talking about leases#update.
[00:17:24] weaksauce: i mean you can loop over the hash by k,v and update each
[00:17:45] weaksauce: do lease[k] = v
[00:17:56] weaksauce: then lease.save when you are done
[00:18:51] weaksauce: `the_hash.each do |k, v| lease[k] = v; end`
[00:19:13] amperry: hmmm... let me see...
[00:22:17] amperry: weaksauce: thanks, for some reason accessing the attributes with [] didn't occur to me
[00:24:02] orbyt_: has joined #RubyOnRails
[00:24:55] weaksauce: you're welcome
[00:34:32] jstrong: has joined #RubyOnRails
[00:59:59] s00pcan: has joined #RubyOnRails
[01:13:21] tdy: has joined #RubyOnRails
[01:24:49] xco: has joined #RubyOnRails
[01:44:47] jstrong: has joined #RubyOnRails
[01:49:39] tdy: has joined #RubyOnRails
[02:02:00] duderonomy: has joined #RubyOnRails
[02:03:48] ellcs: has joined #RubyOnRails
[02:04:45] ellcs: has joined #RubyOnRails
[02:22:20] xco: has joined #RubyOnRails
[02:23:01] apparition: has joined #RubyOnRails
[03:11:24] braincrash: has joined #RubyOnRails
[05:02:38] GodFather: has joined #RubyOnRails
[05:09:31] jstrong: has joined #RubyOnRails
[06:11:43] Dbugger: has joined #RubyOnRails
[06:19:26] kapilp: has joined #RubyOnRails
[06:35:25] gambl0re: has joined #RubyOnRails
[06:37:47] defsdoor: has joined #RubyOnRails
[06:52:14] apparition: has joined #RubyOnRails
[06:55:24] sameerynho: has joined #RubyOnRails
[07:05:59] MrCrackPotBuilde: has joined #RubyOnRails
[07:23:33] ravenousmoose: has joined #RubyOnRails
[07:37:25] defsdoor: has joined #RubyOnRails
[07:48:31] defsdoor: has joined #RubyOnRails
[07:50:56] tdy: has joined #RubyOnRails
[08:07:07] conta: has joined #RubyOnRails
[08:57:53] conta: has joined #RubyOnRails
[09:06:47] antong: has joined #RubyOnRails