« Back to channel list

#RubyOnRails - 19 December 2018

« Back 1 day Forward 1 day »
[00:12:03] MasterAsia: has joined #RubyOnRails
[00:12:29] Inside: https://gist.github.com/Insood/d0a9df88f8ce2e0e1eee1fe8e70f2c46
[00:12:40] Inside: any ideas why I'm getting these errors?
[00:12:46] Inside: With the gemfiles?
[00:30:49] cpruitt: has joined #RubyOnRails
[00:31:40] jottr: has joined #RubyOnRails
[00:50:09] cnsvc_: has joined #RubyOnRails
[00:54:51] gambl0r3: has joined #RubyOnRails
[01:03:40] jottr: has joined #RubyOnRails
[01:05:14] LambdaSource: has joined #RubyOnRails
[01:40:39] sevenseacat: has joined #RubyOnRails
[01:49:14] Exuma: has joined #RubyOnRails
[01:56:09] cnsvc_: has joined #RubyOnRails
[01:57:59] gambl0r3: has joined #RubyOnRails
[02:01:42] gambl0r3: has joined #RubyOnRails
[02:08:11] Xiti: has joined #RubyOnRails
[02:17:19] Exuma: has joined #RubyOnRails
[02:17:42] darkhanb: has joined #RubyOnRails
[02:22:20] orbyt_: has joined #RubyOnRails
[02:48:41] Exuma: has joined #RubyOnRails
[02:54:56] carbone5: has joined #RubyOnRails
[02:58:28] pwnd_nsfw: has joined #RubyOnRails
[02:59:42] gambl0r3: has joined #RubyOnRails
[03:01:13] orbyt_: has joined #RubyOnRails
[03:23:34] darkhanb: has joined #RubyOnRails
[03:42:00] cschneid: has joined #RubyOnRails
[03:45:21] gambl0r3: has joined #RubyOnRails
[04:06:50] cnsvc_: has joined #RubyOnRails
[04:10:04] braincrash: has joined #RubyOnRails
[04:16:31] roshanavand1: has joined #RubyOnRails
[04:22:09] MasterAsia: has joined #RubyOnRails
[04:27:47] kapil____: has joined #RubyOnRails
[05:11:02] conta: has joined #RubyOnRails
[05:11:59] cnsvc_: has joined #RubyOnRails
[05:12:29] cschneid: has joined #RubyOnRails
[05:13:59] za1b1tsu: has joined #RubyOnRails
[05:22:32] uksio: has joined #RubyOnRails
[05:29:12] conta: has joined #RubyOnRails
[05:33:37] cnsvc_: has joined #RubyOnRails
[06:03:12] paranoicsan: has joined #RubyOnRails
[06:39:59] endemic: has joined #RubyOnRails
[06:41:36] Guest31: has joined #RubyOnRails
[06:43:55] cschneid: has joined #RubyOnRails
[06:53:02] reber: has joined #RubyOnRails
[06:57:57] cnsvc_: has joined #RubyOnRails
[07:29:36] hammer065: has joined #RubyOnRails
[07:31:21] paranoicsan: has joined #RubyOnRails
[07:46:54] TvL2386: hey guys, last days I've been searching for a solution to my problem. My rails app connects to an external mysql database to which I have read access. The datetime attributes are written in the local timezone. This messes up rails' assumption that they'd be in UTC.
[07:47:07] TvL2386: This causes the dates to be incorrect in my rails app.
[07:54:35] Ergo: has joined #RubyOnRails
[08:07:43] Eaven: has joined #RubyOnRails
[08:08:54] Eaven: Hello any regex ninjas on? im creepin up to that 17hr shift with no end in sight and this dumb expression is throwing me for a loop. tomorrow ill probably see the issue instantly but i want to solve tonight. the problem is its grabbing one big match instead of both individual matches http://rubular.com/r/olXapucmfb
[08:10:09] sevenseacat: you want your regex to be ungreedy
[08:11:43] sevenseacat: I never remember the option for it
[08:12:33] Eaven: ayyyee @sevenseacat that did it
[08:12:38] Eaven: (\[\[field.text.*?\]\])
[08:12:50] Eaven: http://rubular.com/r/tAWTHVFjrr
[08:13:02] Eaven: wahoooooo onward and upward
[08:13:04] ellcs: has joined #RubyOnRails
[08:13:13] sevenseacat: godspeed pilgrim!
[08:13:57] TvL2386: I didn't know that, that's awesome :)
[08:22:33] kapil____: has joined #RubyOnRails
[08:27:57] Eaven: @sevenseacat again man... ty soooo much :)
[08:28:00] Eaven: just whipped it out :)
[08:28:40] Eaven: [[field.list relationship (spouse|Parent)]]</p><p>[[field.list gender (male|female)]] into this <select id='relationship' name='relationship'><option value='spouse'>spouse</option><option value='Parent'>Parent</option></select></p><p><select id='gender' name='gender'><option value='male'>male</option><option value='female'>female</option></select>
[08:29:08] Eaven: hear my Ro'a'R ;)
[08:29:14] Eaven: anyway thanks. back to it. appreciate it
[09:23:43] lxsameer: has joined #RubyOnRails
[09:28:59] cnsvc_: has joined #RubyOnRails
[09:46:17] tjbp: has joined #RubyOnRails
[09:47:59] paranoicsan: has joined #RubyOnRails
[09:49:09] ams__: has joined #RubyOnRails
[10:06:01] beholders_eye: has joined #RubyOnRails
[10:13:19] cnsvc_: has joined #RubyOnRails
[10:32:40] cnsvc_: has joined #RubyOnRails
[10:50:24] kidPalooma_: has joined #RubyOnRails
[10:53:01] kidPalooma_: Hello, I came across the need for a class that I can include, as I would a module, but with before/after callbacks before every function. This class would be mainly (but not always) included in controllers. I started writing a module but I'm not happy with hw I would implement this, it doesn't seem clean.
[10:53:42] srinidhi: has joined #RubyOnRails
[10:54:32] kidPalooma_: I have 2 questions: 1. is there anything in ruby/rails that matches this pattern that I can use? 2. where should such a class go and how it could be implemented?
[10:55:22] kidPalooma_: *with before/after callbacks before every function ( every function of the module, not of the class where the module is included )
[10:57:28] tbuehlmann: can you describe what you're actually after? what's the usecase?
[11:02:35] jottr: has joined #RubyOnRails
[11:06:05] paranoicsan: has joined #RubyOnRails
[11:17:56] lexileo: has joined #RubyOnRails
[11:24:26] kidPalooma_: tbuehlmann: I have progressed a bit since I asked the last question. I am trying to make a class that I can include that exposes a number of methods that depend on functions on my app's models. The goal that I am after is to execute a check before every single one of these functions that I am exposing (without rewriting it...). What I am doing now is a class within a module that proxies methods to the module
[11:54:47] jottr: has joined #RubyOnRails
[11:55:30] ariedler: has joined #RubyOnRails
[11:56:26] conta1: has joined #RubyOnRails
[11:57:11] ariedler: has joined #RubyOnRails
[12:07:55] ellcs: has joined #RubyOnRails
[12:33:18] cnsvc_: has joined #RubyOnRails
[12:40:33] KeyJoo: has joined #RubyOnRails
[12:43:33] cpruitt: has joined #RubyOnRails
[13:19:19] mostlybadfly: has joined #RubyOnRails
[13:40:46] ariedler: has joined #RubyOnRails
[13:51:55] GodFather: has joined #RubyOnRails
[13:52:31] sphalerite: has joined #RubyOnRails
[14:03:16] jottr: has joined #RubyOnRails
[14:07:36] DTZUZO: has joined #RubyOnRails
[14:08:24] krawchyk: has joined #RubyOnRails
[14:09:01] alan_w: has joined #RubyOnRails
[14:14:10] MasterAsia: has joined #RubyOnRails
[14:34:14] dslegends: has joined #RubyOnRails
[14:36:19] paranoicsan: has joined #RubyOnRails
[14:38:23] conta: has joined #RubyOnRails
[15:02:43] ellcs: has joined #RubyOnRails
[15:03:29] cnsvc_: has joined #RubyOnRails
[15:15:14] mikecmpbll: has joined #RubyOnRails
[15:31:46] paranoicsan: has joined #RubyOnRails
[15:32:36] ellcs: has joined #RubyOnRails
[15:44:54] cschneid: has joined #RubyOnRails
[15:46:41] Inside: has joined #RubyOnRails
[15:58:33] exchgr`: has joined #RubyOnRails
[16:00:40] reber: has joined #RubyOnRails
[16:25:26] devpolish: has joined #RubyOnRails
[16:26:45] maryo: has joined #RubyOnRails
[16:36:26] SteenJobs: has joined #RubyOnRails
[16:58:41] Arkantos: has joined #RubyOnRails
[17:22:52] Arkantos: has joined #RubyOnRails
[17:25:17] Saukk: has joined #RubyOnRails
[17:33:43] cnsvc_: has joined #RubyOnRails
[17:36:25] Inside: let's test it in production
[17:36:27] Inside: awiieee yeaaah
[17:42:03] gambl0r3: has joined #RubyOnRails
[17:46:24] mikecmpbll: has joined #RubyOnRails
[18:04:58] kidPalooma: has joined #RubyOnRails
[18:08:29] kidPalooma: Hello, how do I call a parent module's method from a nested class? example here: https://dpaste.de/svSi
[18:13:43] kidPalooma: I also need the method 'my_method' to stay as is (not like the solution proposed here: https://www.ruby-forum.com/t/calling-ruby-module-methods-from-a-nested-class-within/204596)
[18:35:31] mostlybadfly: has joined #RubyOnRails
[18:36:49] LambdaSource: has joined #RubyOnRails
[18:38:30] kidPalooma: alternatively, can I access session variables in a simple ruby class? (not a module)
[18:38:48] lxsameer: has joined #RubyOnRails
[18:52:39] jarlopez: has joined #RubyOnRails
[18:53:15] cpruitt: has joined #RubyOnRails
[18:56:26] SteenJobs_: has joined #RubyOnRails
[19:00:39] cnsvc_: has joined #RubyOnRails
[19:03:26] ht85: has joined #RubyOnRails
[19:25:53] dviola: has joined #RubyOnRails
[20:03:30] sameerynho: has joined #RubyOnRails
[20:30:09] SteenJobs: has joined #RubyOnRails
[20:47:11] w0rd-driven: has joined #RubyOnRails
[20:53:48] orbyt_: has joined #RubyOnRails
[21:33:44] orbyt_: has joined #RubyOnRails
[21:39:10] pwnd_nsfw: has joined #RubyOnRails
[21:42:29] za1b1tsu: has joined #RubyOnRails
[21:54:30] GodFather: has joined #RubyOnRails
[22:12:07] Exuma: has joined #RubyOnRails
[22:13:52] ellcs: has joined #RubyOnRails
[22:16:29] SteenJobs: has joined #RubyOnRails
[22:23:51] blackmesa: has joined #RubyOnRails
[22:25:14] Puffball: has joined #RubyOnRails
[22:31:44] cnsvc_: has joined #RubyOnRails
[22:35:25] orbyt_: has joined #RubyOnRails
[22:55:32] mr-spoon: has joined #RubyOnRails
[23:01:02] mr-spoon: has joined #RubyOnRails
[23:02:55] atrius: has joined #RubyOnRails
[23:06:05] EminenceHC: has joined #RubyOnRails
[23:12:12] cnsvc_: has joined #RubyOnRails
[23:18:58] Jervis_: has joined #RubyOnRails
[23:19:34] orbyt_: has joined #RubyOnRails
[23:42:25] logik-bomb: so I'm creating a new record with factory bot inside a controller spec. Somehow that record doesn't appear on my scope. If I run the test again the new one is also not there but the previous one now exists. Am I missing something? Do I need to "refresh" my model or something? Thanks
[23:51:05] za1b1tsu: has joined #RubyOnRails
[23:56:42] Arkantos: has joined #RubyOnRails
[23:58:42] Arkantos: has joined #RubyOnRails