#RubyOnRails - 05 August 2019
« Back 1 day Forward 1 day »
[00:42:37] borpops: Hey there. I have a requirement that whenever one of my models is saved, I need to call an external api to sync up a web service with the model. Where does this fit into rails? Is it a good idea to put that logic in the after_save callback?
[00:43:10] borpops: or at least if the api call is made in a worker/service object, is it okay to kick that off in the after_save callback?
[01:22:07] dviola: these #like_owner?, #collaborator? methods expect a loop of some sort, so a bit difficult
[06:43:37] Intelo: If I have intellij Idea and want to develop in ruby. I do not need rubymine and just a FREE plugin to be installed in idea? Correct?Is idea EAP free for ever?
[13:25:01] algun: I need a new temporary table with a unique name for each new request to the method of the controller
[13:44:33] algun: Let me try again: How should I approach using a dynamically-created (named-at-runtime) table?
[14:19:56] gheegh: Hey all.. I'm wondering if anyone knows of any guide on best practices for jobs that "retrieve data"? I have a system that's doing hundreds of thousands of jobs.. occasionally.. my Sidekiq job gets locked up.. and then re-queues itself, then it just seems to cascade.. what i need is a clean Timeout that will, after a fixed period of time, re-queue to a problem queue. Over the course of a day, it will lock up all my worker
[14:33:42] gheegh: yeah, but Sidekiq writes all over their code base not to use Timeout because it's not thread safe.
[14:34:09] gheegh: to timeout the underlying process, retrieve, etc. which i've done.. but there are still some case where it locks the thread..
[20:30:57] walidvb: trying to test a controller, but getting an "wrong number of arguments (given 2, expected 0)" error, thrown on the controller's action
[20:31:45] walidvb: what am i doing wrong here?? https://gist.github.com/walidvb/c0e98e7fbc44739358621e7c0c996d3c
[20:41:08] Linell: have you tried putting any puts or something throughout to see if you're it's dying where you think it is?
[20:43:36] walidvb: Linell: i just did, and it looks like my before_actions are being passed to the controller
[20:47:06] Linell: I'm not sure how to help at all sadly, I'm just a bad programmer and debug with puts a lot lol
[20:47:33] Linell: try to put another puts on after line seven though, adn then one more inside of the if can?
[20:56:58] walidvb: sry, misexpressed myself. i tried to send a real life request, and i'm getting that error
[21:03:27] walidvb: reserved keywork of ruby, lol... i didn't even go that deep, but is obvious now, indeed ^^