Page 1 of 1
[16:16:47] dang`r`us: tuskkk___, have you found https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/welcome.html ?
[08:56:22] dang`r`us: without knowing much of the ruby library world ... what exactly do you want to implement? (given state machines are rather low level)
[09:16:11] dang`r`us: I mean, if you do have a complex infrastructure, and use them as kind of a one time ticket, you can
[08:54:51] dang`r`us: you can have a look at https://alexpeattie.com/blog/stop-forgetting-foreign-key-indexes-in-rails-post-migration-script
[14:39:14] dang`r`us: usually UTC is better; if you need to store information about time zones (e.g. for users, sites etc.) store the time zone name separately
[09:34:47] dang`r`us: dminuoso, the project I'm building replaces one without an ORM ... it's quite the sight
[09:35:06] dang`r`us: lots of core logic in database triggers, which are written in a postgres-typescript extension
[09:54:43] dang`r`us: dminuoso, this project's old backend is nodejs too, of course. Anything resembling configuration management is a few incoherent bash scripts
[09:56:00] dang`r`us: in fact I'm pretty close to develop a test script that does some sed on a gitlab configuration file (because currently "deploy this commit to the test server" is not a thing this monster can do)
[09:58:01] dang`r`us: I mean, I find JS actually pretty impressive given it was thrown together in 10 days or so
[09:58:50] dang`r`us: but anyway, no, I guess I don't know the reason behind every number being a float
[20:40:40] dang`r`us: c0lored, when I google for "cannot load such file -- initializer (LoadError)" I get some info
[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: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: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: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: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: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: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:37:14] dang`r`us: anyway, dashboard stuff works now, so yay. How do I get my old root route back?
[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:40:02] dang`r`us: but now when visiting http://site/, I see "congratulations, you are on rails" instead of my HomeController #index
[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: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: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:44:37] dang`r`us: sign in with the route commented out -> dashboard; sign in with the route enabled -> root
[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:52:06] dang`r`us: yeah, I would think so too. And after restarting docker-compose -again-, it even works.
[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: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
[10:53:07] dang`r`us: hey there, it seems I cannot do a db:drop while rails is running and has made at least one query. I'm assuming this is because of persistent connections, which make of course sense for production, but can I disable them for development?
[11:01:33] dang`r`us: unrelated, when I do .create and it results in a ROLLBACK, can I somehow see the reason for that?
[11:04:03] dang`r`us: I wanted to know if I can disable persistent connections, like https://docs.djangoproject.com/en/2.0/ref/databases/#persistent-connections in "that other web framework"
[11:05:53] dang`r`us: is there a generic wrapper for object creation so I get an exception or sth when create fails, and see the errors?
[10:52:07] dang`r`us: what does "reduced accuracy" here mean? https://apidock.com/ruby/DateTime/strftime
[15:01:56] dang`r`us: I'm having trouble with https://github.com/tzinfo/tzinfo -- https://dpaste.de/KkAj
[15:25:52] dang`r`us: havenwood, oooookay thanks :) can I get the version of a gem inside ruby somehow or do I have to consult the Gemfile?
[15:28:54] dang`r`us: like, yeah, apparently I have two installed, but why, and can I specifically import one instead of the other?