#RubyOnRails - 31 December 2018
« Back 1 day Forward 1 day »
[03:38:02] IGnorAND: https://codepen.io/anon/pen/JwONdY?&editable=true&editors=101 <- when removing the the first line in the JS, the code breaks. Why does the first JS line break the code?
[08:56:48] hnanon: After the call, Twilio posts to a callback URL with a link of the call recording...
[08:57:40] hnanon: Can I be sure that the call record will be created in time to find it for the update?
[09:22:13] jeromelanteri: i use devise with rails-5, i created a route devise_for users ... i do precompil assets for js and css files (included users and users/session, etc...) but my users.sass files stylesheet doesn't show up. Any idea what can happening ? (tell me if you would like more informations, i feel myself loose to understand why styleshhet not appears and where to search for fix this).
[13:25:56] catphish: i have a rails process that i'd like to fork to run tasks, is there any way to avoid needing to close database conneections prior to forking? i assume not, but i can see it being a bit messy having to shut down the database connections and reconnect for every fork :( thought i'd ask if there is any standard solution to this
[13:26:52] catphish: it seems to me that one can't reliably close the connection post-fork without risking interruption to the connection in the parent
[14:24:11] IGnorAND: for correction of pluralization, should I inflect bot the camel case as well as the underscore one? inflect.irregular 'letter_of_good_conduct', 'letters_of_good_conduct', inflect.irregular 'LetterOfGoodConduct', 'LettersOfGoodConduct'
[19:13:33] nickjj: i mean i guess you could use build args to get it in, but it involves your CI service knowing your secret key -- which now means your CI service has access to your stripe keys and other sensitive data
[19:15:25] catphish: nickjj: yeah i don't remember the details, but i recall it related to the interaction between development, test, and production environments
[19:16:07] nickjj: using it in dev with docker also seems like a lame user experience, since you would need to exec into the container and edit your values there (using nano or whatever you decide to install)
[19:17:16] nickjj: was able to google the assets issue tho, you can set a dummy SECRET_KEY_BASE to get the assets to compile without needing your master key -- but still, the dev experience in docker isn't friendly
[22:49:44] rhubarb: Good evening and happy new year :) I have a newbie question, regarding the default form_with generated by a scaffold. I want to have a :deadline datetime property that cannot be set before "today". I'd like to combine a day selected with form.date_field (which can have minimums, unlike datetime_select and date_select) with a time selected with form.time_select, but I don't know how to send that to :deadline.
[22:55:46] rhubarb: I'm not sure about the best way to approach this. E.g. replace it with a different datetime picker (but then how do I get it submitted with everything else)? Submit seperate :deadline_day and :deadline_hour properties to the controller, and somehow have the controller combine them to save a new property? Some way of saving this stuff in two intermediary variables in the view, and submitting that to :deadline?