« Back to channel list

#RubyOnRails - 23 July 2018

« Back 1 day Forward 1 day »
[00:07:13] lexileo: has joined #RubyOnRails
[00:25:21] armyriad: has joined #RubyOnRails
[00:35:49] quazimodo: has joined #RubyOnRails
[00:51:35] AuricSark: has joined #RubyOnRails
[00:56:13] scrptktty: has joined #RubyOnRails
[00:56:30] scrptktty: has left #RubyOnRails: ()
[00:56:44] scrptktty: has joined #RubyOnRails
[01:09:30] sevenseacat: has joined #RubyOnRails
[01:12:09] gambl0re: has joined #RubyOnRails
[01:12:35] gambl0r3: has joined #RubyOnRails
[01:28:43] tdy: has joined #RubyOnRails
[01:33:44] prettybTech: has joined #RubyOnRails
[01:43:21] woohoou: has joined #RubyOnRails
[01:52:20] DTZUZO: has joined #RubyOnRails
[02:01:51] prettybTech: has joined #RubyOnRails
[02:17:15] alfiemax: has joined #RubyOnRails
[02:47:58] duderonomy: has joined #RubyOnRails
[03:10:20] braincrash: has joined #RubyOnRails
[03:25:45] Technodrome: has joined #RubyOnRails
[03:33:06] za1b1tsu: has joined #RubyOnRails
[03:38:05] Tempesta: has joined #RubyOnRails
[03:39:36] apeiros: has joined #RubyOnRails
[03:42:20] DTZUZO: has joined #RubyOnRails
[03:45:02] woohoou: has joined #RubyOnRails
[03:56:14] lunarkitty7: has joined #RubyOnRails
[04:07:32] lexileo: has joined #RubyOnRails
[04:29:53] Saukk: has joined #RubyOnRails
[05:18:18] hfp_work: has joined #RubyOnRails
[05:45:28] apeiros: has joined #RubyOnRails
[05:48:00] conta: has joined #RubyOnRails
[06:05:38] wethu: has joined #RubyOnRails
[06:07:50] srinidhi: has joined #RubyOnRails
[06:10:14] Dbugger: has joined #RubyOnRails
[06:51:39] ur5us: has joined #RubyOnRails
[07:01:17] reber: has joined #RubyOnRails
[07:05:09] segy: has joined #RubyOnRails
[07:05:39] ssariyar: has joined #RubyOnRails
[07:10:42] ssariyar: has joined #RubyOnRails
[07:23:13] ssariyar: has joined #RubyOnRails
[07:26:12] ssariyar: has joined #RubyOnRails
[07:29:06] quarters: has joined #RubyOnRails
[07:44:58] jottr_: has joined #RubyOnRails
[07:53:53] ariejan: has joined #RubyOnRails
[07:54:21] ssariyar: has joined #RubyOnRails
[08:01:40] quazimodo: has joined #RubyOnRails
[08:02:47] mikecmpbll: has joined #RubyOnRails
[08:11:24] chridal: What would be some of the differences in HTML/CSS of Production vs Development?
[08:11:40] chridal: I have this weird bug that only comes out in production with my HTML/CSS. Using Bootstrap-gem.
[08:12:03] sevenseacat: CSS would be minified in production
[08:12:05] sevenseacat: what kind of bug?
[08:13:05] chridal: It's a weird one. When I click buttons, they expand in a different way and causes overflow-x and y to be activated, showing scrollbars.
[08:13:16] chridal: Locally, this does not happen, and everything looks fine.
[08:14:25] chridal: So it's really annoying, because I have to deploy the entire application every time I want to test it
[08:16:39] ariejan: chridal: copy all asset/css settings from environments/production.rb to development and see if that makes the issue reproducable.
[08:16:45] chridal: But my CSS actually isn't minified either, it seems. Which is something that I shoud enable.
[08:18:22] ariejan: chridal: another thing to try: download your css from dev and prod and diff them.
[08:19:16] chridal: Yes, I'll try that.
[08:20:22] chridal: ariejan: When adding:
[08:20:24] chridal: config.assets.compile = false
[08:20:26] chridal: config.assets.js_compressor = Uglifier.new(harmony: true)
[08:20:36] chridal: To my development.rb, I get an error about assets not being in the asset pipeline.
[08:21:02] chridal: I'm not familiar enough with how everything works with the pipeline in order to get it to work in development.
[08:21:08] chridal: Do you know how to fix that?
[08:26:48] duderonomy: has joined #RubyOnRails
[08:29:06] chridal: No diff between the files in dev/prod either
[08:42:02] ariejan: chridal: you may have a `stylesheet_link_tag` in your layout/views to a file that's not setup for the asset pipeline. This matches your issue, as it will probably load fine on development, but missing on prod.
[08:43:17] sevenseacat: I think newer versions of Rails will flag that
[08:45:50] ariejan: Check config/initialisers/assets.rb for info on how to add them.
[08:46:01] ariejan: sevenseacat: I ran into the same issue with a new app a week ago ;-)
[09:07:42] chridal: ariejan: ariejan Nothing missing from assets.rb
[09:10:15] chridal: but regarding what sevenseacat, my app did tell me when assets weren't being loaded properly
[09:10:42] chridal: That it didn't find the fines in the asset pipeline
[09:10:46] chridal: But that might not be what you meant
[09:35:42] quazimodo: has joined #RubyOnRails
[09:37:33] ariejan: chridal: if you open your browser's inspector, does it load all necessary assets?
[09:48:46] apeiros: has joined #RubyOnRails
[09:51:23] apeiros: has joined #RubyOnRails
[10:00:02] vedu_: has joined #RubyOnRails
[10:17:12] Sylario: has joined #RubyOnRails
[10:41:42] schneider: has joined #RubyOnRails
[10:46:49] lexileo: has joined #RubyOnRails
[10:50:58] GodFather: has joined #RubyOnRails
[11:03:53] mikecmpb_: has joined #RubyOnRails
[11:18:20] chridal: ariejan: Yes, and everything else that's defined in the CSS works just fine. It's just these buttons.
[11:18:38] chridal: That are different. And it is rightly being caused by them moving, which is causing the X and Y scroll to be shown.
[11:18:45] chridal: The weird part is just that it shows in prod and not in dev.
[11:22:02] apparition47: has joined #RubyOnRails
[11:26:07] ariejan: chridal: is the content on the page/button the same? Maybe there's some rendering quirk caused by that.
[11:29:52] alfiemax: has joined #RubyOnRails
[11:44:05] schneider: has joined #RubyOnRails
[11:47:11] Puffball: has joined #RubyOnRails
[11:47:21] chridal: ariejan: Yes, all the contents are the same
[12:00:18] jottr: has joined #RubyOnRails
[12:06:50] Technodrome: has joined #RubyOnRails
[12:13:46] conta: has joined #RubyOnRails
[12:18:16] IanMalcolm: has joined #RubyOnRails
[12:23:31] work_: has joined #RubyOnRails
[12:24:49] Ergo: has joined #RubyOnRails
[12:26:22] ur5us: has joined #RubyOnRails
[12:38:23] psychoslave: has joined #RubyOnRails
[12:50:16] conta: has joined #RubyOnRails
[12:59:41] alfiemax_: has joined #RubyOnRails
[13:17:21] alfiemax: has joined #RubyOnRails
[13:37:25] dviola: has joined #RubyOnRails
[13:43:31] uksio: has joined #RubyOnRails
[13:45:08] Technodrome: has joined #RubyOnRails
[13:50:54] Xiti`: has joined #RubyOnRails
[13:58:45] Xiti: has joined #RubyOnRails
[14:27:36] krawchyk: has joined #RubyOnRails
[14:35:58] nzst: has joined #RubyOnRails
[14:37:15] IanMalcolm: has joined #RubyOnRails
[14:58:13] tdy: has joined #RubyOnRails
[15:09:39] Thomas-0725: has joined #RubyOnRails
[15:11:35] keegnotrub: has joined #RubyOnRails
[15:15:29] skryking: has joined #RubyOnRails
[15:16:40] skryking: would it be considered bad form to add a validation into ApplicationRecord that verifies that there is no profanity in all attributes before saving the model?
[15:27:30] TheMoonMaster: has joined #RubyOnRails
[15:30:52] AzaToth: has joined #RubyOnRails
[15:30:52] ghormoon: has joined #RubyOnRails
[15:41:12] srinidhi: has joined #RubyOnRails
[15:48:27] orbyt_: has joined #RubyOnRails
[15:54:36] cagomez: has joined #RubyOnRails
[16:00:20] woohoou: has joined #RubyOnRails
[16:05:59] GodFather: has joined #RubyOnRails
[16:15:14] lxsameer: has joined #RubyOnRails
[16:21:30] SuperTux88: has joined #RubyOnRails
[16:24:17] keegnotrub: has joined #RubyOnRails
[16:27:07] darkhanb: has joined #RubyOnRails
[16:43:46] orbyt_: has joined #RubyOnRails
[16:49:25] scrptktty: has joined #RubyOnRails
[16:58:29] apeiros_: has joined #RubyOnRails
[17:01:06] GodFather: has joined #RubyOnRails
[17:02:40] ghormoon: has joined #RubyOnRails
[17:05:23] johndunn: has joined #RubyOnRails
[17:06:34] prettybTech: has joined #RubyOnRails
[17:18:26] eckhardt_: has joined #RubyOnRails
[17:24:06] lxsameer: has joined #RubyOnRails
[17:27:21] orbyt_: has joined #RubyOnRails
[17:32:53] krawchyk: has joined #RubyOnRails
[17:34:29] lxsameer: has joined #RubyOnRails
[17:39:03] fryguy: has joined #RubyOnRails
[17:39:48] sameerynho: has joined #RubyOnRails
[17:40:15] desnudopenguino: skryking: why directly in ApplicationRecord?
[17:52:48] ssariyar: has joined #RubyOnRails
[17:54:22] lxsameer: has joined #RubyOnRails
[17:55:35] prettybTech: has joined #RubyOnRails
[17:59:38] Ergo: has joined #RubyOnRails
[18:03:37] IanMalcolm: has joined #RubyOnRails
[18:04:24] lxsameer: has joined #RubyOnRails
[18:05:47] chouhoulis: has joined #RubyOnRails
[18:11:16] chouhoulis: has joined #RubyOnRails
[18:12:22] orbyt_: has joined #RubyOnRails
[18:16:42] chouhoulis: has joined #RubyOnRails
[18:24:32] lxsameer: has joined #RubyOnRails
[18:27:51] tpendragon: has joined #RubyOnRails
[18:28:28] NoGodDamnIdea: has joined #RubyOnRails
[18:29:40] markh: has joined #RubyOnRails
[18:33:08] skryking: desnudopenguino: want to hit all attributes that have a string
[18:34:25] lxsameer: has joined #RubyOnRails
[18:36:02] jerojasro: skryking then define a subclass, no?
[18:38:45] krawchyk: has joined #RubyOnRails
[18:39:02] orbyt_: has joined #RubyOnRails
[18:44:37] lxsameer: has joined #RubyOnRails
[18:47:58] IanMalcolm: has joined #RubyOnRails
[18:54:19] lxsameer: has joined #RubyOnRails
[18:59:36] krawchyk: has joined #RubyOnRails
[19:04:18] lxsameer: has joined #RubyOnRails
[19:08:28] desnudopenguino: subclass or a module, i'd think a module might work better, "censorable" or something similar. and apply it to all models or what have you.
[19:08:57] skryking: thanks, I think I'll poke at that route.
[19:10:17] Thomas-0725: has joined #RubyOnRails
[19:11:47] planigan: has joined #RubyOnRails
[19:13:00] alfiemax: has joined #RubyOnRails
[19:17:57] Puffball: has joined #RubyOnRails
[19:23:32] planigan: has joined #RubyOnRails
[19:30:00] vedu_: has joined #RubyOnRails
[19:31:30] theRoUS: has left #RubyOnRails: ("Off to another part of the maze of twisty little passages")
[19:38:22] lexileo: has joined #RubyOnRails
[19:41:19] unCork: has joined #RubyOnRails
[19:47:45] prettybTech: has joined #RubyOnRails
[19:48:13] johndunn: has left #RubyOnRails: ()
[19:58:15] za1b1tsu: has joined #RubyOnRails
[20:09:30] lxsameer: has joined #RubyOnRails
[20:19:34] lxsameer: has joined #RubyOnRails
[20:29:19] lxsameer: has joined #RubyOnRails
[20:31:30] ssolomon: has joined #RubyOnRails
[20:39:29] lxsameer: has joined #RubyOnRails
[20:43:09] ssolomon: has joined #RubyOnRails
[20:47:21] jcarl43: has joined #RubyOnRails
[20:48:48] woohoou: has joined #RubyOnRails
[20:49:28] lxsameer: has joined #RubyOnRails
[20:49:38] orbyt_: has joined #RubyOnRails
[20:50:45] alfiemax: has joined #RubyOnRails
[20:59:36] lxsameer: has joined #RubyOnRails
[21:05:03] reber: anyone using atom here ?
[21:06:50] Dbugger: reber, i tried it
[21:07:12] reber: how to have div.container converted into <div class="container"></div> in atom ?
[21:07:55] Dbugger: I dont think that question belongs in this channel
[21:09:20] lxsameer: has joined #RubyOnRails
[21:09:52] reber: i know. that's why i asked before.
[21:10:22] reber: has left #RubyOnRails: ("Leaving")
[21:18:46] eliathah: has joined #RubyOnRails
[21:19:24] lxsameer: has joined #RubyOnRails
[21:19:56] dviola: has joined #RubyOnRails
[21:21:19] eliathah: has left #RubyOnRails: ()
[21:26:42] eliazar: has joined #RubyOnRails
[21:29:54] eliazar: anyone around to help me debug this issue with action cable? here's the stackoverflow question https://stackoverflow.com/questions/51451014/rails-actioncable-perform-method-not-working
[21:33:51] eliazar: has left #RubyOnRails: ()
[21:39:21] lxsameer: has joined #RubyOnRails
[21:44:36] prettybTech: has joined #RubyOnRails
[21:49:32] lxsameer: has joined #RubyOnRails
[21:50:02] keegnotrub: has left #RubyOnRails: ("ERC (IRC client for Emacs 26.1)")
[21:55:33] Ergo: has joined #RubyOnRails
[21:57:25] Axsuul: has joined #RubyOnRails
[21:58:32] Caerus: has joined #RubyOnRails
[21:59:37] lxsameer: has joined #RubyOnRails
[22:09:28] lxsameer: has joined #RubyOnRails
[22:16:23] hightower4: has joined #RubyOnRails
[22:17:09] hightower4: Hey what's the latest ruby that works with rails 5.2.0?
[22:20:24] Dbugger: hightower4, https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#ruby-versions
[22:25:26] orbyt_: has joined #RubyOnRails
[22:35:25] jasmith: has joined #RubyOnRails
[22:38:11] dviola: has joined #RubyOnRails
[22:43:05] dnewkerk: has joined #RubyOnRails
[22:48:48] prettybTech: has joined #RubyOnRails
[23:02:03] Inside: has joined #RubyOnRails
[23:02:03] IanMalcolm: has joined #RubyOnRails
[23:02:45] Inside: This is awesome :"(
[23:02:54] Inside: I've got an after_create callback that works sometimes
[23:07:17] Inside: The only thing I can think of is that model.created_at < model.created_at doesn't do what I think it's supposed to
[23:07:20] Inside: https://gist.github.com/Insood/c7e8dcb73c62f7192032f913e8f6a082
[23:08:12] Inside: Although I should probably switch to a published/subscriber model...
[23:10:25] IanMalcolm: has joined #RubyOnRails
[23:12:16] lexileo: has joined #RubyOnRails
[23:25:09] agent_white: has joined #RubyOnRails
[23:27:00] Inside: mind freaking blowing
[23:27:14] Inside: self.created_at (sometimes < ) self.created_at
[23:31:01] Inside: ah.. I think I see the problem.
[23:31:17] Inside: I'm comparing the created_at in the local model vs. the same record stored in the database
[23:33:47] Inside: https://gist.github.com/Insood/e1d510e0d8c881c24445ee5873dfa721
[23:33:56] Inside: that's hair-tearingly awesome :<
[23:36:37] Technodrome: has joined #RubyOnRails
[23:54:57] Technodrome: has joined #RubyOnRails