KevinSjoberg

Activity Graph

Page 1 of 3 | Next »

2019-08-03

[09:44:58] KevinSjoberg: Ping timeout: 252 seconds
[09:48:01] KevinSjoberg: has joined #ruby
[09:48:01] KevinSjoberg: has joined #RubyOnRails

2019-08-01

[22:37:19] KevinSjoberg: *.net *.split

2019-07-09

[11:56:00] KevinSjoberg: *.net *.split
[12:01:27] KevinSjoberg: has joined #RubyOnRails
[12:01:33] KevinSjoberg: has joined #ruby

2019-05-31

[12:25:48] KevinSjoberg: Ping timeout: 252 seconds

2019-05-27

[19:15:20] KevinSjoberg: Ping timeout: 252 seconds
[19:46:13] KevinSjoberg: has joined #ruby
[19:46:13] KevinSjoberg: has joined #RubyOnRails

2019-05-03

[21:43:53] KevinSjoberg: *.net *.split
[22:08:14] KevinSjoberg: has joined #RubyOnRails
[22:08:16] KevinSjoberg: has joined #ruby

2019-05-02

[01:19:07] KevinSjoberg: Ping timeout: 240 seconds
[01:48:00] KevinSjoberg: has joined #ruby
[01:48:00] KevinSjoberg: has joined #RubyOnRails

2019-04-16

[06:43:54] KevinSjoberg: Ping timeout: 259 seconds
[06:52:16] KevinSjoberg: has joined #ruby
[06:52:16] KevinSjoberg: has joined #RubyOnRails

2019-04-13

[16:49:50] KevinSjoberg: *.net *.split

2019-03-10

[06:58:00] KevinSjoberg: *.net *.split
[11:32:39] KevinSjoberg: has joined #ruby
[11:32:39] KevinSjoberg: has joined #RubyOnRails

2019-02-28

[08:27:44] KevinSjoberg: has joined #RubyOnRails

2019-02-14

[12:19:51] KevinSjoberg: andywww: Don't you need to pass the opts to super? I.e., super(opts).
[12:20:36] KevinSjoberg: Oh, sorry. Looking at the wrong class.

2019-02-12

[07:40:59] KevinSjoberg: elcontrastador: What do you want to acheieve?
[07:44:48] KevinSjoberg: I see. Socket isn't my day-to-day work so I think this might be a bit out of my comfort zone.
[07:48:10] KevinSjoberg: elcontrastador: Pretty good docs I must say.

2019-02-07

[15:10:12] KevinSjoberg: Both Hash and Symbol implement `#to_proc`, both procs return an arity of `-1`. Why is this? They clearly only accept one argument. Calling `{a: 1}.to_proc.call(1, 2, 3)` raises an ArgumentError about unexpected number of argument.
[15:10:39] KevinSjoberg: Calling `:upcase.to_proc.call("asd", "asd", "asd")` will raise an ArgumentError about too many options.

2019-01-31

[08:32:26] KevinSjoberg: has joined #ruby
[20:01:57] KevinSjoberg: Is it possible to retrieve the available `public_methods` in the order they were defined?
[20:02:44] KevinSjoberg: I'm writing a step based library and would like to use a class instead of a custom DSL to define my steps. But this all come down crashing unless i can retrieve the methods in their defined order.
[20:06:02] KevinSjoberg: phaul: you're right, I'll just stick to a DSL then.

2018-11-22

[07:38:12] KevinSjoberg: has joined #RubyOnRails
[07:38:14] KevinSjoberg: has joined #ruby
[08:16:52] KevinSjoberg: Read error: Connection reset by peer

2018-11-21

[05:46:02] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:04:29] KevinSjoberg: has joined #RubyOnRails
[10:43:32] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:39:52] KevinSjoberg: has joined #ruby
[20:14:11] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:14:41] KevinSjoberg: has joined #RubyOnRails
[20:28:38] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-20

[16:12:58] KevinSjoberg: has joined #ruby
[16:13:00] KevinSjoberg: has joined #RubyOnRails

