« Back to channel list

#RubyOnRails - 30 April 2017

« Back 1 day Forward 1 day »
[00:05:44] Rodya_: has joined #RubyOnRails
[00:06:56] mrgreenfur: has joined #RubyOnRails
[00:09:00] Aytan72: has joined #RubyOnRails
[00:22:00] hnanon_: has joined #RubyOnRails
[00:37:29] mrgreenfur: has joined #RubyOnRails
[00:47:04] ocpysh: has joined #RubyOnRails
[00:48:37] helpa: has joined #RubyOnRails
[01:03:32] Technodrome: has joined #RubyOnRails
[01:03:37] cerulean: has joined #RubyOnRails
[01:03:56] cerulean: hello ruby family and their continual puttance-up-with-me (thank you for that)
[01:04:15] cerulean: is their any sort of web assembly type integration with rails? emscripten that can compile my javascript to asm.js? im trying to get speed boosts
[01:04:43] cerulean: paging sevensea?
[01:07:08] Rodya_: has joined #RubyOnRails
[01:08:27] mrgreenfur: has joined #RubyOnRails
[01:09:12] lupine: has joined #RubyOnRails
[01:13:15] mjora7: has joined #RubyOnRails
[01:15:52] gusrub: has joined #RubyOnRails
[01:17:10] hnanon_: has joined #RubyOnRails
[01:17:41] jon31: hmm it's slow because to_json takes its sweet time to proccess all 700 records
[01:25:00] mjora7: has joined #RubyOnRails
[01:39:51] mrgreenfur: has joined #RubyOnRails
[01:46:47] fschuindt: has joined #RubyOnRails
[01:48:52] gusrub: has joined #RubyOnRails
[01:49:21] Rodya_: has joined #RubyOnRails
[01:54:50] sunrunner20: has joined #RubyOnRails
[02:05:04] libastral: has joined #RubyOnRails
[02:06:56] aajjbb: has joined #RubyOnRails
[02:09:48] mrgreenfur: has joined #RubyOnRails
[02:12:34] jon31: how come to_json is so slow?? even oj is not that fast... 20ms to convert an array of 800 hashes
[02:12:42] jon31: sorry 40ms*
[02:12:57] jon31: 40 for to_json and 20ms with oj gem
[02:14:06] roamingdog: has joined #RubyOnRails
[02:17:19] adambecker: Jon, it's possible that due to lazy loading, the query is not executing in your controller
[02:22:06] mjora7: has joined #RubyOnRails
[02:22:24] uks: has joined #RubyOnRails
[02:30:13] iliketurtles: has joined #RubyOnRails
[02:30:23] mjora7: has joined #RubyOnRails
[02:31:40] iliketurtles: has joined #RubyOnRails
[02:34:33] fourcolors: has joined #RubyOnRails
[02:43:44] jane_booty_doe: has joined #RubyOnRails
[02:53:33] aajjbb: has joined #RubyOnRails
[03:05:02] Aytan72: has joined #RubyOnRails
[03:07:35] roamingdog: has joined #RubyOnRails
[03:12:18] iliketurtles: has joined #RubyOnRails
[03:21:49] mjora7: has joined #RubyOnRails
[03:26:27] safetypin: has joined #RubyOnRails
[03:32:14] jon31: why would .includes increase query time from 100ms to 1600ms?
[03:35:18] Aytan72: Jon31: .includes eager loads the associated records, thus taking more time and memory
[03:35:54] jon31: there's only 600 records in the parent table though... hmm
[03:36:42] Rodya_: has joined #RubyOnRails
[03:37:41] fschuindt: Almost 4 days with no solution: http://stackoverflow.com/questions/43647833/how-to-use-markdown-at-rubydoc-info Any help, folks?
[03:37:41] Aytan72: For each of the parent records, how many associated records?
[03:37:57] jon31: Aytan72: about 12
[03:38:12] jon31: for each record
[03:40:30] Aytan72: Jon31: Is it loading a lot of data? It attempts to retrieve the associated record for each parent (600 times), so I would expect that to cause some additional query time.
[03:41:34] jon31: ugh.. i just can't have almost 2 seconds of response time... there must be some way to improve it
[03:42:32] Aytan72: You could try a join instead of includes
[03:43:47] jon31: SQL query takes 50 seconds in total.. but then Rails does its thing to preload all the records for almost 2 seconds.. it doesn't seem right? or is it normal?
[03:43:58] jon31: wouldn't includes just execute hundreds of queries? I'll try
[04:12:07] rakm: has joined #RubyOnRails
[04:22:20] Technodrome: has joined #RubyOnRails
[04:32:33] mrgreenfur: has joined #RubyOnRails
[04:37:48] Rodya_: has joined #RubyOnRails
[04:52:23] Saukk: has joined #RubyOnRails
[05:08:28] fryguy: what queries are being executed, and what query plan is your RDBMS using?
[05:26:28] roamingdog: has joined #RubyOnRails
[05:27:13] roamingdog: has joined #RubyOnRails
[05:28:03] roamingdog: has joined #RubyOnRails
[05:28:41] Talltree: has joined #RubyOnRails
[05:28:53] roamingdog: has joined #RubyOnRails
[05:34:11] wethu: has joined #RubyOnRails
[06:13:17] wethu: has joined #RubyOnRails
[06:34:08] User458764: has joined #RubyOnRails
[06:42:22] roamingdog: has joined #RubyOnRails
[06:55:26] iliketurtles: has joined #RubyOnRails
[06:58:39] dionysus69: has joined #RubyOnRails
[07:02:36] jeffaustin81: has joined #RubyOnRails
[07:05:33] wethu: has joined #RubyOnRails
[07:11:57] wsk: has joined #RubyOnRails
[07:15:33] srinidhi: has joined #RubyOnRails
[07:38:47] Qchmqs: has joined #RubyOnRails
[08:02:29] roamingdog: has joined #RubyOnRails
[08:09:09] nahtnam: has joined #RubyOnRails
[08:21:51] wethu: has joined #RubyOnRails
[08:22:00] srinidhi: has joined #RubyOnRails
[08:39:26] ^mtkd: has joined #RubyOnRails
[09:00:24] lxsameer: has joined #RubyOnRails
[09:06:47] segy: has joined #RubyOnRails
[09:13:16] mtkd: has joined #RubyOnRails
[09:32:58] mikecmpbll: has joined #RubyOnRails
[09:34:14] wethu: has joined #RubyOnRails
[09:36:30] User458764: has joined #RubyOnRails
[10:01:54] User458764: has joined #RubyOnRails
[10:06:03] joeytwiddle: has joined #RubyOnRails
[10:10:11] jeffaustin81: has joined #RubyOnRails
[10:12:37] defsdoor: has joined #RubyOnRails
[10:15:24] sandstrom: has joined #RubyOnRails
[10:16:59] lxsameer: has joined #RubyOnRails
[10:24:40] wethu: has joined #RubyOnRails
[10:27:21] srinidhi: has joined #RubyOnRails
[10:27:30] jeffaustin81: has joined #RubyOnRails
[10:33:40] Qchmqs__: has joined #RubyOnRails
[10:47:16] Qchmqs__: has joined #RubyOnRails
[10:59:42] armyriad: has joined #RubyOnRails
[11:15:51] armyriad: has joined #RubyOnRails
[11:37:34] wethu: has joined #RubyOnRails
[11:38:48] xco: has joined #RubyOnRails
[11:39:07] xco: using the new Rails 5.1 how do i start the angular server to view the “hello” message?
[11:41:59] roamingdog: has joined #RubyOnRails
[11:47:18] AzaToth: has joined #RubyOnRails
[11:49:28] jsrn_: has joined #RubyOnRails
[11:53:49] handicraftsman: has joined #RubyOnRails
[12:06:38] netzfisch: has joined #RubyOnRails
[12:36:48] safetypin: has joined #RubyOnRails
[12:37:25] podman: has joined #RubyOnRails
[12:42:58] roamingdog: has joined #RubyOnRails
[12:43:15] Cork: has joined #RubyOnRails
[12:43:56] moogumbo: has joined #RubyOnRails
[12:44:06] daxroc: has joined #RubyOnRails
[12:45:55] poikon: has joined #RubyOnRails
[12:46:26] HalcyonicStorm: has joined #RubyOnRails
[12:48:58] sent-hil: has joined #RubyOnRails
[12:49:15] mostlybadfly: has joined #RubyOnRails
[12:52:45] tfitts: has joined #RubyOnRails
[13:11:09] User458764: has joined #RubyOnRails
[13:12:23] DaveTaboola: has joined #RubyOnRails
[13:22:19] defsdoor: has joined #RubyOnRails
[13:29:19] catbusters: has joined #RubyOnRails
[13:30:13] fernandomm: has joined #RubyOnRails
[13:31:47] fschuindt1: has joined #RubyOnRails
[13:32:31] Technodrome: has joined #RubyOnRails
[13:55:09] chouhoulis: has joined #RubyOnRails
[13:57:16] quirkycoders: has joined #RubyOnRails
[13:59:01] quirkycoders: has joined #RubyOnRails
[14:28:49] roamingdog: has joined #RubyOnRails
[14:40:36] srinidhi: has joined #RubyOnRails
[14:40:37] cucho: has joined #RubyOnRails
[14:42:08] cucho: Hello. Please can you help me with a newbie question? The folder test/helpers is to "test the helpers" or "helpers for tests"?
[14:56:29] tbuehlmann: cucho: "The helpers, mailers, and models directories are meant to hold tests for view helpers, mailers, and models, respectively."
[15:12:10] dionysus69: has joined #RubyOnRails
[15:29:28] mustmodify: has joined #RubyOnRails
[15:29:30] mustmodify: has left #RubyOnRails: ()
[15:36:55] pLaTo0n: has joined #RubyOnRails
[15:36:59] fryguy: has joined #RubyOnRails
[15:46:13] defsdoor: has joined #RubyOnRails
[15:47:13] op84: has joined #RubyOnRails
[15:47:20] Or1on: has joined #RubyOnRails
[15:47:51] op84: hey there - what do you guys use for process monitoring? god, bluepill, eye? anything better around?
[15:48:30] mjora7: has joined #RubyOnRails
[15:49:18] defsdoor: has joined #RubyOnRails
[15:54:06] syndikate: Does rails 5 include active model serializer?
[15:56:32] netzfisch: has joined #RubyOnRails
[15:58:15] Technodrome: has joined #RubyOnRails
[16:01:59] iliketurtles: has joined #RubyOnRails
[16:07:51] yoones: has joined #RubyOnRails
[16:09:40] yoones: Hi. I'm trying to monkey patch a method provided by a gem (-> replace the behavior of decent_exposure's decorate method). The problem is that when I create lib/decent_exposure/behavior.rb and put just the new method, rails loads only this file and not the original one first, so I end up with all the other module's methods missing. How can I fix this?
[16:09:59] francuz: has joined #RubyOnRails
[16:27:31] Sigyn: has joined #RubyOnRails
[16:31:26] gambl0re: has joined #RubyOnRails
[16:43:12] Technodrome: has joined #RubyOnRails
[16:52:36] Rodya_: has joined #RubyOnRails
[16:53:17] dminuoso: syndikate: No, it's not an official gem.
[16:54:05] dminuoso: People need to stop monkey patching public api methods, it's silly.
[16:55:34] syndikate: Ah okay dminuoso
[16:56:12] dminuoso: syndikate: But it's one of the best gems around. :-)
[16:57:01] syndikate: Hehe yeah, I figured. I saw it being used everywhere but all the tutorials told to install it seperately. Got me confused.
[16:58:08] syndikate: dminuoso, how should I be versioning my apis? I read about it quite a lot and people prefer different methods. Having namespace in route file is enough or should I have folder structure and modules for the api versions?
[16:58:39] dminuoso: syndikate: It kind of depends on your goals.
[16:59:11] syndikate: Like? I am thinking of an api only app
[17:00:02] sandstrom: has joined #RubyOnRails
[17:00:33] beauby: has joined #RubyOnRails
[17:04:07] dminuoso: syndikate: Personally I just use a namespace route, because there's no advantage in infesting all my files with that namespace, it's just noise.
[17:07:47] syndikate: I see most of the projects around me having app/controllers/api/v1/..._controller.rb
[17:13:38] arBmind: has joined #RubyOnRails
[17:17:43] aajjbb: has joined #RubyOnRails
[17:18:49] quirkycoders: has joined #RubyOnRails
[17:27:56] quirkycoders: has joined #RubyOnRails
[17:34:25] pLaToOn: has joined #RubyOnRails
[17:35:56] handicraftsman: has left #RubyOnRails: ("Курите маны и читайте доки")
[17:46:14] syndikate: I am trying to create a controller without model for my api, to test some things - is this a good practice?
[17:50:15] dminuoso: syndikate: If it helps you why not.
[17:55:00] netzfisch: has joined #RubyOnRails
[17:56:02] rakm: has joined #RubyOnRails
[17:59:48] roamingdog: has joined #RubyOnRails
[18:03:59] User458764: has joined #RubyOnRails
[18:04:26] pLaToOn: has joined #RubyOnRails
[18:08:36] Technodrome: has joined #RubyOnRails
[18:11:49] tanuki4: has joined #RubyOnRails
[18:17:35] pLaTo0n: has joined #RubyOnRails
[18:18:15] tanuki: has joined #RubyOnRails
[18:37:16] andywww: has joined #RubyOnRails
[18:37:39] User458764: has joined #RubyOnRails
[18:46:57] diggitydane: has joined #RubyOnRails
[18:47:54] netzfisch: has joined #RubyOnRails
[18:54:18] diggitydane: I'm trying to build AR relation from a hash. How do you create a lamba/proc and add it to a scope?
[18:54:24] diggitydane: https://gist.github.com/anonymous/9bdc50c964dda6e215431412b66afab0
[18:58:18] aajjbb: has joined #RubyOnRails
[19:02:29] ahrs: has joined #RubyOnRails
[19:06:32] djinni`: has joined #RubyOnRails
[19:11:47] dustinm`: has joined #RubyOnRails
[19:32:12] irishfromua: has joined #RubyOnRails
[19:35:47] mjora7: has joined #RubyOnRails
[19:36:12] fourcolors: has joined #RubyOnRails
[19:37:32] unreal: has joined #RubyOnRails
[19:38:05] mjora7_: has joined #RubyOnRails
[19:53:51] fourcolors: has joined #RubyOnRails
[19:54:01] sandstrom: has joined #RubyOnRails
[19:54:28] gambl0re: has joined #RubyOnRails
[20:10:18] emerson: has joined #RubyOnRails
[20:19:15] fernandomm: has joined #RubyOnRails
[20:23:13] armando: has joined #RubyOnRails
[20:33:49] Dreamer3: has joined #RubyOnRails
[20:48:57] mjora7: has joined #RubyOnRails
[20:59:23] catbusters: has joined #RubyOnRails
[21:02:53] hnanon_: has joined #RubyOnRails
[21:14:16] hnanon_: I'm having trouble rescuing a Stripe exception.
[21:16:47] dminuoso: Have you tried turning it off and on again?
[21:17:28] fourcolors: has joined #RubyOnRails
[21:17:44] fourcolors: has joined #RubyOnRails
[21:17:53] hnanon_: This is what I have tried so far:
[21:17:55] hnanon_: https://gist.github.com/anonymous/fca49e1d7caa916fa7ff9d5ebc07d8f0
[21:18:20] hnanon_: I see the error message from the logger.
[21:19:08] hnanon_: However, I'm getting the error message "NameError (undefined local variable or method `errors' for #<Class:0x007fb904d56000>):"
[21:20:46] hnanon_: Presumably, this is because I can't do errors.add :base in a class method (self.create_stripe_customer).
[21:21:38] hnanon_: But I can't think of any other way to do it without the line...
[21:21:40] hnanon_: Card.create_stripe_customer(@user, @card.stripe_token, @card)
[21:21:55] hnanon_: ...in my create action in my users controller.
[21:22:12] hnanon_: I need to pass all three of those arguments.
[21:23:21] hnanon_: My goal is to add the exception error message to base and display it to the user.
[21:32:40] zacts: has joined #RubyOnRails
[21:32:54] aajjbb: has joined #RubyOnRails
[21:34:06] foxmask: has joined #RubyOnRails
[21:37:10] djbkd: has joined #RubyOnRails
[21:40:32] gabeodess: has joined #RubyOnRails
[21:41:51] gabeodess: hey all, I’m having a hell of a time getting ruby 2.4.1 working with RVM. Here’s what I tried: https://gist.github.com/gabeodess/4b410afe2c159b42a55666557b472062
[21:41:55] gabeodess: can anyone help?
[21:42:03] lxsameer: has joined #RubyOnRails
[22:07:51] Blaze_Boy: has joined #RubyOnRails
[22:10:27] Junaos: has joined #RubyOnRails
[22:22:34] Radar: GOOD MORNING
[22:22:39] Radar: gabeodess: rvm implode --force
[22:22:45] Radar: then install chruby + ruby-install
[22:23:22] gabeodess: Radar: you hate RVM?
[22:23:28] Radar: mmmmmhmmmmmm
[22:23:55] Radar: Turns out that you spend less time fighting with RVM if it isn't actually installed
[22:24:07] gabeodess: haha, makes sense
[22:39:54] pLaToOn: has joined #RubyOnRails
[22:48:10] sevenseacat: has joined #RubyOnRails
[22:56:26] weaksauce: has joined #RubyOnRails
[23:02:52] hnanon_: Radar: Hey.
[23:09:34] fschuindt: has joined #RubyOnRails
[23:11:13] Radar: hnanon_: hi
[23:13:03] Radar: hnanon_: what's up?
[23:27:54] hnanon_: Radar: Nothing much. Just wanted to say hello.
[23:28:33] hnanon_: Radar: I don't want to just say hi when I'm facing a Rails problem.
[23:28:45] Radar: Oh hi then :)
[23:33:12] Junaos: has joined #RubyOnRails
[23:57:24] uksio: has joined #RubyOnRails