#RubyOnRails - 23 July 2018
« Back 1 day Forward 1 day »
[08:11:40] chridal: I have this weird bug that only comes out in production with my HTML/CSS. Using Bootstrap-gem.
[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: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: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: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.
[09:10:15] chridal: but regarding what sevenseacat, my app did tell me when assets weren't being loaded properly
[09:37:33] ariejan: chridal: if you open your browser's inspector, does it load all necessary assets?
[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:26:07] ariejan: chridal: is the content on the page/button the same? Maybe there's some rendering quirk caused by that.
[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?
[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:31:30] theRoUS: has left #RubyOnRails: ("Off to another part of the maze of twisty little passages")
[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
[22:20:24] Dbugger: hightower4, https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#ruby-versions
[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:31:17] Inside: I'm comparing the created_at in the local model vs. the same record stored in the database