2018-10-22

[18:33:49] KevinSjoberg: has joined #RubyOnRails
[19:08:50] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-31

[06:09:18] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:38:06] KevinSjoberg: has joined #ruby
[06:42:38] KevinSjoberg: Ping timeout: 250 seconds

2018-08-30

[07:56:24] KevinSjoberg: has joined #ruby
[07:56:26] KevinSjoberg: has joined #RubyOnRails

2018-08-21

[13:34:32] KevinSjoberg: has joined #RubyOnRails
[13:42:05] KevinSjoberg: has joined #ruby
[20:19:35] KevinSjoberg: Ping timeout: 272 seconds

2018-08-20

[06:31:18] KevinSjoberg: has joined #RubyOnRails
[06:31:20] KevinSjoberg: has joined #ruby
[07:06:12] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:08:46] KevinSjoberg: has joined #ruby
[10:17:43] KevinSjoberg: Ping timeout: 260 seconds

2018-08-19

[16:58:23] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:35:12] KevinSjoberg: has joined #RubyOnRails
[18:05:47] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:23:07] KevinSjoberg: has joined #ruby
[18:31:41] KevinSjoberg: has joined #RubyOnRails
[19:19:02] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-18

[09:57:51] KevinSjoberg: has joined #ruby

2018-08-17

[08:38:03] KevinSjoberg: has joined #RubyOnRails
[08:57:48] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-16

[07:13:05] KevinSjoberg: has joined #ruby
[07:14:35] KevinSjoberg: has joined #RubyOnRails
[14:49:09] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:28:52] KevinSjoberg: has joined #ruby
[16:32:16] KevinSjoberg: has joined #RubyOnRails
[22:46:45] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-15

[05:50:56] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:13:29] KevinSjoberg: has joined #RubyOnRails
[06:13:30] KevinSjoberg: has joined #ruby
[07:52:30] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:53:58] KevinSjoberg: has joined #RubyOnRails
[08:26:51] KevinSjoberg: has joined #ruby
[09:28:54] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:59:54] KevinSjoberg: has joined #ruby
[18:59:57] KevinSjoberg: has joined #RubyOnRails
[20:58:27] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-14

[07:04:43] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:47:33] KevinSjoberg: has joined #RubyOnRails
[08:57:40] KevinSjoberg: has joined #ruby
[15:11:04] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:14:16] KevinSjoberg: has joined #RubyOnRails

2018-08-13

[05:25:35] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:40:43] KevinSjoberg: has joined #RubyOnRails
[17:58:42] KevinSjoberg: has joined #ruby

2018-08-12

[13:46:38] KevinSjoberg: has joined #RubyOnRails
[13:46:38] KevinSjoberg: has joined #ruby

2018-08-09

[05:41:53] KevinSjoberg: has joined #ruby
[09:05:02] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:07:58] KevinSjoberg: has joined #ruby
[11:20:53] KevinSjoberg: has joined #RubyOnRails
[12:51:29] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:27:39] KevinSjoberg: has joined #ruby
[13:27:41] KevinSjoberg: has joined #RubyOnRails
[14:34:00] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:19:58] KevinSjoberg: has joined #ruby
[16:19:58] KevinSjoberg: has joined #RubyOnRails
[16:20:32] KevinSjoberg: has joined #RubyOnRails
[16:20:38] KevinSjoberg: has joined #ruby
[16:56:13] KevinSjoberg: Read error: Connection reset by peer

2018-06-21

[13:23:54] KevinSjoberg: has joined #ruby
[13:57:17] KevinSjoberg: Quit: Textual IRC Client: www.textualapp.com

2018-06-02

[07:28:52] KevinSjoberg: has joined #ruby
[07:57:52] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:10:48] KevinSjoberg: has joined #ruby

2018-06-01

