#RubyOnRails - 19 August 2018
« Back 1 day Forward 1 day »
[00:58:41] desnudopenguino: you guys have any suggestions for stress testing tools for a rails app? i'm looking for something that can test authenticated user actions, there is only like one page that doesn't require authentication
[05:12:59] starseed00: So I am trying to setup memcached - when I do Rails.cache.write("hello", "world") I can see that the key is there with Rails.cache.stats, so I know my cache is setup correctly. The thing is, I have caches_action :show everywhere, and I have the action caching gem installed, but hitting my pages never results in any more items in the cache. Can anyone think of anything that would prevent my ac
[05:13:42] starseed00: It seems like it's just action caching that isn't working. Also - I should note that it is working when I just do file_store instead of mem_cache_store
[05:14:40] starseed00: Oh I should note that my action is returning json - would that affect things?
[08:09:59] ragsagar: I have an existing model without any validations. I am writing a v2 api for this model. I would like to add validations checks in this api. What ways are there to add validations just to this API?
[11:01:39] Andr3as: is it possible to call a helper method to alter the pluck output? if not, anyone with a hint how to achieve it otherwise? here's a gist of what the situation is and what i need https://gist.github.com/awunder/ff822ca99458e215bdedff15faa11386
[11:08:00] Andr3as: i tried it but it maps the $ to USD.. havent found a way to have them both in it
[18:49:17] starseed00: Can anyone think of anything that would prevent my action caching from working in production when it works fine locally, and when I can use Rails.cache directly in production and it works that way?
[19:45:36] dionysus69: Rails.cache just gets data from the cache store same way in development or production
[19:50:38] starseed00: dionysus69: Yeah - that's why this issue was so crazy to me. I did finally figure it out.
[19:51:07] starseed00: dionysus69: Thanks though! Jeez, I remember giving you advice like two years ago or something when you were just starting out - way to go man.
[19:51:46] starseed00: dionysus69: Well, I have all my IoC setup and injecting an api endpoint into an angular frontend - I hadn't made it a variable yet, so setting up production was using the staging api
[19:52:20] starseed00: Which means I wasn't even hitting the right environment, let alone the right cache
[19:52:46] dionysus69: yea I am doing my things :P yea I learned it the hard way too, I always setup env vars/credentials or cached settings before I even need them xD