« Back to channel list

#RubyOnRails - 19 September 2018

« Back 1 day Forward 1 day »
[00:04:30] cagomez: has joined #RubyOnRails
[00:05:10] cagomez: has joined #RubyOnRails
[00:05:47] cagomez: has joined #RubyOnRails
[00:06:33] cagomez: has joined #RubyOnRails
[00:07:13] cagomez: has joined #RubyOnRails
[00:07:53] cagomez: has joined #RubyOnRails
[00:19:36] prettybTech: has joined #RubyOnRails
[00:27:38] weaksauce: has joined #RubyOnRails
[00:32:35] jottr: has joined #RubyOnRails
[00:38:13] apparition: has joined #RubyOnRails
[00:58:25] apeiros_: has joined #RubyOnRails
[01:00:44] Tempesta: has joined #RubyOnRails
[01:03:48] duderonomy: has joined #RubyOnRails
[01:08:49] Cork: has joined #RubyOnRails
[01:14:52] armyriad: has joined #RubyOnRails
[01:15:16] nemesit: has joined #RubyOnRails
[01:22:28] jottr: has joined #RubyOnRails
[01:31:45] sarmiena_: has joined #RubyOnRails
[01:33:03] cagomez: has joined #RubyOnRails
[01:39:34] sevenseacat: has joined #RubyOnRails
[02:20:58] Vashy: has left #RubyOnRails: ("Leaving")
[02:22:19] Xiti: has joined #RubyOnRails
[02:27:25] Saukk: has joined #RubyOnRails
[02:29:22] fragamus: has joined #RubyOnRails
[02:37:48] sevenseacat: has joined #RubyOnRails
[02:45:50] Guest61135: has joined #RubyOnRails
[02:46:06] fragamus: has joined #RubyOnRails
[02:47:18] ariedler: has joined #RubyOnRails
[03:02:46] arooni: has joined #RubyOnRails
[03:04:31] ivanskie: has joined #RubyOnRails
[03:14:33] arielserafini: has joined #RubyOnRails
[03:15:08] braincrash: has joined #RubyOnRails
[03:23:19] jottr: has joined #RubyOnRails
[03:37:10] Terens: has joined #RubyOnRails
[03:40:34] Terens: as I have said before, we put all bussiness logic in models and so far no real issue. I mean everything is implemented in callbacks. Sending emails, sms, custom triggers and pretty much everything for 100+ models. I am forced to follow this pattern and I though that it would lead to issues but we have none so far. So I am not sure if it is really bad in practice
[03:40:47] Terens: everything is in models and concerns
[03:41:11] sevenseacat: good for you.
[03:43:17] Terens: I would expect problems
[03:49:47] wethu: has joined #RubyOnRails
[04:02:24] jottr: has joined #RubyOnRails
[04:16:25] tdy: has joined #RubyOnRails
[04:18:25] srinidhi: has joined #RubyOnRails
[04:23:11] reber: has joined #RubyOnRails
[04:25:26] fragamus: has joined #RubyOnRails
[04:25:28] sheepman: has joined #RubyOnRails
[04:28:16] pwnd_nsfw: has joined #RubyOnRails
[04:35:27] za1b1tsu: has joined #RubyOnRails
[05:33:54] Cork: has joined #RubyOnRails
[05:55:25] psychoslave: has joined #RubyOnRails
[06:00:16] sarmiena_: has joined #RubyOnRails
[06:03:15] jottr: has joined #RubyOnRails
[06:12:59] snickers: has joined #RubyOnRails
[06:12:59] apeiros_: has joined #RubyOnRails
[06:15:15] bijan_: has joined #RubyOnRails
[06:17:21] MoritaShinobu: has joined #RubyOnRails
[06:40:50] fragamus: has joined #RubyOnRails
[06:53:43] psychoslave: has joined #RubyOnRails
[07:21:54] mikecmpbll: has joined #RubyOnRails
[07:22:11] Terens: has joined #RubyOnRails
[07:22:25] Terens: I want to generate a pin code for a model
[07:22:34] Terens: which callback is better to put it?
[07:25:02] Sylario: has joined #RubyOnRails
[07:30:24] sandstrom: has joined #RubyOnRails
[07:37:42] deathwishdave: has joined #RubyOnRails
[07:38:35] salasrod: has joined #RubyOnRails
[07:46:40] bijan_: has joined #RubyOnRails
[07:47:50] tbuehlmann: terens: when do you need it? when initializing a model?
[07:48:04] bijan_: terens: a pin code?
[07:48:59] bijan_: I do it like this: after_initialize :setup, if: :new_record? and define a private setup method
[07:49:07] Terens: yes this is what I did
[07:49:50] Terens: Now I have to call a method to send an sms. Maybe after_commit
[07:51:06] bijan_: sure... just make sure it's not blocking
[07:51:24] bijan_: 2 factor auth? ;D
[07:51:33] Terens: verification
[07:51:44] Terens: I am forced to have fat models
[07:51:51] sevenseacat: no you're not
[07:52:17] bijan_: you could create a service object that handles the creation without using callbacks
[07:52:21] sandstrom: has joined #RubyOnRails
[07:52:26] Terens: I know but I am not allowed to do so
[07:52:50] bijan_: terens: why?
[07:52:51] Terens: since lead dev wants everything in active record models nothing in controler
[07:53:07] Terens: until we do some kind or refactoring
[07:53:10] bijan_: I think this also shouldn't go in a controller
[07:53:30] Terens: service objects? or interactors? or something else
[07:53:50] bijan_: more like this
[07:53:54] sevenseacat: you should ask your lead dev for help then.
[07:53:58] Terens: however service object has to be used from controller
[07:54:09] tbuehlmann: so we all agree callbacks aren't that great but you're simply not allowed to use alternatives. time to talk to your lead devs, nothing to be done here
[07:54:38] bijan_: consensus
[07:54:51] lexileo: has joined #RubyOnRails
[07:57:16] bijan_: out of curiosity where would you put your "service objects"?
[07:58:58] bijan_: lib folder? app/service_objects? app/models/service_objects?
[07:59:43] bijan_: app/services?
[07:59:50] bijan_: is there any best practice?
[08:01:30] mikecmpbll: has joined #RubyOnRails
[08:04:00] jottr: has joined #RubyOnRails
[08:26:53] apeiros_: has joined #RubyOnRails
[08:33:01] Guest61135: has joined #RubyOnRails
[08:34:57] jottr: has joined #RubyOnRails
[08:35:31] tbuehlmann: bijan_: as I'm using interactors I put them in app/interactors. app/services is fine as well
[08:36:25] bijan_: would like rails 6 to have a default spot for those... dhh said he is extracting 3 frameworks out of basecamp for rails 6... wonder what it will be
[08:36:45] apparition: has joined #RubyOnRails
[08:37:09] bijan_: laravel and its ecosystem is doing a lot right at the moment. they added many cool services (some are premium) but the overall picture is really good
[08:38:07] bijan_: they have a SaaS starter app, a modern active admin clone, hosting service etc. all coming officially from laravel team. Wish we had this in Rails too
[08:40:07] bijan_: they even have a cashier service in their standard lib that offers subscriptions
[08:40:58] bijan_: I hate PHP but Taylor Otwell is managing this framework really well
[08:41:09] bijan_: He was a Rails guy before btw.
[08:41:11] lxsameer: has joined #RubyOnRails
[08:42:25] sevenseacat: in all honesty, I think the rails team should focus on rails
[08:43:02] sevenseacat: its hard enough to get good practices out of just the framework, let alone a whole bunch of detailed starter apps
[08:43:38] sevenseacat: if the framework was already more modular, then maybe that might work for rails
[08:48:01] uksio: has joined #RubyOnRails
[08:49:08] bijan_: sevenseacat: staying focussed is always the catch.. true
[08:49:11] Ergo: has joined #RubyOnRails
[08:52:07] bijan_: has joined #RubyOnRails
[08:57:35] squiffs: has joined #RubyOnRails
[08:57:47] bijan_: has joined #RubyOnRails
[09:05:26] Sylario: What permissions should /shared/log (or current/log) have in production?
[09:05:57] tjbp: has joined #RubyOnRails
[09:10:02] bijan_: has joined #RubyOnRails
[09:15:10] bijan_: has joined #RubyOnRails
[09:39:04] bijan_: has joined #RubyOnRails
[09:41:40] deathwishdave: has joined #RubyOnRails
[09:43:08] bijan__: has joined #RubyOnRails
[09:55:32] bijan_: has joined #RubyOnRails
[09:58:04] Puffball_: has joined #RubyOnRails
[09:59:44] bijan__: has joined #RubyOnRails
[10:02:01] blackmesa: has joined #RubyOnRails
[10:08:46] t0adst00l: has joined #RubyOnRails
[10:38:25] apeiros_: has joined #RubyOnRails
[10:48:18] lankanmon: has joined #RubyOnRails
[10:55:39] ariedler: has joined #RubyOnRails
[11:13:22] Cork: is there a way to revert mark_for_destruction on a model in a model relation?
[11:15:21] GodFather: has joined #RubyOnRails
[11:19:40] bijan_: has joined #RubyOnRails
[11:20:34] bijan_: I have a strange case with model concerns. When running in dev model concern is loaded correctly and when running tests it seems like the concern is not included at all.
[11:20:46] bijan_: anyone knows what might be going on?
[11:27:47] Lauer: has joined #RubyOnRails
[11:28:46] Lauer: It's it wrong to have a cucumber step, which check stuff is created in DB?
[11:29:08] Lauer: I can't find any describing how to solve it nicely in a Rails project
[11:33:15] za1b1tsu: has joined #RubyOnRails
[11:34:37] bijan_: WHOA name conflict in my concern... https://stackoverflow.com/questions/28497852/rails-4-2-concern-content-ignored-in-test-environment
[11:35:05] ndr0s: has joined #RubyOnRails
[11:35:16] lupine: has joined #RubyOnRails
[11:43:49] ss942: has joined #RubyOnRails
[11:44:30] ss942: is there something like quick Rails tutorial for Django developers?
[11:44:45] ss942: or should I start from begining?
[11:46:02] ndr0s: has left #RubyOnRails: ("WeeChat 1.6")
[11:51:32] Terens: I have rescue ActionController::ParameterMissing => e
[11:51:38] Terens: but I get the error
[11:57:15] ndr0s: has joined #RubyOnRails
[12:00:32] dionysus69: is it possible to save cert files in rails credentials?
[12:01:52] psychoslave: has joined #RubyOnRails
[12:02:19] ndr0s: has left #RubyOnRails: ("WeeChat 1.6")
[12:04:22] bijan_: has joined #RubyOnRails
[12:05:05] lexileo: has joined #RubyOnRails
[12:06:28] Liothen: has joined #RubyOnRails
[12:06:59] tbuehlmann: dionysus69: credentials can save strings, so yes
[12:07:26] wethu: has joined #RubyOnRails
[12:08:45] chouhoulis: has joined #RubyOnRails
[12:09:12] dionysus69: tbuehlmann: is it an okay idea? :D
[12:10:22] za1b1tsu: has joined #RubyOnRails
[12:15:17] bijan_: has joined #RubyOnRails
[12:26:47] bijan_: has joined #RubyOnRails
[12:29:49] ss942: has left #RubyOnRails: ()
[12:36:29] bijan_: has joined #RubyOnRails
[12:37:45] Puffball: has joined #RubyOnRails
[12:37:48] jottr: has joined #RubyOnRails
[12:51:59] MaiconVieira: has joined #RubyOnRails
[12:55:56] psychoslave: has joined #RubyOnRails
[13:12:32] kapil___: has joined #RubyOnRails
[13:14:19] t0adst00l: has joined #RubyOnRails
[13:14:32] bijan_: has joined #RubyOnRails
[13:15:33] tbuehlmann: dionysus69: if it's really a secret and you're working with credentials, sure I guess
[13:17:08] jottr: has joined #RubyOnRails
[13:26:07] bijan_: has joined #RubyOnRails
[13:26:46] blackmesa: has joined #RubyOnRails
[13:31:51] mojtaba: has joined #RubyOnRails
[13:36:37] bijan_: has joined #RubyOnRails
[13:42:40] jottr: has joined #RubyOnRails
[13:48:54] bijan_: has joined #RubyOnRails
[13:57:16] snickers: has joined #RubyOnRails
[13:58:52] duderonomy: has joined #RubyOnRails
[14:00:32] MaiconVieira: has left #RubyOnRails: ()
[14:29:25] jottr: has joined #RubyOnRails
[14:51:47] lomex: has joined #RubyOnRails
[14:53:27] jottr: has joined #RubyOnRails
[14:58:11] sarmiena_: has joined #RubyOnRails
[15:09:37] faitswulff: has joined #RubyOnRails
[15:16:28] davidh38: has joined #RubyOnRails
[15:20:08] wojnar: has joined #RubyOnRails
[15:23:38] cagomez: has joined #RubyOnRails
[15:27:29] Cork: has joined #RubyOnRails
[15:28:23] ivanskie: has joined #RubyOnRails
[15:31:23] za1b1tsu: has joined #RubyOnRails
[15:31:52] Cork: has joined #RubyOnRails
[15:35:22] jottr: has joined #RubyOnRails
[15:41:54] davidh38: has joined #RubyOnRails
[15:44:24] blackmesa: has joined #RubyOnRails
[15:47:36] davidh38: has joined #RubyOnRails
[15:50:59] davidh38: has joined #RubyOnRails
[15:56:09] blackmesa1: has joined #RubyOnRails
[16:02:28] fragamus: has joined #RubyOnRails
[16:08:42] fragamus: has joined #RubyOnRails
[16:09:36] stetsonthree: has joined #RubyOnRails
[16:11:08] lomex: has joined #RubyOnRails
[16:13:38] eckhardt: has joined #RubyOnRails
[16:16:45] wethu: has joined #RubyOnRails
[16:16:51] beholders_eye: has joined #RubyOnRails
[16:18:16] prettybTech: has joined #RubyOnRails
[16:30:19] apeiros_: has joined #RubyOnRails
[16:33:22] dtzuzu: has joined #RubyOnRails
[16:34:06] blackmesa: has joined #RubyOnRails
[16:35:53] bijan_: has joined #RubyOnRails
[16:38:43] DoctorMonocular: has joined #RubyOnRails
[16:38:53] duderonomy: has joined #RubyOnRails
[16:39:35] davidh38: has joined #RubyOnRails
[16:39:39] DoctorMonocular: hey, I'm debating between paper_trail, audited, or custom solution
[16:39:48] DoctorMonocular: one thing I'm wondering is performance impact
[16:39:51] DoctorMonocular: how bad are they?
[16:41:17] GodFather: has joined #RubyOnRails
[16:43:00] srinidhi: has joined #RubyOnRails
[16:46:58] davidh38: has joined #RubyOnRails
[16:47:32] prometheus_falli: has joined #RubyOnRails
[16:56:01] darkhanb: has joined #RubyOnRails
[16:56:39] schneider1: has joined #RubyOnRails
[17:02:38] cagomez: has joined #RubyOnRails
[17:03:29] cagomez: has joined #RubyOnRails
[17:04:05] cagomez: has joined #RubyOnRails
[17:04:29] davidh38: has joined #RubyOnRails
[17:04:43] cagomez: has joined #RubyOnRails
[17:05:23] cagomez: has joined #RubyOnRails
[17:06:03] cagomez: has joined #RubyOnRails
[17:08:47] lxsameer: has joined #RubyOnRails
[17:15:31] blackmesa: has joined #RubyOnRails
[17:15:50] Dbugger: has joined #RubyOnRails
[17:18:49] lxsameer: has joined #RubyOnRails
[17:28:49] lxsameer: has joined #RubyOnRails
[17:38:37] lxsameer: has joined #RubyOnRails
[17:48:43] lxsameer: has joined #RubyOnRails
[17:58:42] lxsameer: has joined #RubyOnRails
[18:01:09] snickers: has joined #RubyOnRails
[18:08:42] lxsameer: has joined #RubyOnRails
[18:12:22] Technodrome: has joined #RubyOnRails
[18:14:30] sandstrom: has joined #RubyOnRails
[18:15:59] prettybTech: has joined #RubyOnRails
[18:18:55] lxsameer: has joined #RubyOnRails
[18:21:09] davidh38: has joined #RubyOnRails
[18:22:11] deathwishdave: has joined #RubyOnRails
[18:28:41] lxsameer: has joined #RubyOnRails
[18:29:14] mikecmpbll: has joined #RubyOnRails
[18:33:19] blackmesa: has joined #RubyOnRails
[18:37:00] blackmesa1: has joined #RubyOnRails
[18:37:24] sandstrom: has joined #RubyOnRails
[18:38:37] jottr: has joined #RubyOnRails
[18:38:43] lxsameer: has joined #RubyOnRails
[18:42:13] tdy: has joined #RubyOnRails
[18:46:41] orbyt_: has joined #RubyOnRails
[18:48:47] lxsameer: has joined #RubyOnRails
[18:58:43] lxsameer: has joined #RubyOnRails
[19:00:23] atrius: has joined #RubyOnRails
[19:00:47] jottr: has joined #RubyOnRails
[19:08:54] lxsameer: has joined #RubyOnRails
[19:18:41] lxsameer: has joined #RubyOnRails
[19:22:41] fragamus: has joined #RubyOnRails
[19:23:21] sameerynho: has joined #RubyOnRails
[19:40:14] Linuus: has joined #RubyOnRails
[19:42:45] DTZUZO_: has joined #RubyOnRails
[19:48:19] weaksauce: has joined #RubyOnRails
[19:49:00] faitswulff: has joined #RubyOnRails
[19:51:45] faitswulff: has joined #RubyOnRails
[19:56:13] sandstrom: has joined #RubyOnRails
[19:56:40] roshanavand: has joined #RubyOnRails
[19:57:25] knight33: has joined #RubyOnRails
[19:58:26] jottr: has joined #RubyOnRails
[20:02:04] blackmesa1: has joined #RubyOnRails
[20:04:02] faitswulff: has joined #RubyOnRails
[20:06:47] prometheus_falli: has joined #RubyOnRails
[20:08:54] eckhardt: has joined #RubyOnRails
[20:11:20] moei: has joined #RubyOnRails
[20:20:38] deathwishdave: has joined #RubyOnRails
[20:25:26] jottr: has joined #RubyOnRails
[20:34:56] fragamus: has joined #RubyOnRails
[20:38:39] GodFather: has joined #RubyOnRails
[20:42:55] scrptktty: has joined #RubyOnRails
[20:52:18] roshanavand: has joined #RubyOnRails
[20:53:29] blackmesa: has joined #RubyOnRails
[21:01:13] jottr: has joined #RubyOnRails
[21:07:01] cagomez: has joined #RubyOnRails
[21:07:38] cagomez: has joined #RubyOnRails
[21:08:16] cagomez: has joined #RubyOnRails
[21:09:03] cagomez: has joined #RubyOnRails
[21:09:41] cagomez: has joined #RubyOnRails
[21:10:18] cagomez: has joined #RubyOnRails
[21:21:30] davidh38: has joined #RubyOnRails
[21:24:32] davidh38: has joined #RubyOnRails
[21:26:20] lxsameer: has joined #RubyOnRails
[21:29:48] xtsee: has joined #RubyOnRails
[21:40:04] jottr: has joined #RubyOnRails
[21:44:55] faitswulff: has joined #RubyOnRails
[21:50:04] davidh38: has joined #RubyOnRails
[21:54:07] apeiros_: has joined #RubyOnRails
[22:15:34] ndr0s: has joined #RubyOnRails
[22:26:05] RiPuk: has joined #RubyOnRails
[22:26:17] faitswulff: has joined #RubyOnRails
[22:26:51] jasmith: has joined #RubyOnRails
[22:27:48] sarmiena_: has joined #RubyOnRails
[22:28:56] davidh38: has joined #RubyOnRails
[22:31:16] Puffball: has joined #RubyOnRails
[22:31:48] DTZUZO_: has joined #RubyOnRails
[22:32:57] prettybT_: has joined #RubyOnRails
[22:39:46] davidh38: has joined #RubyOnRails
[22:43:53] davidh38: has joined #RubyOnRails
[22:49:37] sarmiena_: has joined #RubyOnRails
[22:53:26] tdy: has joined #RubyOnRails
[23:05:43] [Butch]: has joined #RubyOnRails
[23:08:47] fragamus: has joined #RubyOnRails
[23:14:33] lexileo: has joined #RubyOnRails
[23:14:39] davidh38: has joined #RubyOnRails
[23:16:14] IanMalcolm: has joined #RubyOnRails
[23:18:42] faitswulff: has joined #RubyOnRails
[23:27:04] lxsameer: has joined #RubyOnRails
[23:33:23] za1b1tsu: has joined #RubyOnRails
[23:34:55] Technodrome: has joined #RubyOnRails
[23:36:23] prettybTech: has joined #RubyOnRails
[23:41:17] jottr: has joined #RubyOnRails
[23:59:29] SanguineAnomaly: has joined #RubyOnRails