[12:08:53] KevinSjoberg: has joined #RubyOnRails
[12:09:33] KevinSjoberg: has joined #ruby
[12:10:16] KevinSjoberg: second element it should not be permitted.
[12:10:16] KevinSjoberg: values. For instance, `SetRuleAction` permits `type`, `field` and `value`. `SkipRuleAction` permits nothing other than it's `type`. So, given `{ "rule"=>{"name"=>"", "active"=>"1", "actions_attributes"=>{"1527853308564"=>{"type"=>"SetRuleAction", "field"=>"vat_percentage","value"=>"abc", "_destroy"=>"false"}, "1527853309215"=>{"type"=>"SkipRuleAction", "_destroy"=>"false"}}}`. I want to permit `field` and `value`. But for the
[12:10:16] KevinSjoberg: I'm having an interesting problem. I have a `Rule` model that has many `RuleAction`s. There are different kinds of `RuleAction` so I'm using STI, e.g., `SetRuleAction < RuleAction` and `SkipRuleAction < RuleAction`. In my form, I can create one or more rule actions using `accepted_nested_attributes`. Now, the problem comes when I want to permit the values. Depending on `type` for each association I want to permit specific
[12:41:19] KevinSjoberg: NL3limin4t0r: Thank you. I solved it myself (forgot to inform the chat). Appreciate the help though. :)
[12:41:51] KevinSjoberg: For reference: I permitted the common values, name, active of the rules. For each element in the array I permitted the hash based on type.
[12:41:54] KevinSjoberg: Similar to what you did.
[15:09:25] KevinSjoberg: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[15:09:35] KevinSjoberg: has joined #RubyOnRails
[15:22:08] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:23:48] KevinSjoberg: has joined #ruby
[16:06:27] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:34:02] KevinSjoberg: has joined #ruby
[18:28:45] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:42:38] KevinSjoberg: has joined #ruby
[19:27:34] KevinSjoberg: has joined #RubyOnRails
[19:29:23] KevinSjoberg: Today I stumbled across an interesting strong_parameters use-case. I've summarised and included my current solution. Any obvious improvements that can be made?
[19:29:24] KevinSjoberg: https://gist.github.com/KevinSjoberg/dd1cbd1b68ee9e83ebe44a7c689736f7
[19:54:52] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:33:07] KevinSjoberg: has joined #ruby
[22:59:25] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-02-05

[11:39:07] KevinSjoberg: marataziat: puts "hello, world!"

2018-02-04

[06:18:20] KevinSjoberg: Ping timeout: 260 seconds
[06:20:44] KevinSjoberg: has joined #ruby

2018-01-16

[07:31:11] KevinSjoberg: has joined #ruby
[07:31:11] KevinSjoberg: has joined #RubyOnRails

2018-01-15

[08:46:05] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:43:49] KevinSjoberg: has joined #RubyOnRails
[11:43:49] KevinSjoberg: has joined #ruby
[12:59:34] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:01:13] KevinSjoberg: has joined #RubyOnRails
[13:01:13] KevinSjoberg: has joined #ruby
[13:50:01] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:11:53] KevinSjoberg: has joined #ruby
[15:11:53] KevinSjoberg: has joined #RubyOnRails
[20:06:14] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:06:41] KevinSjoberg: has joined #ruby
[20:06:42] KevinSjoberg: has joined #RubyOnRails
[20:56:08] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-01-14

[03:38:25] KevinSjoberg: has joined #ruby
[03:38:25] KevinSjoberg: has joined #RubyOnRails
[04:42:14] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:01:57] KevinSjoberg: has joined #ruby
[13:01:57] KevinSjoberg: has joined #RubyOnRails
[13:13:20] KevinSjoberg: has joined #RubyOnRails
[13:13:20] KevinSjoberg: has joined #ruby
[16:29:36] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:30:14] KevinSjoberg: has joined #ruby
[16:30:14] KevinSjoberg: has joined #RubyOnRails
[16:48:03] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:03:03] KevinSjoberg: has joined #ruby
[18:03:04] KevinSjoberg: has joined #RubyOnRails

2018-01-13

