« Back to channel list

#RubyOnRails - 20 February 2019

« Back 1 day Forward 1 day »
[00:06:06] Puffball: has joined #RubyOnRails
[00:06:20] ivanskie: has joined #RubyOnRails
[00:11:42] orbyt_: has joined #RubyOnRails
[00:19:40] dviola: has joined #RubyOnRails
[00:36:18] gambl0r3: has joined #RubyOnRails
[00:50:16] skryking: has joined #RubyOnRails
[01:03:13] mikecmpbll: has joined #RubyOnRails
[01:12:19] orbyt_: has joined #RubyOnRails
[01:25:52] dviola: has joined #RubyOnRails
[01:28:05] sevenseacat: has joined #RubyOnRails
[01:48:47] orbyt_: has joined #RubyOnRails
[02:40:16] ariedler: has joined #RubyOnRails
[02:45:09] bruul: has joined #RubyOnRails
[02:50:40] gambl0r3: has joined #RubyOnRails
[02:56:11] cagomez: has joined #RubyOnRails
[03:16:32] orbyt_: has joined #RubyOnRails
[03:26:16] ivanskie: has joined #RubyOnRails
[03:44:40] akosednar: has joined #RubyOnRails
[03:50:47] gambl0r3: has joined #RubyOnRails
[03:50:57] akosednar: has joined #RubyOnRails
[03:54:35] blackmesa: has joined #RubyOnRails
[03:57:59] tdy1: has joined #RubyOnRails
[04:03:53] blackmesa: has joined #RubyOnRails
[04:09:03] braincrash: has joined #RubyOnRails
[04:18:56] blackmesa: has joined #RubyOnRails
[04:56:14] srinidhi: has joined #RubyOnRails
[05:06:27] barhum2013: has joined #RubyOnRails
[05:16:38] mikecmpb_: has joined #RubyOnRails
[05:18:38] eean: has joined #RubyOnRails
[05:26:01] hahuang65: has joined #RubyOnRails
[05:38:47] srinidhi: has joined #RubyOnRails
[05:39:29] lunarkitty: has joined #RubyOnRails
[05:41:21] v01d4lph4: has joined #RubyOnRails
[05:50:43] uks: has joined #RubyOnRails
[05:52:30] Puffball: has joined #RubyOnRails
[06:06:40] Technodrome: has joined #RubyOnRails
[06:10:30] mikecmpbll: has joined #RubyOnRails
[06:17:06] conta: has joined #RubyOnRails
[06:43:47] srinidhi: has joined #RubyOnRails
[06:52:04] lunarkitty: has joined #RubyOnRails
[06:58:39] SteenJobs: has joined #RubyOnRails
[07:11:57] ariedler: has joined #RubyOnRails
[08:24:35] drale2k_: has joined #RubyOnRails
[08:26:12] davidh38: has joined #RubyOnRails
[09:00:15] mikecmpbll: has joined #RubyOnRails
[09:03:11] kapil____: has joined #RubyOnRails
[09:09:02] prestorium: has joined #RubyOnRails
[09:09:58] hammer065: has joined #RubyOnRails
[09:11:06] drale2k_: has joined #RubyOnRails
[09:12:56] ariedler: has joined #RubyOnRails
[09:22:08] blackmesa: has joined #RubyOnRails
[09:28:52] lxsameer: has joined #RubyOnRails
[09:33:09] hellekin: has joined #RubyOnRails
[09:40:55] davidh38: has joined #RubyOnRails
[09:54:59] gregf_: has joined #RubyOnRails
[10:05:19] apparition: has joined #RubyOnRails
[10:08:11] mikecmpbll: has joined #RubyOnRails
[10:28:38] blackmesa1: has joined #RubyOnRails
[10:40:43] gregf_: has joined #RubyOnRails
[10:44:53] squonchie: has joined #RubyOnRails
[10:58:37] prestorium: has joined #RubyOnRails
[11:02:34] conta: has joined #RubyOnRails
[11:08:46] gregf_: has joined #RubyOnRails
[11:13:35] ariedler: has joined #RubyOnRails
[11:15:03] old_relik: has joined #RubyOnRails
[11:15:25] old_relik: i have a model method that calls another method that makes a db query multiple times
[11:15:31] old_relik: in the same function
[11:15:37] old_relik: and then it ends up making multiple queries
[11:16:46] old_relik: other than saving it on top of the method call
[11:17:09] old_relik: is there a cleaner way to do this, such that I can simply call the method and it will only make the query once
[11:22:50] davidh38: has joined #RubyOnRails
[11:41:33] jonno112: has joined #RubyOnRails
[11:47:46] lankanmon: has joined #RubyOnRails
[11:48:38] v01d4lph4: has joined #RubyOnRails
[11:50:02] prestorium: has joined #RubyOnRails
[11:55:08] ariedler: has joined #RubyOnRails
[11:58:02] davidh38: has joined #RubyOnRails
[12:21:57] jonno112: has joined #RubyOnRails
[12:28:38] DTZUZO: has joined #RubyOnRails
[12:29:58] Spaceman77: has joined #RubyOnRails
[12:30:03] jonno112: has joined #RubyOnRails
[12:30:42] Spaceman77: Why does running 'bin/rake db:create' also tries to compile the assets??
[12:36:13] supergeek[m]: has joined #RubyOnRails
[12:53:28] squonchie: has joined #RubyOnRails
[12:59:24] hadifarnoud: has joined #RubyOnRails
[13:13:41] srinidhi: has joined #RubyOnRails
[13:29:10] squonchie: has joined #RubyOnRails
[13:29:17] drale2k_: has joined #RubyOnRails
[13:48:58] MrCrackPotBuilde: has joined #RubyOnRails
[14:16:28] ariedler: has joined #RubyOnRails
[14:24:35] orbyt_: has joined #RubyOnRails
[14:32:14] andywww: has joined #RubyOnRails
[14:32:54] andywww: I want to return a string value for a particular method call depending on the class that implements it: https://hastebin.com/imohiqomah.rb
[14:33:04] andywww: but having just a method that returns a string feels wrong
[14:33:09] andywww: is there a better way to do this
[14:33:45] andywww: or a more ruby way of doing it should I say
[14:35:27] dviola: has joined #RubyOnRails
[14:52:53] jobewan: has joined #RubyOnRails
[14:56:56] kapil____: has joined #RubyOnRails
[14:57:12] srinidhi: has joined #RubyOnRails
[15:00:06] prestorium: has joined #RubyOnRails
[15:01:31] mikecmpb_: has joined #RubyOnRails
[15:11:35] KeyJoo: has joined #RubyOnRails
[15:19:50] mangold: has joined #RubyOnRails
[15:22:35] Inside: has joined #RubyOnRails
[15:24:21] uks: has joined #RubyOnRails
[15:26:34] pavelz: anyone had trouble connecting to mysql database?
[15:27:22] pavelz: I installed the server and I can log in with username and password via 'mysql' but rails can't seem to connect
[15:33:57] v01d4lph4: has joined #RubyOnRails
[15:34:05] prestorium: has joined #RubyOnRails
[15:40:57] dopie: has joined #RubyOnRails
[15:41:15] dopie: I need help here https://gist.github.com/staycreativedesign/6e8a1424f46e15c62840c1158f1ae393 how can I make this work in production ?
[15:41:35] andywww: has joined #RubyOnRails
[15:45:07] blackmesa1: has joined #RubyOnRails
[15:47:17] prestorium: has joined #RubyOnRails
[15:56:15] conta: has joined #RubyOnRails
[16:00:32] quazimodo: has joined #RubyOnRails
[16:02:26] Dbugger: has joined #RubyOnRails
[16:04:44] drale2k_: has joined #RubyOnRails
[16:12:25] agent_white: has joined #RubyOnRails
[16:39:23] plainprogrammer: has joined #RubyOnRails
[16:42:30] jgomo3: has joined #RubyOnRails
[16:44:05] beholders_eye: has joined #RubyOnRails
[16:44:12] skryking_: has joined #RubyOnRails
[16:45:28] jgomo3: Hello. Is it a good idea to use ActiveSupport Instrumentation API for using the Publish-Subscriber pattern in my application? My main concern is that it was designed for "Instrumentation" in mind.
[17:05:23] blackmesa: has joined #RubyOnRails
[17:18:19] sagax: has joined #RubyOnRails
[17:20:11] phaul: has joined #RubyOnRails
[17:20:15] tdy1: has joined #RubyOnRails
[17:30:22] conta: has joined #RubyOnRails
[17:38:34] [Butch]: has joined #RubyOnRails
[17:41:33] orbyt_: has joined #RubyOnRails
[17:46:55] squonchie: has joined #RubyOnRails
[17:49:54] SteenJobs: has joined #RubyOnRails
[17:51:27] orbyt_: has joined #RubyOnRails
[17:53:46] conta: has joined #RubyOnRails
[17:57:34] mikecmpbll: has joined #RubyOnRails
[18:05:23] sameerynho: has joined #RubyOnRails
[18:23:11] DoctorMonocular: has joined #RubyOnRails
[18:26:32] DoctorMonocular: hey I am faking an upsert with mysql using Model.find_or_initialize_by().update().save! -- I have a collection of things that needs to be upserted, in addition to a few other things I want to happen with other models, all in the same transaction
[18:26:38] DoctorMonocular: so I have it all wrapped in a transaction
[18:26:52] DoctorMonocular: but I also want to lock the upserts
[18:27:35] DoctorMonocular: and I'm not really sure how I should be doing that. I guess I should do something like Model.find_or_initialize_by().lock!... ?
[18:29:07] DoctorMonocular: I guess I'm nervous about a race condition if that same transaction is happening on a different thread and it tries to upsert at the same time
[18:29:14] DoctorMonocular: I'm having trouble reasoning about it though
[18:29:57] dionysus70: has joined #RubyOnRails
[18:31:35] v01d4lph4: has joined #RubyOnRails
[18:32:03] conta: has joined #RubyOnRails
[18:47:14] dionysus70: my biggest question about testing always was, "what to test?" obviously there are best practices, can you share some resources that will guide me on the right path :) ?
[18:48:24] gheegh: has joined #RubyOnRails
[18:57:00] gheegh: Anyone work with active_admin? I've got a problem with a custom form. It's not rendering well, and fields are not showing. Rails 5.2 latest everything. https://gist.github.com/wflanagan/5f73eab4dfdd93aadf74d98fa4c62ba5
[18:57:16] gheegh: I've love some advice.. been working on a single form 3 hours.. Ugh. :-)
[19:01:40] quazimodo: has joined #RubyOnRails
[19:09:26] Net: in the latest rails ActiveJob workers will use the time zone when the job was queued, right?
[19:14:58] conta: has joined #RubyOnRails
[19:17:45] gambl0r3: has joined #RubyOnRails
[19:21:53] brieweb: has joined #RubyOnRails
[19:22:22] brieweb: it seems that the sqlite gem can't install because autoconf is looking for dlopen
[19:22:33] brieweb: I am trying to use ruby on rails on Windows 7
[19:22:46] brieweb: I installed Ruby with the devkit
[19:24:09] brieweb: so, the question is, how do you install the sqlite gem on Windows?
[19:26:06] brieweb: I checked the mkmf.log and it has an error on the build
[19:26:25] brieweb: seems like there is a lot of old info on the internet
[19:31:48] brieweb: off to lunch, but I will check back in a bit
[19:33:00] conta: has joined #RubyOnRails
[19:45:04] conta: has joined #RubyOnRails
[19:58:04] havenwood: brieweb: You might consider trying WSL.
[19:58:25] sagax: what plugin can minify html ?
[19:59:11] sagax: like as `html source` -> `plugin` -> `html minified`
[20:00:24] tdy1: has joined #RubyOnRails
[20:01:54] havenwood: sagax: You're not using asset pipeline / webpacker HTML minification? Or you need this for something other than the Rails respose?
[20:02:24] sagax: i need just plugin who can read source and send output
[20:04:05] orbyt_: has joined #RubyOnRails
[20:05:02] havenwood: sagax: JS lib: https://github.com/kangax/html-minifier
[20:05:11] havenwood: sagax: Ruby wrapper: https://github.com/stereobooster/html_minifier
[20:16:20] gambl0r3: has joined #RubyOnRails
[20:20:34] gheegh: has joined #RubyOnRails
[20:29:01] mikecmpb_: has joined #RubyOnRails
[20:37:59] mikecmpbll: has joined #RubyOnRails
[20:44:12] blackmesa1: has joined #RubyOnRails
[20:47:57] mikecmpb_: has joined #RubyOnRails
[20:47:57] lunarkitty: has joined #RubyOnRails
[20:49:04] NoGodDamnIdea: has joined #RubyOnRails
[20:56:46] dviola: has joined #RubyOnRails
[21:08:10] bruul: has joined #RubyOnRails
[21:11:39] ravenousmoose: has joined #RubyOnRails
[21:11:53] Technodrome: has joined #RubyOnRails
[21:13:24] orbyt_: has joined #RubyOnRails
[21:21:16] Radar: GOOD MORNING
[21:26:01] davidh38: has joined #RubyOnRails
[21:34:39] blackmesa: has joined #RubyOnRails
[21:34:52] tdy1: has joined #RubyOnRails
[21:36:51] brieweb: havenwood: what is WSL? I'll search Google to see...
[21:37:23] brieweb: oh, I am on Windows 7
[21:37:37] brieweb: Windows Subsystem for Linux..
[21:38:27] Net: looks like that was rails 6, not latest
[22:05:55] Linuus: has joined #RubyOnRails
[22:06:05] Inside: Radar: morning
[22:07:07] Inside: So.... this is a pretty complicated problem, but I've create a User & UserIdentity model and am using devise with two strategies to peform authentication: LDapAuthenticatable and also my own home-rolled BadgeAuthenticatable. I can enable one strategy to work at a time, but not both =_=
[22:07:49] Inside: Basically - If I have badge authentication enabled, i can use a PIN code to login, but then I can't use the LDAP Authentication since it either won't stay logged in or won't allow logging out
[22:14:26] brieweb: I guess there is a dlopen hack for MinGW?
[22:29:40] SteenJobs: has joined #RubyOnRails
[22:39:31] dviola: has joined #RubyOnRails
[22:39:46] baweaver: https://twitter.com/keystonelemur/status/1098351041576263680
[23:01:18] blackmesa: has joined #RubyOnRails
[23:07:45] davidh38: has joined #RubyOnRails
[23:24:24] hd1: has joined #RubyOnRails
[23:47:55] orbyt_: has joined #RubyOnRails
[23:55:55] mangold: has joined #RubyOnRails