« Back to channel list

#RubyOnRails - 14 August 2018

« Back 1 day Forward 1 day »
[00:13:04] Hexafox[I]: has joined #RubyOnRails
[00:33:00] Dimik: has joined #RubyOnRails
[00:33:27] apeiros: has joined #RubyOnRails
[00:52:39] planigan_: has joined #RubyOnRails
[01:02:54] apeiros: has joined #RubyOnRails
[01:04:29] exchgr`: has joined #RubyOnRails
[01:04:29] dtzuzu: has joined #RubyOnRails
[01:04:29] argoneus: has joined #RubyOnRails
[01:04:29] CJKinni: has joined #RubyOnRails
[01:04:29] fot: has joined #RubyOnRails
[01:04:29] LightStalker: has joined #RubyOnRails
[01:04:29] syndikate: has joined #RubyOnRails
[01:04:29] sunya7a: has joined #RubyOnRails
[01:04:29] voker57: has joined #RubyOnRails
[01:04:29] spectra: has joined #RubyOnRails
[01:10:01] Axsuul: has joined #RubyOnRails
[01:10:46] Exagone313: has joined #RubyOnRails
[01:12:15] work_: has joined #RubyOnRails
[01:14:11] jackrandom: has joined #RubyOnRails
[01:14:21] sevenseacat: has joined #RubyOnRails
[01:19:39] Technodrome: has joined #RubyOnRails
[01:29:16] apeiros: has joined #RubyOnRails
[01:48:46] orbyt_: has joined #RubyOnRails
[01:59:22] apeiros: has joined #RubyOnRails
[02:00:43] akaiiro: has joined #RubyOnRails
[02:03:41] felltir: has joined #RubyOnRails
[02:09:42] cagomez: has joined #RubyOnRails
[02:15:01] alfiemax: has joined #RubyOnRails
[02:29:25] apeiros: has joined #RubyOnRails
[02:31:52] orbyt_: has joined #RubyOnRails
[02:32:39] Dimik: has joined #RubyOnRails
[02:37:21] Saukk: has joined #RubyOnRails
[02:42:33] wethu: has joined #RubyOnRails
[02:47:34] apeiros: has joined #RubyOnRails
[02:51:47] ephemer0l: has joined #RubyOnRails
[02:58:06] kapil___: has joined #RubyOnRails
[03:05:20] alfiemax_: has joined #RubyOnRails
[03:08:46] hahuang65: has joined #RubyOnRails
[03:09:15] braincrash: has joined #RubyOnRails
[03:19:36] wethu: has joined #RubyOnRails
[03:26:30] rootsudo: has joined #RubyOnRails
[03:35:42] Hexafox[I]: has joined #RubyOnRails
[03:36:08] akaiiro: has joined #RubyOnRails
[04:33:33] machinewar: has joined #RubyOnRails
[04:34:20] machinewar: if I have a JS library that is loading files with paths like /js/myfile.js the asset pipeline breaks all of this when precompiled. Is there a way to just skip asset pipeline precompilation and have those files served separately
[04:36:38] mjacob: Radar: a few weeks ago i asked about a rails routing problem, to which you answered that I should create an issue, which i did: https://github.com/rails/rails/issues/33219
[04:37:13] mjacob: Radar: if i remember correctly, you said that you wrote the routing documentation
[04:38:37] mjacob: Radar: AFAIK the documentation doesn't say anything about which url parameters will stay in the URL if you call url_for
[04:39:27] mjacob: Radar: do you think it would make sense to add this to the documentation? (internally in the code this is called 'recall')
[04:43:09] mjacob: Radar: (independent from my specific issue)
[04:44:57] mojtaba: has joined #RubyOnRails
[04:50:53] ragsagar: has joined #RubyOnRails
[04:54:42] srinidhi: has joined #RubyOnRails
[05:04:28] Technodrome: has joined #RubyOnRails
[05:39:50] reber: has joined #RubyOnRails
[05:41:22] apeiros: has joined #RubyOnRails
[05:50:35] alfiemax: has joined #RubyOnRails
[06:18:26] apeiros: has joined #RubyOnRails
[06:34:41] Tempesta: has joined #RubyOnRails
[06:41:42] cabotto: has joined #RubyOnRails
[06:57:49] conta: has joined #RubyOnRails
[07:04:55] nemesit: is there no way to have file_field thingies append files when multiple is true?
[07:05:17] nemesit: like let the user select multiple files and then add a few more?
[07:07:38] nemesit: like multiple images and then add one or two images to the same parameter
[07:14:04] Dbugger: has joined #RubyOnRails
[07:16:19] wethu: has joined #RubyOnRails
[07:28:02] schneider: has joined #RubyOnRails
[07:34:57] dionysus69: has joined #RubyOnRails
[07:38:04] rfoust: has joined #RubyOnRails
[07:45:17] lexileo: has joined #RubyOnRails
[07:47:33] KevinSjoberg: has joined #RubyOnRails
[07:53:22] nemesit: is this such a rare thing to do?
[07:53:26] nemesit: file uploads ???
[07:55:55] alfiemax: has joined #RubyOnRails
[07:56:35] cabotto: has joined #RubyOnRails
[07:57:36] rootsudo: has joined #RubyOnRails
[07:58:24] rootsudo: has joined #RubyOnRails
[07:59:13] rootsudo: has joined #RubyOnRails
[08:03:20] za1b1tsu: has joined #RubyOnRails
[08:03:42] mikecmpbll: has joined #RubyOnRails
[08:09:03] DoubleMalt: has joined #RubyOnRails
[08:11:51] mojtaba: has joined #RubyOnRails
[08:17:11] syndikate: Can someone help me figure how to add filter in 'administrate' gem?
[08:25:28] rootsudo: has joined #RubyOnRails
[08:28:41] lxsameer: has joined #RubyOnRails
[08:41:08] rfoust: has joined #RubyOnRails
[09:03:46] dionysus69: why do rake tasks run spring too
[09:04:12] dionysus69: I am disabling it with DISABLE_SPRING=1 rake environment task
[09:14:37] shpoont: has joined #RubyOnRails
[09:27:52] ur5us: has joined #RubyOnRails
[09:34:13] rootsudo: has joined #RubyOnRails
[09:37:47] rootsudo: has joined #RubyOnRails
[09:38:46] rootsudo: has joined #RubyOnRails
[09:39:17] rootsudo: has joined #RubyOnRails
[09:40:21] rootsudo: has joined #RubyOnRails
[09:40:51] rootsudo: has joined #RubyOnRails
[09:51:23] mojtaba: has joined #RubyOnRails
[10:00:32] jlebrech: has joined #RubyOnRails
[10:01:39] jlebrech: is there a proxy I can use for Rails env text? for this https://github.com/excon/excon#proxy-support
[10:07:29] apeiros: has joined #RubyOnRails
[10:12:44] za1b1tsu: has joined #RubyOnRails
[10:13:04] za1b1tsu: An older rails project has tests with Test::Unit
[10:13:18] za1b1tsu: how to I run them? for example for rspec, I just use "rspec"
[10:14:01] sevenseacat: check your rake task list
[10:14:25] za1b1tsu: sevenseacat: empty
[10:16:05] sevenseacat: not if you have a rails app
[10:16:33] jlebrech: rake or rake test i think
[10:17:09] za1b1tsu: sevenseacat: you mean the folder lib/tasks right?
[10:17:23] sevenseacat: no, I mean your rake task list when you run rake -T
[10:22:21] za1b1tsu: sevenseacat: ah I see, cheers
[10:34:54] p8m: has joined #RubyOnRails
[10:47:39] Ergo: has joined #RubyOnRails
[11:23:50] GodFather: has joined #RubyOnRails
[12:14:26] chridal: I'm trying to deploy with Webpacker, and I did assets:precompile, all the assets are there and no errors. When I deploy to production, nothing renders in the body.
[12:14:51] chridal: The <head></head> section is fine, and all files are present, both JS and CSS, but the body is empty.
[12:15:51] chridal: Or wait, it gets weirder. If I do 'Show source', the body is there. If I go into Inspect in Chrome, the body is empty in the Elements tab. Nothing renders on screen.
[12:16:03] chridal: No errors in nginx, and no errors in rails server.
[12:16:20] chridal: The body in elements just has this class: "class=" __plain_text_READY__""
[12:23:32] jlebrech: what does yout webpacker file look like?
[12:42:03] srinidhi: has joined #RubyOnRails
[12:48:08] prettybT_: has joined #RubyOnRails
[12:48:38] louvre: has joined #RubyOnRails
[12:51:43] DrYockel: has joined #RubyOnRails
[13:11:32] apparition47: has joined #RubyOnRails
[13:11:53] fmcgeough: has joined #RubyOnRails
[13:24:11] ShekharReddy: has joined #RubyOnRails
[13:31:06] bonhoeffer: has joined #RubyOnRails
[13:31:54] bonhoeffer: wondering about the ideal behavior -- if i'm logged in as A@gmail.com and attempt to establish an omniauth session as B@gmail.com, I get a CSRF failure
[13:42:51] ShekharReddy: is it possible to insert an object out of the string printed upon doing puts?
[13:44:49] bonhoeffer: not sure what you mean
[13:46:14] nopolitica: has joined #RubyOnRails
[13:46:48] DTZUZO: has joined #RubyOnRails
[13:47:29] ShekharReddy: i get something like this https://kopy.io/tJr6f
[13:47:58] ShekharReddy: i want to insert the same object in another instance of the same application
[13:48:05] ShekharReddy: the db is different
[13:48:24] ShekharReddy: in a way i am trying to populate db
[13:48:27] ShekharReddy: bonhoeffer: ^^
[13:50:51] tevio: has joined #RubyOnRails
[13:51:37] akaiiro: has joined #RubyOnRails
[13:52:31] apeiros_: has joined #RubyOnRails
[13:53:44] mojtaba: has joined #RubyOnRails
[14:02:33] p8m: has joined #RubyOnRails
[14:25:25] alfiemax: has joined #RubyOnRails
[14:35:46] alfiemax_: has joined #RubyOnRails
[14:36:59] Dimik: has joined #RubyOnRails
[14:47:44] DrYockel: has joined #RubyOnRails
[14:52:42] jottr: has joined #RubyOnRails
[15:00:34] alfiemax: has joined #RubyOnRails
[15:03:59] apeiros: has joined #RubyOnRails
[15:09:50] dblessing: has joined #RubyOnRails
[15:21:14] Xiti: has joined #RubyOnRails
[15:21:20] beowuff: has joined #RubyOnRails
[15:28:07] apeiros: has joined #RubyOnRails
[15:57:12] chouhoulis: has joined #RubyOnRails
[16:01:32] cagomez: has joined #RubyOnRails
[16:10:07] [Butch]: has joined #RubyOnRails
[16:10:14] dtzuzu: has joined #RubyOnRails
[16:18:56] atrius: has joined #RubyOnRails
[16:29:46] akaiiro: has joined #RubyOnRails
[16:30:09] orbyt_: has joined #RubyOnRails
[16:33:07] nottwo_: has joined #RubyOnRails
[16:33:34] cagomez_: has joined #RubyOnRails
[16:37:56] srinidhi: has joined #RubyOnRails
[16:40:37] kapil___: has joined #RubyOnRails
[16:43:09] jottr: has joined #RubyOnRails
[16:49:19] agent_white: has joined #RubyOnRails
[16:55:47] rootsudo: has joined #RubyOnRails
[17:02:23] ragsagar: has joined #RubyOnRails
[17:04:42] orbyt_: has joined #RubyOnRails
[17:12:17] Saukk: has joined #RubyOnRails
[17:13:02] chouhoulis: has joined #RubyOnRails
[17:14:07] orbyt_: has joined #RubyOnRails
[17:18:35] CJKinni: has joined #RubyOnRails
[17:19:32] prettybT_: has joined #RubyOnRails
[17:21:55] prettybT_: has joined #RubyOnRails
[17:28:20] ellcs: has joined #RubyOnRails
[17:34:54] sameerynho: has joined #RubyOnRails
[17:37:18] mojtaba: has joined #RubyOnRails
[17:37:27] wethu: has joined #RubyOnRails
[17:39:52] rootsudo: has joined #RubyOnRails
[17:44:00] snickers: has joined #RubyOnRails
[17:50:12] egray: has joined #RubyOnRails
[17:55:02] s2013: has joined #RubyOnRails
[18:00:01] rootsudo: has joined #RubyOnRails
[18:00:25] lxsameer: has joined #RubyOnRails
[18:00:33] rootsudo: has joined #RubyOnRails
[18:00:38] crova: has joined #RubyOnRails
[18:01:31] rootsudo: has joined #RubyOnRails
[18:02:17] rootsudo: has joined #RubyOnRails
[18:03:04] rootsudo: has joined #RubyOnRails
[18:07:30] lxsameer: has joined #RubyOnRails
[18:11:11] ragsagar: has joined #RubyOnRails
[18:13:58] dblessing: has joined #RubyOnRails
[18:14:16] KevinSjoberg: has joined #RubyOnRails
[18:15:08] dviola: has joined #RubyOnRails
[18:15:54] ragsagar: has joined #RubyOnRails
[18:17:36] lxsameer: has joined #RubyOnRails
[18:23:57] chouhoulis: has joined #RubyOnRails
[18:27:45] lxsameer: has joined #RubyOnRails
[18:33:59] akaiiro: has joined #RubyOnRails
[18:37:31] lxsameer: has joined #RubyOnRails
[18:39:25] Inside: has joined #RubyOnRails
[18:41:22] beowuff: has joined #RubyOnRails
[18:41:28] s2013: has joined #RubyOnRails
[18:47:40] lxsameer: has joined #RubyOnRails
[18:50:46] [Butch]: has joined #RubyOnRails
[18:54:23] s2013: has joined #RubyOnRails
[18:56:17] ragsagar: has joined #RubyOnRails
[18:56:40] chouhoulis: has joined #RubyOnRails
[18:57:49] lxsameer: has joined #RubyOnRails
[19:01:44] synbyte: has joined #RubyOnRails
[19:07:39] lxsameer: has joined #RubyOnRails
[19:13:22] ragsagar: has joined #RubyOnRails
[19:17:03] ragsagar: has joined #RubyOnRails
[19:17:48] lxsameer: has joined #RubyOnRails
[19:22:15] ragsagar: has joined #RubyOnRails
[19:25:02] prettybT_: has joined #RubyOnRails
[19:25:47] ragsagar: has joined #RubyOnRails
[19:27:37] tdy: has joined #RubyOnRails
[19:27:43] lxsameer: has joined #RubyOnRails
[19:28:35] ragsagar: has joined #RubyOnRails
[19:37:44] lxsameer: has joined #RubyOnRails
[19:40:02] mondz: has joined #RubyOnRails
[19:47:39] lxsameer: has joined #RubyOnRails
[19:48:12] dionysus69: has joined #RubyOnRails
[19:51:47] brendan-: has joined #RubyOnRails
[19:57:31] lxsameer: has joined #RubyOnRails
[19:59:15] s2013: has joined #RubyOnRails
[20:07:43] lxsameer: has joined #RubyOnRails
[20:10:02] mojtaba: has joined #RubyOnRails
[20:14:21] Technodrome: has joined #RubyOnRails
[20:17:31] lxsameer: has joined #RubyOnRails
[20:29:03] jottr: has joined #RubyOnRails
[20:42:56] Dimik: has joined #RubyOnRails
[20:45:46] jottr: has joined #RubyOnRails
[21:18:02] mikecmpbll: has joined #RubyOnRails
[21:18:42] defsdoor: has joined #RubyOnRails
[21:19:09] molloy: Is there a way to specify that the fields in the scope of an active record validation are case insensitive?
[21:20:32] molloy: I want to validate :billing_address1 with a scope of :billing_address2, :city, :zip, and :country and can specify that :billing_address1 should be case insensitive, but if any of the other fields vary with a case (united states then United States) it'll count as a different scope
[21:28:59] rfoust: has joined #RubyOnRails
[21:29:02] nottwo: has joined #RubyOnRails
[21:37:51] chouhoulis: has joined #RubyOnRails
[21:40:36] Technodrome: has joined #RubyOnRails
[21:51:27] mikecmpbll: has joined #RubyOnRails
[21:54:16] Radar: GOOD MORNING
[21:54:32] molloy: morning Radar!
[21:54:35] dblessing: has joined #RubyOnRails
[21:55:38] molloy: A senior rails dev didn't know an answer to my question :( But gave me an idea for a hacky workaround
[21:55:39] Radar: molloy: I think you'd have to create your own validation method to do what you're after there.
[21:56:19] Radar: Good thing that "melbourne" and "Melbourne" and "MELBourne" all refer to the same city, hey?
[21:56:35] ellcs: has joined #RubyOnRails
[21:56:50] molloy: Lol yep -_-
[21:56:56] Radar: molloy: is that to validate a unique address across all other addresses? What's the type of validation that you're applying there?
[21:57:53] molloy: Yeah. Sec, I'll paste the validation
[21:58:22] Radar: In the past I've used Google Maps Geocoder API to validate addresses. It tends to know better than I could.
[21:59:58] egray: has joined #RubyOnRails
[22:00:34] molloy: Radar: https://ghostbin.com/paste/bmvd6 is how it looked when I got access to the repo
[22:00:41] Ryanar: has joined #RubyOnRails
[22:01:39] molloy: what they want: all fields to be case insensitive. first thing that came to mind, as a lazy solution, was to validate all of the address fields the same way, putting all other address fields in each scope
[22:02:06] molloy: however, that fails because the fields in each scope are case sensitive still
[22:02:28] molloy: still allowing for duplicate addresses
[22:02:55] Radar: Right, the case_sensitive flag only applies to that field, yeah?
[22:03:33] ur5us: has joined #RubyOnRails
[22:04:13] Radar: Ok. You're going to run into potential issues with like "31<Space>Queen" and "31<Space><Space>Queen" being interpreted as unique addresses if you solve it just by case comparison alone.
[22:04:22] molloy: My coworker suggested writing a before_save callback that then validates the uniqueness of every field (perhaps with a custom sql query)
[22:04:23] Radar: What's the business case of having unique addresses?
[22:07:27] molloy: it's a negative db for fraud prevention, basically
[22:07:53] molloy: I'm not exactly sure why they can't have duplicate addresses, but it's something they're explicitly requesting. I can ask
[22:15:41] dionysus69: has joined #RubyOnRails
[22:23:03] chouhoulis: has joined #RubyOnRails
[22:26:15] ur5us: has joined #RubyOnRails
[22:26:22] lxsameer: has joined #RubyOnRails
[22:26:32] ur5us: has joined #RubyOnRails
[22:26:49] Radar: molloy: yeah it sounds like you're going to have to write a custom SQL query then to check that the combination of [billing_address1, billing_address2, ...] does not equal any other combination of the same.
[22:26:52] Radar: I hope you have good data sanitation practices ;) addresses in this format are one of the shittiest things to work with in a database
[22:26:59] Radar: Because: Level 10, 31 Bob Street, BobTown VIC 3001 is the same as Floor 10, 31 Bob Street, BobTown VIC 3001.
[22:27:55] molloy: Thanks Radar, always appreciate how much you help the rails community through this channel. Good to know there aren't any better options
[22:28:07] Radar: Thanks for the support molloy :)
[22:32:14] prettybT_: has joined #RubyOnRails
[22:37:36] lypsis: has joined #RubyOnRails
[22:42:17] Dimik: has joined #RubyOnRails
[22:46:23] rootsudo: has joined #RubyOnRails
[22:54:45] markh: has joined #RubyOnRails
[23:06:58] chouhoulis: has joined #RubyOnRails
[23:09:02] dblessing: has joined #RubyOnRails
[23:35:42] akaiiro: has joined #RubyOnRails
[23:56:29] markh: has joined #RubyOnRails
[23:57:05] dblessing: has joined #RubyOnRails
[23:58:48] dviola: has joined #RubyOnRails