#RubyOnRails - 11 August 2019
« Back 1 day Forward 1 day »
[00:39:42] et09: i had a line "MyModel.with_valid_params" before an upgrade. now i have no idea where it came from or what it does
[03:05:55] ian_strascina: I'm adding supplementary methods to my model's columns by iterating the *columns_hash*, and defining new methods. I'd like to do this for all my models automatically. How can I do this? I thought about monkey patching ActiveRecord::ModleSchema::ClassMethods since that's where *columns_hash* is defined, but I can't get it to work.
[04:57:45] et09: i'm having a problem with default cookie store throwing a CookieOverflow as a result of devise trying to store a user object > 4k
[04:58:14] et09: in theory i could replace the session store mechanism. but i wonder if there's a way to force devise to only store current_user id and load in the user from db per request?
[04:59:48] et09: or maybe um, if i can take my User model, and save it in-store while omitting some of the sizeable jsonb properties?
[05:04:16] et09: aha https://stackoverflow.com/questions/9473808/cookie-overflow-in-rails-application
[15:40:22] FrostCandy: I want to make my lable a picture instead of text, but this puts the image link in text form instead of picture form - <%= label :template_select, image_tag("cat.jpg") %>
[15:44:57] FrostCandy: I suppose i can just do <%=label :whatever, ''%> then a image tag after it. Or just leave the label off completely
[21:45:36] serene_sparks: Anyone familiar with an issue that causes rails -v to take about 20 seconds to run? MacOS mojave