« Back to channel list

#RubyOnRails - 23 April 2018

« Back 1 day Forward 1 day »
[00:00:11] uks: has joined #RubyOnRails
[00:16:43] matcouto: has joined #RubyOnRails
[00:17:30] matcouto: Any good strategy/recommendation for updating a single value on 6 million records? =D
[00:17:35] orbyt_: has joined #RubyOnRails
[00:18:15] Radar: matcouto: are you updating it all to the same value?
[00:18:28] Radar: or at least a value that can be computed from existing record data?
[00:20:31] matcouto: @Radar No. different values. I need to create a hash with different values before saving it.
[00:20:36] matcouto: it's a json column
[00:20:54] Radar: Model.find_each is probably going to be helpful in this case then.
[00:21:22] matcouto: @Radar thinking on something like that https://gist.github.com/matcouto/b6389eb33c7f184ae55ebf9eaa4cc17a
[00:21:36] matcouto: but wondering what batch size I should be using
[00:22:22] Radar: You don't need to use find_each and find_in_batches. find_each will already find in batches.
[00:22:34] Radar: And what are you doing with the index? Is that important to have>?
[00:23:45] matcouto: @Radar I was going to use the index for logging.
[00:23:49] matcouto: Not really necessary tho
[00:24:01] Radar: OK. You can then reduce the case down to just "find_each"
[00:26:48] matcouto: @Radar Cool. And what would be a good :batch_size you reckon?
[00:27:10] workmad3: has joined #RubyOnRails
[00:27:19] Radar: matcouto: depends on how big the data is and how much memory the server has. I usually just stick with the default (which is 1000 iirc)
[00:29:01] mroutis: has joined #RubyOnRails
[00:31:47] matcouto: @Radar I'd say around 6.5million records, and 8GB machines
[00:32:13] matcouto: usually running about 40% capacity
[00:34:49] Radar: Yup. So stick with the default then and wait it out.
[00:36:07] matcouto: Should I keep the updates in the same transaction per batch? Or it's not worth it?!
[00:37:16] matcouto: Will run some tests here.
[00:37:27] matcouto: @Radar thanks heaps
[00:51:53] matcouto: has joined #RubyOnRails
[01:05:01] segy_: has joined #RubyOnRails
[01:08:28] matt_d: has joined #RubyOnRails
[01:17:54] kapil___: has joined #RubyOnRails
[01:54:33] _3dwardsharp: has joined #RubyOnRails
[01:55:01] Dimik: has joined #RubyOnRails
[01:57:29] qyliss: has joined #RubyOnRails
[02:24:15] Saukk: has joined #RubyOnRails
[02:26:07] workmad3: has joined #RubyOnRails
[02:44:34] tdy: has joined #RubyOnRails
[02:59:09] mroutis: has joined #RubyOnRails
[03:08:06] duderonomy: has joined #RubyOnRails
[05:01:44] schneider: has joined #RubyOnRails
[05:05:12] duderonomy: has joined #RubyOnRails
[05:06:34] muffiny: has joined #RubyOnRails
[05:33:41] tdy: has joined #RubyOnRails
[05:34:17] reber: has joined #RubyOnRails
[05:34:18] fcser__: has joined #RubyOnRails
[05:47:14] zwliew: has joined #RubyOnRails
[06:06:31] ur5us: has joined #RubyOnRails
[06:07:30] roshanavand: has joined #RubyOnRails
[06:18:01] schneider: has joined #RubyOnRails
[06:20:13] timdotrb: has joined #RubyOnRails
[06:21:33] snickers: has joined #RubyOnRails
[06:29:51] hive-mind: has joined #RubyOnRails
[06:31:57] schneider: has joined #RubyOnRails
[06:35:13] kapil___: has joined #RubyOnRails
[06:40:40] shiroeni: has joined #RubyOnRails
[06:44:16] bga57: has joined #RubyOnRails
[06:46:52] conta: has joined #RubyOnRails
[06:50:46] mjolnird: has joined #RubyOnRails
[06:52:57] MrCrackPotBuilde: has joined #RubyOnRails
[06:53:31] schneider: has joined #RubyOnRails
[07:02:00] srinidhi: has joined #RubyOnRails
[07:02:51] schneider: has joined #RubyOnRails
[07:06:34] dionysus69: has joined #RubyOnRails
[07:12:01] srinidhi: has joined #RubyOnRails
[07:12:11] schneider: has joined #RubyOnRails
[07:21:32] schneider: has joined #RubyOnRails
[07:27:23] one_zero: has joined #RubyOnRails
[07:30:48] schneider: has joined #RubyOnRails
[07:36:01] defsdoor: has joined #RubyOnRails
[07:40:09] schneider: has joined #RubyOnRails
[07:49:27] schneider: has joined #RubyOnRails
[08:07:14] ur5us: has joined #RubyOnRails
[08:14:26] ur5us: has joined #RubyOnRails
[08:17:26] syndikate: I am introducing audited gem to my existing application and I would like to have audit trail for all the existing records, how can I achieve that?
[08:17:46] syndikate: I mean, the new records that I create will have audit trails but I need that for existing ones as well
[08:19:41] marr: has joined #RubyOnRails
[08:23:07] workmad3: has joined #RubyOnRails
[08:24:10] dminuoso: syndikate: https://github.com/collectiveidea/audited/blob/master/lib/audited/auditor.rb#L218-L221
[08:25:12] srinidhi: has joined #RubyOnRails
[08:25:32] dionysus69: how do I insert html id inside linkt_to like this? <a href="/path#id">link</a>
[08:25:53] dionysus69: google confuses html id with object id
[08:26:10] dminuoso: "google confuses" what?
[08:26:23] dionysus69: when I google link_to helper id in path
[08:26:35] dionysus69: it assumes I mean something like this, path/object/:id
[08:26:41] dionysus69: whereas I mean /path#id
[08:27:12] tbuehlmann: are you talking about an anchor?
[08:27:32] dionysus69: to go to specific part of page with an anchor
[08:27:43] dionysus69: couldn't find link_to way to do it
[08:28:10] dminuoso: dionysus69: Then you clearly didn't look.
[08:28:13] dminuoso: dionysus69: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to
[08:28:16] dminuoso: Go. Read. Documentation.
[08:28:25] dminuoso: You have been in this channel for years. You should know how to read documentation.
[08:28:43] dionysus69: couldn't find it fast enough I guess
[08:28:53] dminuoso: No you just didn't bother to look into the api documentation into link_to at all.
[08:29:08] dionysus69: ok you are right ^.^
[08:30:55] dionysus69: ok found it thanks :)
[08:31:06] dminuoso: Though I do admit the documentation is extremely poor. You basically have to dig through the examples to figure out the API. But still.
[08:35:11] ferr: has joined #RubyOnRails
[08:39:34] ferr: has left #RubyOnRails: ()
[08:47:18] timdotrb: has joined #RubyOnRails
[08:48:00] timdotrb: has joined #RubyOnRails
[08:48:38] timdotrb: has joined #RubyOnRails
[08:49:43] timdotrb: has joined #RubyOnRails
[08:52:37] BrianJ: has joined #RubyOnRails
[08:56:46] BrianJ: I have a Student and a Councilor, they both have a has_one relationship with Profile. I am trying to order Student according to their councilor name. I am basicly trying to do: Student.includes(councilor: :profile).order("profiles.name").referenecs(councilor: :profile). This orders it after the student name, not councilor name...how can I fix this?
[08:57:05] BrianJ: profiles.name ASC obviously*
[09:04:33] workmad3: has joined #RubyOnRails
[09:04:49] syndikate: dminuoso, Oh thanks. That's a private method though, a bit confused how I can make best use of it
[09:05:05] dminuoso: syndikate: .send bypasses private restrictions.
[09:05:16] dminuoso: syndikate: It's a one-time thing anyway, so its fine.
[09:06:14] syndikate: Thanks dminuoso!
[09:06:49] tbuehlmann: and be careful when using #send on objects whose classes you don't own, it could be overridden. using #__send__ should be a safer choice
[09:16:12] shiroeni: has joined #RubyOnRails
[09:33:58] cschneid_: has joined #RubyOnRails
[09:34:59] lunarkitty7: has joined #RubyOnRails
[09:39:02] srinidhi: has joined #RubyOnRails
[09:50:46] universa1: has joined #RubyOnRails
[09:53:07] roshanavand: has joined #RubyOnRails
[10:06:32] Terens: has joined #RubyOnRails
[10:07:16] Fernando-Basso: has joined #RubyOnRails
[10:14:33] fox_mulder_cp: hi, folks. how i can implement methods like current_user from devise in my mountable engine
[10:20:48] universa1: has joined #RubyOnRails
[10:24:28] syndikate: dminuoso, does audited use YAML to serialize by default?
[10:27:13] srinidhi: has joined #RubyOnRails
[10:30:54] amritoit: has joined #RubyOnRails
[10:39:07] dminuoso: tbuehlmann: Haha. As if __send__ couldn't be overriden! :P
[10:39:17] conta: has joined #RubyOnRails
[10:40:17] tbuehlmann: send is meant to be overridden when needed, __send__ is not
[10:46:29] universa1: has joined #RubyOnRails
[10:54:35] srinidhi: has joined #RubyOnRails
[11:01:27] apparition: has joined #RubyOnRails
[11:13:05] moei: has joined #RubyOnRails
[11:19:01] syndikate: I did not understand, what's the diff between __send__ and send? Which to use?
[11:23:57] Cavallari: has joined #RubyOnRails
[11:31:03] dminuoso: syndikate: __send__ is .send, but the thing is some people might have some method called "send" which conflicts with Object#send
[11:31:15] dminuoso: syndikate: So __send__ is an alias that has a lower chance of being overridden.
[11:31:44] syndikate: Ah, gotcha. Understood it now. Thanks
[11:31:51] dminuoso: If you have some meta-programming with no control about the classes involved, __send__ is less likely to breaj.
[11:32:07] dminuoso: If you know the classes involved wont override it, you can also just use .send.
[11:38:24] syndikate: Yup. Got it.
[11:42:01] dminuoso: tbuehlmann: send is not meant to be overridden.
[11:47:41] tbuehlmann: I think it is, or are you after the wording "meant to be"?
[11:49:14] dminuoso: tbuehlmann: Yeah.
[12:02:24] reber__: has joined #RubyOnRails
[12:03:16] kapil___: has joined #RubyOnRails
[12:07:41] Cavallari1: has joined #RubyOnRails
[12:11:39] dang`r`us: http://www.rubydoc.info/github/plataformatec/devise/master/Devise/Controllers/Helpers:after_sign_in_path_for <- where would "publisher_url" come from?
[12:12:07] DTZUZO: has joined #RubyOnRails
[12:15:37] elcms: has joined #RubyOnRails
[12:19:31] dminuoso: dang`r`us: Some route helper.
[12:22:44] dang`r`us: dminuoso, okay thanks. I already have http://guides.rubyonrails.org/routing.html open but can't seem to connect all required dots. let's say I already have a route like get 'customer/dashboard' - how would I reference that?
[12:23:26] dminuoso: dang`r`us: Type `rails routes` in your shell while somewhere inside the rails project
[12:23:55] dminuoso: dang`r`us: You will see a column called "Prefix". Rails generates path and url helpers with that prefix.
[12:24:02] dminuoso: dashboard GET /dashboard(.:format) dashboard#show
[12:24:17] dminuoso: Generates `dashboard_path` and `dashboard_url` route helpers.
[12:24:41] dang`r`us: dminuoso, okay, so I just return the prefix there?
[12:24:55] dminuoso: dang`r`us: With some _url or _path suffix as needed
[12:25:13] dang`r`us: dminuoso, how do I determine what is needed?
[12:25:22] dminuoso: dang`r`us: Your intention.
[12:25:28] dang`r`us: I don't understand
[12:26:00] dminuoso: dang`r`us: Well the question is: Where do you want to redirect the user to.
[12:26:04] dang`r`us: I have a 'customer/dashboard' url that I can type in the browser that does what I want; how do I refer to that in the after_sign_in_path_for method?
[12:26:23] dminuoso: dang`r`us: What's the "Prefix" for that route?
[12:26:30] dang`r`us: https://dpaste.de/UwqO
[12:26:45] dminuoso: dang`r`us: So you can refer to that route with `customer_dashboard_path` or `customer_dashboard_url`
[12:26:50] dang`r`us: what's the difference?
[12:26:57] cschneid_: has joined #RubyOnRails
[12:27:12] dminuoso: dang`r`us: _path provides paths relative to the site root, _url provides absolute paths
[12:27:30] dminuoso: dang`r`us: Your default should be _path
[12:27:40] dang`r`us: okay, so probably _url in that case. I'll try that. In "rails console" it doesn't work, that should not concern me, yes?
[12:27:45] dang`r`us: okay, _path then ...
[12:27:54] dminuoso: 14:27 dang`r`us | okay, so probably _url in that case. I'll try that. In "rails console" it doesn't work, that should not concern me, yes?
[12:28:06] dminuoso: dang`r`us: Those helpers come from a module. You can however include that module in your rails console
[12:28:30] dminuoso: `include Rails.application.routes.url_helpers`
[12:28:40] dang`r`us: trying it out now ...
[12:28:57] dminuoso: dang`r`us: You can use that to make them available in places where they are not already (through some default)
[12:30:42] dang`r`us: so this is my ApplicationController, but it does not do the redirects after signing in, instead I land on the root/home page.. https://dpaste.de/gUhx
[12:31:24] dang`r`us: the method does not seem to get called at all - I intentionally put an error there now and I still land on /
[12:32:12] dang`r`us: probably I need to remove root to: 'home#index' from routes.rb?
[12:32:35] dminuoso: dang`r`us: Unrelated to your issue, you should never make such methods public methods.
[12:32:50] dminuoso: dang`r`us: Reason is that rails has an implicit convention that public methods are valid *actions*
[12:33:01] dang`r`us: dminuoso, okay, so the devise docs are wrong in this case..?
[12:33:22] dang`r`us: or rather, they don't mention I should protect the method, I guess
[12:34:29] dminuoso: dang`r`us: "By default, it first tries to find a valid resource_return_to key in the session, then it fallbacks to resource_root_path, otherwise it uses the root path. For a user scope, you can define the default url in the following way:"
[12:35:07] dang`r`us: Yeah, I removed the root to: 'home#index' and now the method does get called, however I'm fighting a docker issue now so I haven't been able to test it completely
[12:35:16] dang`r`us: some sort of caching seems to have caught my intentional error
[12:35:36] dang`r`us: my next question however will probably be how to get the root route back and only do the customized routing on login
[12:35:45] dminuoso: dang`r`us: If possible I'd try to not use docker too early with Rails until you have a good feeling for rails.
[12:36:03] dang`r`us: yay, now I get redirected to the dashboard
[12:36:24] dminuoso: Without a carefully written Dockerfile, you'll have to explictly hack around introducing bogus layers to rebuild layers as needed..
[12:36:35] dang`r`us: dminuoso, fair; I'm a bit bound to the customer's requirements here though
[12:36:41] dminuoso: dang`r`us: Yeah but still. :)
[12:36:42] dang`r`us: it's a good point though
[12:36:47] dminuoso: dang`r`us: You can dockerize rails later without an issue.
[12:37:14] dang`r`us: anyway, dashboard stuff works now, so yay. How do I get my old root route back?
[12:37:28] dang`r`us: routes.rb: https://dpaste.de/x6X7
[12:38:36] dminuoso: dang`r`us: What URL are you coming from?
[12:38:57] dang`r`us: that question does not seem to apply - let me rephrase my issue
[12:39:14] dang`r`us: I want non logged in users that visit http://site/ to see home#index
[12:39:25] dang`r`us: but on login they should be redirected to their respective dashboard
[12:39:46] dang`r`us: after commenting out the home#index route, ApplicationController#after_sign_in_path_for gets called on login, which is precisely what I want
[12:39:59] dminuoso: dang`r`us: Where did you hook into after_sign_in_path_for to emit an error?
[12:40:02] dang`r`us: but now when visiting http://site/, I see "congratulations, you are on rails" instead of my HomeController #index
[12:40:08] dminuoso: As in what did you do to assert that the method gets called
[12:40:39] dang`r`us: dminuoso, https://dpaste.de/bqLi line 6
[12:40:54] dang`r`us: on login I then got the excepted exception that errrorrrrrrr is not defined.
[12:41:18] dang`r`us: the method gets called now for sure though, since I get redirected to the correct dashboard now.
[12:41:22] dang`r`us: only my HomeController is gone.
[12:41:23] dminuoso: dang`r`us: And when you plug the root route back in, it does not trigger?
[12:41:44] dang`r`us: dminuoso, I would assume so, since that's the only change I made. But maybe docker cache issues? I'll restart the whole thing to make sure.
[12:41:50] dminuoso: dang`r`us: Can you try and verify?
[12:42:11] dang`r`us: FWIW, I'm using an overlay so I don't have to rebuild the file system
[12:42:19] dminuoso: dang`r`us: Just ditch Docker for now. It's just one additional variable to worry about in the beginning. =)
[12:42:29] dang`r`us: I'll keep that in mind, yes.
[12:43:07] dang`r`us: although I'd like to know where the issues come from, since the changes get picked up by the overlay anyway...
[12:43:34] dang`r`us: hmm, yeah, when I plug the route back in I get redirect to home now.
[12:43:37] dang`r`us: which I don't want
[12:43:39] rfoust: has joined #RubyOnRails
[12:43:56] dminuoso: dang`r`us: Well it's hard to say. Maybe you didn't actually save the file?
[12:44:03] dminuoso: Or maybe you didn't correctly rebuild the docker container?
[12:44:11] dang`r`us: like I said I don't rebuild it because overlay
[12:44:20] dang`r`us: anyway, I have now verified a few times: the root route is the culprit
[12:44:37] dang`r`us: sign in with the route commented out -> dashboard; sign in with the route enabled -> root
[12:44:44] dminuoso: dang`r`us: Okay at this point I'd look into devise and figure out how things are coded.
[12:45:19] dminuoso: devise is, just as rails traditions demand it - stack of random modules glued together that create an invisible and undocumented DSL
[12:45:27] dang`r`us: okay. Thanks for your help so far :) I guess I'll bother the colleague who put devise in.
[12:45:39] dminuoso: dang`r`us: How good is your ruby?
[12:45:47] dminuoso: dang`r`us: I really recommend just looking at devise yourself. =)
[12:46:38] DrYockel: has joined #RubyOnRails
[12:47:27] dminuoso: dang`r`us: As far as I can read the source code, this should work.
[12:51:28] dminuoso: https://github.com/plataformatec/devise/blob/master/app/controllers/devise/sessions_controller.rb#L23
[12:52:06] dang`r`us: yeah, I would think so too. And after restarting docker-compose -again-, it even works.
[12:52:24] dminuoso: dang`r`us: Did you remove spring completely?
[12:52:26] dang`r`us: I don't understand where those issues come from and would really like to, even though I agree that at that point just removing docker from the process is the easiest approach.
[12:52:48] dang`r`us: I have not looked into spring; probably important. Thanks for the pointer
[12:52:53] reber: has joined #RubyOnRails
[12:53:19] dminuoso: spring is my prime suspect for all bizarrities.
[12:53:36] dminuoso: And surprisingly in 80% of the cases it's the cause. Even if there's no obvious explanation.
[12:53:51] dang`r`us: it looks like a good culprit
[12:53:54] dang`r`us: I'll remove it.
[12:55:03] dminuoso: https://github.com/rails/spring/issues
[12:55:06] dminuoso: Just browse a bit...
[12:55:09] dang`r`us: my ruby and rails are okay I guess, but it's been 11 years since I've worked with either
[12:55:22] dang`r`us: dinosaur mode engage..
[12:58:15] conta: has joined #RubyOnRails
[12:58:58] duderonomy: has joined #RubyOnRails
[13:08:23] alfiemax: has joined #RubyOnRails
[13:13:49] dang`r`us: is it ok to use activerecord model instances as hash keys?
[13:14:58] schneider: has joined #RubyOnRails
[13:18:01] dminuoso: dang`r`us: That depends on what semantics you want to obtain.
[13:18:10] dminuoso: dang`r`us: http://api.rubyonrails.org/classes/ActiveRecord/Core.html#method-i-3D-3D
[13:20:50] dang`r`us: dminuoso, okay, I should be fine then, my objects all have an ID
[13:21:26] dang`r`us: I use it for grouping: https://dpaste.de/2CUT
[13:22:03] dminuoso: dang`r`us: Personally I'd rather just use the id itself.
[13:22:06] dminuoso: dang`r`us: Even if just for the simple reason that I dont want to have to wonder whether it's the right thing to do 3 months from now when I look at the code.
[13:22:16] dang`r`us: dminuoso, fair point
[13:23:03] dminuoso: dang`r`us: You have some nested N+1 going on in there.
[13:23:14] dang`r`us: agree. how would I speed it up?
[13:26:30] dminuoso: Site.includes(products: :delivery_options).where(company: current_user.company)
[13:26:31] dminuoso: (Change to whatever the associations are named for you)
[13:26:31] dminuoso: dang`r`us: You can then just pass `sites` into your view, and then go nested:
[13:26:31] dminuoso: `sites.each { |e| e.products ... } and so on and so on..
[13:26:33] dminuoso: This would even work without .includes, but the .includes will avoid the (N+1) there
[13:26:59] dang`r`us: thanks again :)
[13:29:39] jerematic: has joined #RubyOnRails
[13:32:58] NL3limin4t0r: has joined #RubyOnRails
[13:35:06] mrtroy32: has joined #RubyOnRails
[13:38:07] mjolnird: has joined #RubyOnRails
[13:41:42] mondongo: has joined #RubyOnRails
[13:42:37] ur5us: has joined #RubyOnRails
[13:46:23] conta: has joined #RubyOnRails
[14:05:33] Trevoke: has joined #RubyOnRails
[14:15:19] Trevoke: How do y'all handle the fact that there's a duplication of knowledge between the scopes (e.g. "deleted"), which will do an SQL query, and in-memory filters on arrays of already-queried objects? (use case: do not make unnecessary databasse calls)
[14:22:43] jerematic: has joined #RubyOnRails
[14:29:24] maryo_: has joined #RubyOnRails
[14:36:29] maryo_: has joined #RubyOnRails
[14:46:37] maryo_: has joined #RubyOnRails
[15:11:52] norm: has joined #RubyOnRails
[15:12:19] norm: I’ve got a user who consistently gets a ActionController::InvalidAuthenticityToken when she submits a form
[15:12:48] norm: Looking at a packet capture, I see the authenticity token assigned (in a <meta> tag), and the same value gets posted back when the form is submitted
[15:13:08] norm: everything looks like it matches, any idea why the error is raised?
[15:13:37] mondongo: I had to add prepend true to solve one of those
[15:13:44] mondongo: It was Rails 5
[15:19:29] timdotrb: has joined #RubyOnRails
[15:21:29] SteenJobs: has joined #RubyOnRails
[15:30:58] apeiros: has joined #RubyOnRails
[15:34:46] beingjohnm: has joined #RubyOnRails
[15:35:25] Trevoke: Is there any way with AREL to do a join in one SQL query?
[15:35:50] Trevoke: I'm looking at joins, includes, merge -- all seem to require a second query to get to the joined data in some way (whether it's eager or lazy)
[15:36:20] dminuoso: Norm: Gist your controller as well as its hierarchy (up to whatever variant of ApplicationController you have)
[15:37:16] dminuoso: Norm: Also include the log of your request.
[15:41:45] Trevoke: Okay, if I do joins, includes AND merge it does a single query
[15:42:09] Trevoke: Now to repeat the trick on a join one step removed...
[15:50:07] c0lored: has joined #RubyOnRails
[15:51:17] c0lored: i am having a bit of an issue getting unicorn_rails to run. I know that we really should be using unicorn_rails, but this is an old application i am trying to not rewrite it. It is complaining about a syntax error, yet I don't see one... could some one help?
[15:51:29] c0lored: I can put a pastebin with the error and code it is complainging about
[16:03:16] dionysus69: has joined #RubyOnRails
[16:04:36] jerematic: has joined #RubyOnRails
[16:07:45] marr: has joined #RubyOnRails
[16:12:26] mroutis: has joined #RubyOnRails
[16:13:07] [Butch]: has joined #RubyOnRails
[16:14:36] one_zero: has joined #RubyOnRails
[16:21:40] mostlybadfly: has joined #RubyOnRails
[16:23:06] norm: dminuoso: working on that now, thanks
[16:23:12] darkhanb: has joined #RubyOnRails
[16:23:31] troys: has joined #RubyOnRails
[16:24:19] duderonomy: has joined #RubyOnRails
[16:25:53] bga57: Does anyone know how much RailsConf cost? It's going to be local for me next year.
[16:26:57] orbyt_: has joined #RubyOnRails
[16:28:07] norm: dminuoso: done, https://gist.github.com/normelton/9b0b4cbb99e05ee391bb3ed239733f31
[16:35:03] norm: mmm i just noticed a warning in that log entry (“HTTP Origin header … didn’t match”), i’ll chew on that some too
[16:35:08] norm: but thanks for anything you see
[16:36:47] eckhardt: has joined #RubyOnRails
[16:40:04] cagomez_: has joined #RubyOnRails
[16:43:40] jcarl43: has joined #RubyOnRails
[16:46:44] Trevoke: has joined #RubyOnRails
[16:46:53] duderonomy: has joined #RubyOnRails
[16:58:52] alfiemax: has joined #RubyOnRails
[17:01:47] mroutis_: has joined #RubyOnRails
[17:10:14] schneider: has joined #RubyOnRails
[17:13:16] cagomez_: is it possible to compose serializers using ActiveModel::Serializers? ie have one serializer which delegates some attributes to another serialized object?
[17:15:58] Cavallari: has joined #RubyOnRails
[17:30:09] alfiemax: has joined #RubyOnRails
[17:31:10] muffiny: has joined #RubyOnRails
[17:34:29] c0lored: https://pastebin.com/tr9Ac0T0
[17:34:31] jcarl43: has joined #RubyOnRails
[17:35:12] c0lored: could some one help debugging the above error?
[17:37:36] orbyt_: has joined #RubyOnRails
[17:40:14] gheegh: has joined #RubyOnRails
[17:44:11] ur5us: has joined #RubyOnRails
[17:45:31] norm: c0lored: as far as I know, “{ request.session_options[:key], request.session_options[:id] }” is not valid ruby
[17:45:45] norm: not entirely sure what you’re trying to do there
[17:47:28] c0lored: well Norm, this app was built like 8 years ago... i'm not really sure either. i think that line is getting a session id / key for a database.
[17:53:51] SteenJobs: has joined #RubyOnRails
[17:56:17] gheegh: has joined #RubyOnRails
[17:57:18] gheegh: hey all.. question.. does anyone know how to fix this error, i'm getting on all React requests made to my Rails API app? HTTP parse error, malformed request () In looking through the forums and stuff, I do NOT have the issue where i'm trying an HTTPS request on an HTTP connection.
[17:57:50] gheegh: to be clear, the error is from Puma.. HTTP parse error, malformed request () and it returns a 500 error to the client
[18:01:37] gheegh: happens on chrome, happens on safari
[18:05:27] Saukk: has joined #RubyOnRails
[18:06:15] apeiros_: has joined #RubyOnRails
[18:09:14] Cavallari: has joined #RubyOnRails
[18:10:29] mroutis: has joined #RubyOnRails
[18:12:45] conta: has joined #RubyOnRails
[18:13:33] schneider: has joined #RubyOnRails
[18:16:30] alfiemax: has joined #RubyOnRails
[18:18:07] cagomez_: has joined #RubyOnRails
[18:19:04] cagomez_: has joined #RubyOnRails
[18:20:02] guacamole: has joined #RubyOnRails
[18:24:00] srinidhi: has joined #RubyOnRails
[18:25:15] orbyt_: has joined #RubyOnRails
[18:26:02] schneider: has joined #RubyOnRails
[18:40:01] rfoust: has joined #RubyOnRails
[18:49:19] rfoust: has joined #RubyOnRails
[18:57:48] cagomez_: has joined #RubyOnRails
[18:59:31] cagomez_: has joined #RubyOnRails
[19:08:04] AlHafoudh: is there anything like https://github.com/remind101/capacitor but more current?
[19:15:30] Trevoke: has joined #RubyOnRails
[19:23:50] mondongo: has joined #RubyOnRails
[19:28:05] jottr: has joined #RubyOnRails
[19:29:13] Technodrome: has joined #RubyOnRails
[19:43:22] ur5us: has joined #RubyOnRails
[19:53:24] NoGodDamnIdea: has joined #RubyOnRails
[19:54:38] Trevoke: has joined #RubyOnRails
[19:58:22] duderonomy: has joined #RubyOnRails
[19:59:05] DTZUZO: has joined #RubyOnRails
[19:59:11] duderonomy: has joined #RubyOnRails
[19:59:57] duderonomy: has joined #RubyOnRails
[20:05:23] dviola: has joined #RubyOnRails
[20:06:43] alfiemax: has joined #RubyOnRails
[20:09:47] reber__: has joined #RubyOnRails
[20:10:08] sameerynho: has joined #RubyOnRails
[20:11:53] workmad3: has joined #RubyOnRails
[20:14:20] reber: has joined #RubyOnRails
[20:16:58] orbyt_: has joined #RubyOnRails
[20:19:10] cagomez_: has joined #RubyOnRails
[20:31:02] Trevoke: has joined #RubyOnRails
[20:31:24] jottr: has joined #RubyOnRails
[20:51:24] rrichardsr3: has joined #RubyOnRails
[20:54:20] rrichardsr3: has joined #RubyOnRails
[20:56:46] rrichardsr3: has joined #RubyOnRails
[20:59:46] Trevoke: has joined #RubyOnRails
[20:59:58] cagomez_: has joined #RubyOnRails
[21:00:10] ur5us: has joined #RubyOnRails
[21:18:13] krawchyk: has joined #RubyOnRails
[21:30:44] rfoust: has joined #RubyOnRails
[21:33:03] Trevoke: has joined #RubyOnRails
[21:36:14] mjolnird: has joined #RubyOnRails
[21:53:01] orbyt_: has joined #RubyOnRails
[21:54:02] eckhardt: has joined #RubyOnRails
[21:56:09] _aeris_: has joined #RubyOnRails
[21:56:38] gil_: has joined #RubyOnRails
[22:04:29] alfiemax: has joined #RubyOnRails
[22:07:30] Trevoke: has left #RubyOnRails: ("ERC (IRC client for Emacs 25.3.1)")
[22:10:55] workmad3: has joined #RubyOnRails
[22:14:42] roshanavand: has joined #RubyOnRails
[22:22:27] eckhardt: has joined #RubyOnRails
[22:23:03] AnotherOne: has joined #RubyOnRails
[22:27:20] apeiros: has joined #RubyOnRails
[22:32:23] eckhardt: has joined #RubyOnRails
[22:49:19] sameerynho: has joined #RubyOnRails
[22:55:55] orbyt_: has joined #RubyOnRails
[23:02:15] eckhardt: has joined #RubyOnRails
[23:10:41] ivanskie: has joined #RubyOnRails
[23:10:59] ivanskie: anyone using Mina in production?
[23:11:15] ivanskie: i think im #doingitwrong
[23:17:04] mroutis: has joined #RubyOnRails
[23:24:21] gheegh: has joined #RubyOnRails
[23:24:51] apeiros: has joined #RubyOnRails
[23:25:08] darkhanb: has joined #RubyOnRails
[23:39:24] rfoust: has joined #RubyOnRails
[23:41:17] muffiny: has joined #RubyOnRails
[23:54:35] ur5us: has joined #RubyOnRails
[23:55:21] Technodrome: has joined #RubyOnRails
[23:59:29] uksio: has joined #RubyOnRails