#RubyOnRails - 14 May 2019
« Back 1 day Forward 1 day »
[00:41:58] haxx0r: Uploaded file: https://uploads.kiwiirc.com/files/fe78fb9c68ad35c2e82afe663e01fa37/pasted.txt
[03:43:48] haxx0r76: i remember there was a gem that converts all template strings into I18n yaml. can't find it anymore. can anyone help me?
[13:28:40] FrankDW: Or.. can anyone recommend something good to read on how to use dynamically scheduled jobs?
[13:31:36] dionysus69: what do you recommend, should I make webpacker handle css and image icons too or just stick to good old asset pipeline
[13:33:11] FrankDW: I've never done job/queue based stuff like this in RoR, I'm kind of a rails plebe :D
[13:49:33] dionysus69: if you want cron-like scheduling https://github.com/ondrejbartas/sidekiq-cron
[13:49:45] dionysus69: if you schedule programmatically https://github.com/mperham/sidekiq/wiki/Scheduled-Jobs
[15:47:43] Travis-42: Is there any way to apply CSS styling to the iframe created in ActionMailer::Preview, but not apply it to the actual email? I'd like to apply some of the default styling that gmail uses so it more closely resembles what a gmail user would see, without actually applying those styles to the email.
[16:23:33] haxx0r: https://github.com/mperham/sidekiq/issues/4168 my sidekiq won't find an object that is created during runtime of a process
[17:34:11] FrankDW: hahuang65, thanks, I think I got it.. hopefully.. trying to come up with some logic for this while I'm barely awake :D
[17:37:31] FrankDW: I have a field with JSON with tags in it that I want to match by, I have some scopes defined -- was looking to Event.scope.scope.match_tags(tags) -- what would that function def look like in Rails? not possible?
[17:53:57] Zinefer: i am working inside a rails task (so there's no class) and i have defined a method that accepts a block ... everything works fine until i define a lamba or proc and pass that into the method as a block ... the proc gets called but it seems like all method calls inside that proc get a nil appended onto the end of the method arguments
[17:54:06] Zinefer: this is preventing me from calling any method that cares about how many arguments are passed to it
[22:34:53] polydo_s: I have a weird bug when I am trying to seed my app with an ActiveStorage (looks like a concurrency problem) anyone willing to have a quick look?