#RubyOnRails - 02 July 2017
« Back 1 day Forward 1 day »
[04:31:37] bashusr: hi all, could someone tell me where rails sessions are stored by default? I'm curious how my session is persisting even though i have 2 servers behind a load balancer... i thought the session is stored in memory or local on the server, but both servers acknowledge my cookie leading me to believe it is somewhere else?
[04:41:17] bashusr: oh found the answer... my data is actually all encrypted in the cookies, there isn't a session... http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
[09:54:37] hnanon: I have a string attribute that is only composed of numbers, something like "1234." Occasionally, I need to append a "-1" or "-2" to it (hence the reason for it being a string).
[09:55:47] hnanon: In other words, when there is a "-1" already appended, the next suffix should be "-2" and so on.
[09:57:11] hnanon: ...where I look for a "-" in the attribute, if it exists, extract the number, convert it to an integer, add one to it, convert it to a string, then append it?
[12:53:30] lxsameer: hey folk, is there any one who used webpacker gem before ? I like to know about your experience with it