« Back to channel list

#RubyOnRails - 06 October 2018

« Back 1 day Forward 1 day »
[00:05:55] cschneid_: has joined #RubyOnRails
[00:06:15] schneider: has joined #RubyOnRails
[00:15:04] nertzy: has joined #RubyOnRails
[00:15:35] schneider: has joined #RubyOnRails
[00:24:50] schneider: has joined #RubyOnRails
[00:34:06] schneider: has joined #RubyOnRails
[00:40:06] ariedler: has joined #RubyOnRails
[00:43:25] schneider: has joined #RubyOnRails
[00:52:42] schneider: has joined #RubyOnRails
[00:57:09] MoritaShinobu: has joined #RubyOnRails
[01:01:59] schneider: has joined #RubyOnRails
[01:11:34] schneider: has joined #RubyOnRails
[01:20:30] schneider: has joined #RubyOnRails
[01:29:49] schneider: has joined #RubyOnRails
[01:39:07] schneider: has joined #RubyOnRails
[01:43:51] darkhanb: has joined #RubyOnRails
[01:48:27] schneider: has joined #RubyOnRails
[01:57:37] schneider: has joined #RubyOnRails
[02:05:31] cagomez: has joined #RubyOnRails
[02:07:05] schneider: has joined #RubyOnRails
[02:15:29] chouhoulis: has joined #RubyOnRails
[02:16:21] schneider: has joined #RubyOnRails
[02:25:41] schneider: has joined #RubyOnRails
[02:32:19] za1b1tsu: has joined #RubyOnRails
[02:33:43] cschneid_: has joined #RubyOnRails
[02:34:58] schneider: has joined #RubyOnRails
[02:41:51] ariedler: has joined #RubyOnRails
[02:42:04] davidh38: has joined #RubyOnRails
[02:44:12] schneider: has joined #RubyOnRails
[02:47:19] chouhoulis: has joined #RubyOnRails
[02:53:31] schneider: has joined #RubyOnRails
[03:02:47] schneider: has joined #RubyOnRails
[03:10:13] braincrash: has joined #RubyOnRails
[03:11:57] LenPayne: has joined #RubyOnRails
[03:12:07] schneider: has joined #RubyOnRails
[03:12:51] segy: has joined #RubyOnRails
[03:18:52] tdy: has joined #RubyOnRails
[03:21:20] schneider: has joined #RubyOnRails
[03:26:08] cschneid_: has joined #RubyOnRails
[03:30:37] schneider: has joined #RubyOnRails
[03:35:21] apeiros: has joined #RubyOnRails
[03:37:01] orbyt_: has joined #RubyOnRails
[03:39:57] schneider: has joined #RubyOnRails
[03:47:17] rodd: anyone using traefik + docker + puma care to share your container labels in docker-compose?
[03:49:15] schneider: has joined #RubyOnRails
[03:51:11] chouhoulis: has joined #RubyOnRails
[03:54:19] eckhardt: has joined #RubyOnRails
[03:58:32] schneider: has joined #RubyOnRails
[04:00:57] duderonomy: has joined #RubyOnRails
[04:07:45] schneider: has joined #RubyOnRails
[04:08:47] Puffball: has joined #RubyOnRails
[04:17:04] schneider: has joined #RubyOnRails
[04:17:38] Saukk: has joined #RubyOnRails
[04:26:19] schneider: has joined #RubyOnRails
[04:35:39] schneider: has joined #RubyOnRails
[04:42:03] tdy: has joined #RubyOnRails
[04:42:06] ariedler: has joined #RubyOnRails
[04:42:47] nertzy: has joined #RubyOnRails
[04:44:56] schneider: has joined #RubyOnRails
[04:54:11] schneider: has joined #RubyOnRails
[04:55:50] cagomez: has joined #RubyOnRails
[05:03:27] schneider: has joined #RubyOnRails
[05:12:46] schneider: has joined #RubyOnRails
[05:22:01] schneider: has joined #RubyOnRails
[05:24:09] duderonomy: has joined #RubyOnRails
[05:25:54] cschneid_: has joined #RubyOnRails
[05:55:37] apeiros: has joined #RubyOnRails
[06:01:44] davidh38: has joined #RubyOnRails
[06:07:35] duderonomy: has joined #RubyOnRails
[06:15:55] apeiros: has joined #RubyOnRails
[06:34:27] cschneid_: has joined #RubyOnRails
[06:37:27] apeiros: has joined #RubyOnRails
[06:40:11] duderonomy: has joined #RubyOnRails
[06:43:09] ariedler: has joined #RubyOnRails
[07:05:04] reber: has joined #RubyOnRails
[07:05:50] za1b1tsu: has joined #RubyOnRails
[07:06:43] wethu: has joined #RubyOnRails
[07:29:02] duderonomy: has joined #RubyOnRails
[07:35:41] duderonomy: has joined #RubyOnRails
[07:35:44] davidh38: has joined #RubyOnRails
[07:53:28] tdy: has joined #RubyOnRails
[08:03:20] LiftLeft: has joined #RubyOnRails
[08:04:14] cschneid_: has joined #RubyOnRails
[08:24:53] ellcs: has joined #RubyOnRails
[08:27:41] apeiros_: has joined #RubyOnRails
[08:33:26] ariejan: has joined #RubyOnRails
[08:35:02] ariejan: Hi. I'm trying to understand how a rendered view fetches instance variables (in the code). I've found `view_assigns` and I see how those assigns get loaded up in `@_assigns` in ActionView::Base, but I can't seem to locate the place where you get that data out - and what happens when a variable is not there. Note: I'm trying to find the code where this happens in Rails - I know how it all works :-)
[08:38:47] apeiros_: has joined #RubyOnRails
[08:40:26] sevenseacat: has joined #RubyOnRails
[08:43:59] ariedler: has joined #RubyOnRails
[08:48:24] davidh38: has joined #RubyOnRails
[08:48:41] davidh38: has joined #RubyOnRails
[08:49:04] uksio: has joined #RubyOnRails
[08:55:51] conta: has joined #RubyOnRails
[09:00:39] tdy: has joined #RubyOnRails
[09:01:55] sameerynho: has joined #RubyOnRails
[09:20:51] hahuang6-: has joined #RubyOnRails
[09:21:17] MrCrackPotBuilde: has joined #RubyOnRails
[09:21:24] Fernando-Basso: has joined #RubyOnRails
[09:30:55] kapil____: has joined #RubyOnRails
[09:34:46] cschneid_: has joined #RubyOnRails
[09:38:56] davidh38: has joined #RubyOnRails
[10:10:34] ariejan: has joined #RubyOnRails
[10:44:41] davidh38: has joined #RubyOnRails
[10:45:11] davidh38: has joined #RubyOnRails
[10:45:24] ariedler: has joined #RubyOnRails
[10:49:39] lankanmon: has joined #RubyOnRails
[10:52:45] sandstrom: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[11:04:37] cschneid_: has joined #RubyOnRails
[11:14:13] DTZUZO: has joined #RubyOnRails
[11:25:14] davidh38: has joined #RubyOnRails
[11:26:02] desperek: has joined #RubyOnRails
[11:26:06] DTZUZO: has joined #RubyOnRails
[11:30:40] tdy: has joined #RubyOnRails
[12:03:32] conta: has joined #RubyOnRails
[12:24:41] lypsis: has joined #RubyOnRails
[12:32:21] lexileo: has joined #RubyOnRails
[12:36:02] cschneid_: has joined #RubyOnRails
[12:40:22] za1b1tsu: has joined #RubyOnRails
[12:45:19] ellcs: has joined #RubyOnRails
[12:52:49] davidh38: has joined #RubyOnRails
[13:14:31] Saukk: has joined #RubyOnRails
[13:15:00] schneider: has joined #RubyOnRails
[13:21:28] za1b1tsu: has joined #RubyOnRails
[13:27:16] ellcs: has joined #RubyOnRails
[13:35:21] mjacob: why does ActiveRecord define an attribute class method, but ActiveModel doesn't?
[13:39:52] mjacob: context: i want to test a helper class which can be used to define an attribute with certain properties. my first idea was to create an ad-hoc record subclass for testing. however this turned out to be too complicated because this subclass isn't contained in the database schema. i thought that testing an activemodel instead of an activerecord may be a better idea
[13:39:52] nertzy: has joined #RubyOnRails
[13:56:34] ellcs: has joined #RubyOnRails
[13:56:49] tbuehlmann: mjacob: activemodel and activerecord are different things, so you probably shouldn't mock an activerecord class with an activemodel class, right?
[13:57:20] nertzy: has joined #RubyOnRails
[13:57:34] mjacob: tbuehlmann: the helper is in a module, so in theory it could be included by both models and records
[13:57:49] tbuehlmann: wanna show some code?
[13:57:54] za1b1tsu: has joined #RubyOnRails
[13:58:26] mjacob: tbuehlmann: i'm basically doing what was proposed in the top answer of https://stackoverflow.com/questions/35373590/how-can-i-test-methods-in-the-applicationrecord-abstract-base-class
[14:00:44] tdy: has joined #RubyOnRails
[14:03:28] schneider: has joined #RubyOnRails
[14:04:25] Dbugger: has joined #RubyOnRails
[14:04:57] cschneid_: has joined #RubyOnRails
[14:06:52] tbuehlmann: can you gist it?
[14:15:05] mjacob: tbuehlmann: http://dpaste.com/2MVZ2GV
[14:15:22] mjacob: sorry, i had to minimize it a bit
[14:15:29] mjacob: i hope it works as-is
[14:17:40] tbuehlmann: okay, and that doesn't work with an activemodel?
[14:19:27] nertzy: has joined #RubyOnRails
[14:23:21] ariedler: has joined #RubyOnRails
[14:27:47] mjacob: tbuehlmann: this would work because the 'attribute' class method is missing: http://dpaste.com/0M6V5E5
[14:29:16] GodFather: has joined #RubyOnRails
[14:37:53] tbuehlmann: I mean, you could also just test whether the `attribute` method called as expected, not doing it really
[14:43:43] za1b1tsu: has joined #RubyOnRails
[14:50:05] chouhoulis: has joined #RubyOnRails
[15:04:42] apeiros_: has joined #RubyOnRails
[15:17:35] Tempesta: has joined #RubyOnRails
[15:37:36] eckhardt: has joined #RubyOnRails
[15:39:33] davidh38: has joined #RubyOnRails
[15:49:55] za1b1tsu: has joined #RubyOnRails
[15:50:15] eckhardt_: has joined #RubyOnRails
[15:59:21] nertzy: has joined #RubyOnRails
[16:03:31] tdy: has joined #RubyOnRails
[16:12:00] chouhoulis: has joined #RubyOnRails
[16:15:48] cschneid_: has joined #RubyOnRails
[16:16:13] ellcs: has joined #RubyOnRails
[16:20:53] pLaTo0n: has joined #RubyOnRails
[16:21:42] chouhoulis: has joined #RubyOnRails
[16:26:54] za1b1tsu: has joined #RubyOnRails
[16:30:19] Dimik: has joined #RubyOnRails
[16:31:35] duderonomy: has joined #RubyOnRails
[16:36:22] za1b1tsu: has joined #RubyOnRails
[16:43:54] sandstrom: has joined #RubyOnRails
[16:45:05] davidh38: has joined #RubyOnRails
[16:47:04] cschneid_: has joined #RubyOnRails
[17:09:50] orbyt_: has joined #RubyOnRails
[17:21:59] za1b1tsu: has joined #RubyOnRails
[17:33:22] eckhardt: has joined #RubyOnRails
[18:01:46] davidh38: has joined #RubyOnRails
[18:22:39] davidh38: has joined #RubyOnRails
[18:26:04] NoGodDamnIdea: has joined #RubyOnRails
[18:27:27] davidh38: has joined #RubyOnRails
[18:41:52] apeiros__: has joined #RubyOnRails
[18:41:56] agent_white: has joined #RubyOnRails
[19:09:27] za1b1tsu: has joined #RubyOnRails
[19:45:58] frewsxcv: has left #RubyOnRails: ()
[19:54:38] davidh38: has joined #RubyOnRails
[20:08:41] Puffball: has joined #RubyOnRails
[20:31:24] Scriptonaut: has left #RubyOnRails: ()
[20:45:57] cagomez: has joined #RubyOnRails
[20:46:01] tdy: has joined #RubyOnRails
[20:47:10] ariedler: has joined #RubyOnRails
[20:52:47] za1b1tsu: has joined #RubyOnRails
[20:59:11] duderonomy: has joined #RubyOnRails
[21:00:20] cagomez: has joined #RubyOnRails
[21:10:17] IanMalcolm: has joined #RubyOnRails
[21:12:46] fragamus: has joined #RubyOnRails
[21:26:41] fragamus: has joined #RubyOnRails
[21:37:37] fragamus: has joined #RubyOnRails
[21:57:44] skangas: How do I specify a belongs_to relation with ":optional => true" but also that *if it is specified* it has to be unique. As it is, I have both constraints enabled (optional and unique) but that means only one entry can be empty...
[22:01:57] skangas: validates_uniqueness_of :foreign_id, :allow_blank => true
[22:02:05] skangas: Turns out this is the answer
[22:19:09] IanMalcolm: has joined #RubyOnRails
[22:40:21] za1b1tsu: has joined #RubyOnRails
[22:48:21] fragamus: has joined #RubyOnRails
[22:55:01] duderonomy: has joined #RubyOnRails
[23:02:04] duderonomy: has joined #RubyOnRails
[23:32:22] Ergo: has joined #RubyOnRails
[23:35:55] fragamus: has joined #RubyOnRails