#RubyOnRails - 20 December 2018
« Back 1 day Forward 1 day »
[01:17:20] IGnorAND: I have a list of companies with employees. I'm trying to run a to_xml, but which shows employee details per company. It seems my to_xml seems to run a select * from employees where company = 'next id' for every company. This seems to take a while. Is there a faster way to do this?
[01:44:18] havenwood: IGnorAND: Also, use indexes if you aren't already and make sure it's near 100% cache hit rate.
[02:01:40] pekalicious: Hello! I have a list or URLS in an array and another list with regex rules. The idea is to filter out the first list according to the rules of the second. (I.e. a rule could be "anything from youtube should be rejected"). Is there a way to do this without using nested loops? Thanks.
[02:23:31] pekalicious: Something a little similar. After I filter the list I want to run different transform algorithms based on the url. For example, for reddit URLS I want to run ExtractRedditCommentsLink, for Lobsters ExtractLobstersCommentList and for the rest leave them alone. I have a list of mapping RegexUrlRule => TransformAlgorithm. How would I go about that?
[07:14:15] dionysus69: is it possible to use multiple select like checkbox? so it includes unselected as 0s in the submitted params
[09:37:59] kidPalooma: Hello, I'm a bit confused on devise gem's 'remember me' feature. I can't find any updated documentation on how to add it to my project and I'm confused about what is default behavior and what needs to be implemented. Can you point me to any examples or tutorials?
[09:44:28] kidPalooma: jhass: I want to be sure because I am not entirely confident on how to test if this thing works, so I want to go by the manual (which is nowhere to be seen)
[09:44:58] jhass: it's easy to test, if you close your browser now and open it again you should be signed out
[09:46:12] jhass: https://www.rubydoc.info/github/plataformatec/devise/Devise/Models/Rememberable there are some options too
[15:54:00] mustmodify: Good morning. I'm having an issue in production affecting 50 - 100 full time users. The Rails site I maintain runs in production for months without issues (but with frequent deploys.) Last night I restarted the server after changing a MySQL config. (Yes, that wasn't strictly necessary.) Site continued to run until 10am eastern. Then it 504'd all requests. Process was still running. I killed it. It restarted. 10 minutes later
[18:11:02] amperry: hi folks, if I want two separate levels of access to a model (admin and regular), is there anything funky about having two controllers, one under /app/controllers and one under /app/controllers/admin?
[20:14:54] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")