[14:20:53] KevinSjoberg: has joined #ruby
[14:20:53] KevinSjoberg: has joined #RubyOnRails
[14:57:26] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:12:37] KevinSjoberg: has joined #ruby
[15:12:38] KevinSjoberg: has joined #RubyOnRails
[15:43:55] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:49:34] KevinSjoberg: has joined #RubyOnRails
[15:49:35] KevinSjoberg: has joined #ruby
[16:11:48] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:37:02] KevinSjoberg: has joined #RubyOnRails
[17:37:02] KevinSjoberg: has joined #ruby
[18:01:05] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:47:50] KevinSjoberg: has joined #ruby
[18:47:50] KevinSjoberg: has joined #RubyOnRails
[21:29:37] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-10-10

[06:05:04] KevinSjoberg: has joined #RubyOnRails
[06:05:04] KevinSjoberg: has joined #ruby
[06:18:04] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:18:52] KevinSjoberg: has joined #ruby
[06:18:52] KevinSjoberg: has joined #RubyOnRails
[06:21:10] KevinSjoberg: Read error: Connection reset by peer

2017-10-09

[06:29:56] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:47:48] KevinSjoberg: has joined #ruby
[07:47:48] KevinSjoberg: has joined #RubyOnRails
[08:46:00] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:57:10] KevinSjoberg: has joined #ruby
[10:57:10] KevinSjoberg: has joined #RubyOnRails
[11:17:11] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:18:26] KevinSjoberg: has joined #RubyOnRails
[11:18:26] KevinSjoberg: has joined #ruby
[14:23:29] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-10-08

[17:05:52] KevinSjoberg: has joined #ruby
[17:05:52] KevinSjoberg: has joined #RubyOnRails

2017-09-14

[13:45:38] KevinSjoberg: has joined #RubyOnRails
[13:45:38] KevinSjoberg: has joined #ruby
[15:52:01] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:08:36] KevinSjoberg: has joined #ruby
[16:08:36] KevinSjoberg: has joined #RubyOnRails
[16:29:06] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:31:12] KevinSjoberg: has joined #RubyOnRails
[16:31:12] KevinSjoberg: has joined #ruby
[16:35:52] KevinSjoberg: has joined #RubyOnRails
[16:35:52] KevinSjoberg: has joined #ruby
[16:47:10] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:48:18] KevinSjoberg: has joined #RubyOnRails
[16:48:18] KevinSjoberg: has joined #ruby
[16:54:00] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:56:25] KevinSjoberg: has joined #ruby
[16:56:25] KevinSjoberg: has joined #RubyOnRails
[17:40:38] KevinSjoberg: has joined #ruby
[17:40:38] KevinSjoberg: has joined #RubyOnRails
[18:46:33] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:47:11] KevinSjoberg: has joined #RubyOnRails
[18:47:11] KevinSjoberg: has joined #ruby
[21:17:33] KevinSjoberg: Quit: Textual IRC Client: www.textualapp.com

2017-09-13

[13:48:08] KevinSjoberg: has joined #ruby
[15:47:04] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:47:58] KevinSjoberg: has joined #ruby
[15:47:58] KevinSjoberg: has joined #RubyOnRails
[17:23:38] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:37:12] KevinSjoberg: has joined #ruby
[17:37:12] KevinSjoberg: has joined #RubyOnRails
[17:52:58] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:03:13] KevinSjoberg: has joined #RubyOnRails
[19:03:13] KevinSjoberg: has joined #ruby
[19:54:40] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:57:22] KevinSjoberg: has joined #ruby
[19:57:22] KevinSjoberg: has joined #RubyOnRails
[20:34:15] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:37:22] KevinSjoberg: has joined #RubyOnRails
[20:37:22] KevinSjoberg: has joined #ruby
[20:51:33] KevinSjoberg: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:56:17] KevinSjoberg: has joined #RubyOnRails
[20:56:18] KevinSjoberg: has joined #ruby
[21:00:27] KevinSjoberg: Ping timeout: 240 seconds