xall

Activity Graph

Page 1 of 10 | Next »

2019-04-11

[00:48:06] xall: has joined #RubyOnRails
[00:48:06] xall: has joined #ruby
[01:45:03] xall: I'm trying to sum a hash with another hash but I'm not getting it quite right: https://pastebin.com/2YyEdHNZ. Is it possible to do it like this?
[01:56:13] xall: In that case, I expect 3 as output. I want to sum the results with the actual point values
[02:01:16] xall: sorry - so results is the actual data and result_values is how much each point is worth, so win=1 is worth 3 points
[02:02:59] xall: (result_values says that win is worth 3, draw is worth 1)
[02:11:12] xall: I'm using strings because it's part of an exercise where you have to parse given lines like `Allegoric Alaskans;Blithering Badgers;win`
[02:13:30] xall: https://pastebin.com/3WsbTe3Q
[02:13:32] xall: thanks for the help
[03:59:01] xall: Ping timeout: 246 seconds
[04:07:47] xall: has joined #ruby
[04:07:48] xall: has joined #RubyOnRails
[04:14:13] xall: Read error: Connection reset by peer
[04:16:42] xall: has joined #ruby
[04:16:44] xall: has joined #RubyOnRails
[04:21:37] xall: Read error: Connection reset by peer
[04:24:06] xall: has joined #RubyOnRails
[04:24:06] xall: has joined #ruby
[04:29:03] xall: Read error: Connection reset by peer
[04:37:24] xall: has joined #ruby
[04:37:26] xall: has joined #RubyOnRails
[04:41:36] xall: Ping timeout: 246 seconds
[04:43:41] xall: has joined #ruby
[04:43:43] xall: has joined #RubyOnRails
[04:48:20] xall: Read error: Connection reset by peer
[04:59:07] xall: has joined #ruby
[04:59:09] xall: has joined #RubyOnRails
[05:12:16] xall: `"foo;bar".split(?;)` -- first time encountering this syntax but I can't find it in google. It's not a regex (b/c no enclosing //), right?
[05:24:18] xall: havenwood: Thanks. Surely I've seen that before but evidently not enough
[07:30:00] xall: Ping timeout: 255 seconds

2019-04-03

[00:58:47] xall: has joined #ruby
[01:01:49] xall: What is considered more idiomatic for taking a slice of an Array: array[0..idx] OR array.slice(0..idx) ?
[01:19:42] xall: adam12: Thanks. I agree
[03:56:18] xall: Ping timeout: 245 seconds

2019-03-16

[02:38:55] xall: has joined #RubyOnRails
[02:38:55] xall: has joined #ruby
[05:17:13] xall: Ping timeout: 246 seconds
[05:31:29] xall: has joined #ruby
[05:35:51] xall: Ping timeout: 252 seconds
[07:45:50] xall: has joined #ruby
[07:50:10] xall: Ping timeout: 250 seconds
[08:05:54] xall: has joined #ruby
[08:05:56] xall: has joined #RubyOnRails
[10:21:49] xall: Quit: xall

2019-02-06

[01:26:55] xall: has joined #RubyOnRails
[01:26:55] xall: has joined #ruby
[08:36:56] xall: Ping timeout: 250 seconds
[09:50:32] xall: has joined #ruby
[09:50:34] xall: has joined #RubyOnRails
[09:58:40] xall: Quit: xall

2019-01-27

[06:42:02] xall: has joined #RubyOnRails
[06:42:02] xall: has joined #ruby
[09:08:41] xall: Quit: xall

2019-01-23

[02:50:24] xall: has joined #RubyOnRails
[02:50:24] xall: has joined #ruby
[05:29:05] xall: Quit: xall

2019-01-22

[00:10:07] xall: has joined #ruby
[00:10:08] xall: has joined #RubyOnRails
[01:22:17] xall: Quit: xall

2019-01-08

[02:12:42] xall: has joined #RubyOnRails
[02:12:42] xall: has joined #ruby
[05:20:03] xall: Ping timeout: 245 seconds
[05:22:11] xall: has joined #ruby
[05:26:18] xall: Ping timeout: 245 seconds
[05:34:14] xall: has joined #RubyOnRails
[05:34:14] xall: has joined #ruby
[05:45:58] xall: Ping timeout: 246 seconds
[05:53:49] xall: has joined #ruby
[05:53:51] xall: has joined #RubyOnRails
[06:07:29] xall: Ping timeout: 268 seconds
[09:16:16] xall: has joined #ruby
[09:16:18] xall: has joined #RubyOnRails
[09:25:16] xall: Quit: xall

2018-12-14

[03:25:57] xall: has joined #RubyOnRails
[03:25:57] xall: has joined #ruby
[10:43:23] xall: Ping timeout: 245 seconds

2018-12-13

[04:24:28] xall: has joined #ruby
[04:24:29] xall: has joined #RubyOnRails
[04:42:36] xall: Ping timeout: 250 seconds
[05:07:35] xall: has joined #ruby
[05:07:37] xall: has joined #RubyOnRails
[05:08:35] xall: Client Quit
[05:38:06] xall: has joined #ruby
[05:38:07] xall: has joined #RubyOnRails
[09:08:48] xall: Quit: xall

2018-12-11

[03:46:55] xall: has joined #RubyOnRails
[03:46:55] xall: has joined #ruby
[05:54:21] xall: Ping timeout: 244 seconds

2018-12-10

[04:53:55] xall: has joined #RubyOnRails
[04:53:55] xall: has joined #ruby
[06:27:25] xall: Quit: xall

2018-12-09

[05:35:29] xall: has joined #RubyOnRails
[05:35:29] xall: has joined #ruby
[06:14:47] xall: Ping timeout: 240 seconds
[06:51:01] xall: has joined #ruby
[06:51:03] xall: has joined #RubyOnRails
[06:55:47] xall: Ping timeout: 240 seconds

2018-12-08

[12:02:31] xall: has joined #ruby
[12:02:32] xall: has joined #RubyOnRails
[12:25:16] xall: Quit: xall

2018-11-06

[06:56:36] xall: has joined #ruby
[06:56:37] xall: has joined #RubyOnRails
[07:43:19] xall: Quit: xall

2018-10-25

[03:07:05] xall: has joined #RubyOnRails
[03:07:05] xall: has joined #ruby
[04:19:41] xall: Quit: xall

2018-10-04

[04:21:49] xall: has joined #RubyOnRails
[04:21:49] xall: has joined #ruby
[04:33:53] xall: Quit: xall

2018-09-13

[11:27:31] xall: has joined #RubyOnRails
[11:27:31] xall: has joined #ruby
[14:13:48] xall: Ping timeout: 245 seconds
[23:49:22] xall: has joined #ruby
[23:49:24] xall: has joined #RubyOnRails
[23:53:42] xall: Ping timeout: 252 seconds

2018-08-22

[09:21:19] xall: has joined #RubyOnRails
[09:21:19] xall: has joined #ruby
[09:38:40] xall: Quit: xall

2018-08-15

[04:12:56] xall: has joined #RubyOnRails
[04:12:56] xall: has joined #ruby
[05:02:57] xall: Ping timeout: 248 seconds
[05:57:46] xall: has joined #ruby
[05:57:48] xall: has joined #RubyOnRails
[05:59:31] xall: Client Quit

2018-08-05

[03:27:03] xall: has joined #ruby
[03:27:04] xall: has joined #RubyOnRails
[06:04:48] xall: Ping timeout: 268 seconds
[06:05:25] xall: has joined #ruby
[06:05:27] xall: has joined #RubyOnRails
[07:04:54] xall: Ping timeout: 256 seconds
[07:06:31] xall: has joined #ruby
[07:06:33] xall: has joined #RubyOnRails
[07:11:42] xall: Ping timeout: 256 seconds
[07:27:57] xall: has joined #ruby
[07:27:59] xall: has joined #RubyOnRails
[07:28:59] xall: Client Quit

2018-08-04

[08:15:06] xall: has joined #RubyOnRails
[08:15:06] xall: has joined #ruby
[08:20:02] xall: I don't understand why I'm getting a NoMethodError for [model]_url when using redirect_to : https://gist.github.com/jdsutherland/30634e559c122a2e6c8b7287f0790e2a#file-projects_controller-rb-L8
[08:20:48] xall: it looks like passing the model to redirect_to uses a singular name instead of plural?
[09:47:46] xall: Ping timeout: 264 seconds
[11:31:07] xall: has joined #ruby
[11:31:09] xall: has joined #RubyOnRails
[12:15:01] xall: I'm learning rails working through a book and can't figure out why `redirect_to` seems to be using a singular route: https://gist.github.com/jdsutherland/30634e559c122a2e6c8b7287f0790e2a#file-projects_controller-rb-L8
[12:53:05] xall: Ping timeout: 240 seconds
[13:27:48] xall: has joined #ruby
[13:27:50] xall: has joined #RubyOnRails
[13:34:40] xall: Any idea why I'm getting this routing error? redirect_to errs expecting a singular route - I don't understand why it's expecting a singular route. https://gist.github.com/jdsutherland/30634e559c122a2e6c8b7287f0790e2a#file-debug-rb-L29
[13:41:09] xall: jeromelanteri: i don't think that's the problem. i updated the gist with more info https://gist.github.com/jdsutherland/30634e559c122a2e6c8b7287f0790e2a#file-debug-rb-L58
[13:45:11] xall: jeromelanteri: i accidently had projects_url in the gist as I was trying trying things to debug (i've since updated to @product)
[13:45:17] xall: jeromelanteri: routes output is in the gist
[13:48:31] xall: jeromelanteri: no, the error is clear in the gist
[13:50:13] xall: yeah, i don't understand why it seems call a singular route. it should be `projects_url`
[13:57:08] xall: cheers, thanks for taking a look
[15:11:15] xall: Ping timeout: 268 seconds
[15:27:21] xall: has joined #ruby
[15:27:23] xall: has joined #RubyOnRails
[15:29:27] xall: Client Quit

2018-08-03

[13:37:29] xall: has joined #RubyOnRails
[13:37:29] xall: has joined #ruby
[13:42:32] xall: Quit: xall

2018-08-01

[08:12:12] xall: has joined #RubyOnRails
[08:12:12] xall: has joined #ruby
[08:30:23] xall: Quit: xall

2018-07-24

[09:39:30] xall: has joined #RubyOnRails
[09:39:30] xall: has joined #ruby
[10:25:38] xall: Quit: xall

2018-07-22

[07:05:11] xall: has joined #RubyOnRails
[07:05:11] xall: has joined #ruby
[08:28:59] xall: Quit: xall

2018-07-20

[01:46:21] xall: has joined #RubyOnRails
[01:46:21] xall: has joined #ruby
[01:46:24] xall: Client Quit
[01:47:10] xall: has joined #RubyOnRails
[01:47:10] xall: has joined #ruby
[04:52:39] xall: Ping timeout: 256 seconds
[05:10:12] xall: has joined #ruby
[05:10:14] xall: has joined #RubyOnRails
[05:10:56] xall: Client Quit
[08:00:31] xall: has joined #RubyOnRails
[08:00:31] xall: has joined #ruby
[08:39:19] xall: Ping timeout: 256 seconds
[08:52:35] xall: has joined #ruby
[08:52:37] xall: has joined #RubyOnRails
[09:26:48] xall: Read error: Connection reset by peer
[10:07:09] xall: has joined #ruby
[10:07:11] xall: has joined #RubyOnRails
[11:38:32] xall: Ping timeout: 260 seconds
[11:59:02] xall: has joined #ruby
[11:59:04] xall: has joined #RubyOnRails
[12:11:12] xall: Ping timeout: 268 seconds

2018-07-18

[03:54:19] xall: has joined #RubyOnRails
[03:54:19] xall: has joined #ruby
[04:42:09] xall: Quit: xall

2018-07-15

[04:36:10] xall: has joined #RubyOnRails
[04:36:10] xall: has joined #ruby
[05:55:13] xall: Ping timeout: 244 seconds

2018-04-28

[02:53:44] xall: has joined #RubyOnRails
[02:53:44] xall: has joined #ruby
[02:59:38] xall: Quit: xall

2018-03-20

[03:02:30] xall: has joined #ruby
[03:02:33] xall: has joined #RubyOnRails
[03:07:55] xall: Ping timeout: 256 seconds
[23:04:59] xall: has joined #ruby
[23:05:02] xall: has joined #RubyOnRails
[23:09:49] xall: Ping timeout: 256 seconds

2018-03-19

[22:15:07] xall: has joined #RubyOnRails
[22:15:07] xall: has joined #ruby
[23:34:28] xall: Ping timeout: 240 seconds

2017-11-22

[08:56:48] xall: has joined #RubyOnRails
[08:56:48] xall: has joined #ruby
[09:50:40] xall: Read error: Connection reset by peer
[09:52:06] xall: has joined #ruby
[09:52:08] xall: has joined #RubyOnRails
[10:01:00] xall: Ping timeout: 246 seconds
[10:50:32] xall: has joined #ruby
[10:50:34] xall: has joined #RubyOnRails
[10:50:46] xall: Client Quit

2017-11-14

[06:55:57] xall: has joined #ruby
[06:55:58] xall: has joined #RubyOnRails
[06:59:12] xall: the book Growing Object Oriented Software Guided By Tests says: Separate Tests That Measure Progress from Those That Catch Regressions
[06:59:30] xall: is this common to do in rails? in the projects I've seen, acceptance tests are usually in specs/features
[06:59:36] xall: but they don't seem to be distinguished
[08:39:57] xall: Ping timeout: 240 seconds
[09:07:35] xall: has joined #ruby
[09:07:37] xall: has joined #RubyOnRails
[10:51:27] xall: Ping timeout: 240 seconds
[14:05:28] xall: has joined #ruby
[14:05:30] xall: has joined #RubyOnRails
[14:33:58] xall: Ping timeout: 268 seconds

2017-11-09

[01:23:45] xall: has joined #ruby
[01:23:47] xall: has joined #RubyOnRails
[01:24:18] xall: Client Quit

2017-11-08

[02:39:56] xall: has joined #RubyOnRails
[02:39:56] xall: has joined #ruby
[02:46:24] xall: Ping timeout: 248 seconds
[04:43:36] xall: has joined #ruby
[04:43:37] xall: has joined #RubyOnRails
[05:27:07] xall: Ping timeout: 250 seconds
[05:57:37] xall: has joined #ruby
[05:57:39] xall: has joined #RubyOnRails
[11:50:03] xall: Read error: Connection reset by peer

2017-11-03

[02:35:13] xall: has joined #ruby
[02:35:14] xall: has joined #RubyOnRails
[02:49:04] xall: Read error: Connection reset by peer

2017-11-02

[02:23:11] xall: has joined #RubyOnRails
[02:28:12] xall: i'm trying to understand `class_name` with associations. the docs give the ex: `belongs_to :author, class_name: "Patron"`. so the association name is 'author' but the actual model name is 'Patron' right? why would one choose a different name? better naming clarity?
[02:34:44] xall: sevenseacat: thanks. so something like `belongs_to :buyer, :class_name => 'User', :foreign_key => 'buyer_id'; belongs_to :seller, :class_name => 'User', :foreign_key => 'seller_id'
[03:25:20] xall: Read error: Connection reset by peer