Page 1 of 13 | Next »
[19:51:13] andywww: what are your go to gems for monitoring practices? stuff like rubocop, brakeman and bullet?
[23:45:18] andywww: my system allows admins to create users and ping them an email with login details but the auto generated password is showing in plain text in the log data when it shows the email being sent
[19:23:24] andywww: on the front end I’m using Vue.js’s state to maintaining an array of associated model’s IDs that I want to create a associations for
[19:24:09] andywww: how can i post an array as part of a form without having to generate the form elements to bind them to?
[19:28:15] andywww: at the minute I’m using a hidden input, splatting the array contents into the field on submit then splitting it on the commas at the rails side but it feels a bit hacky
[21:56:22] andywww: if my current_chatter does not have an associated application, they shouldn’t be able to connect to chat:applicationXYZ if it isn’t their associated application, should they?
[14:06:18] andywww: i have a sidekiq job queue which expires downloads within 24 hours of them being created, and in development I want to make that 1 minute. Is that time span typically something you’d put in the environment specific config files something like config.my_var = 1.minute?
[14:08:20] andywww: at the minute its in, say, /config/environments/development.rb but I’m not sure if thats the best place
[14:33:16] andywww: on action cable, with a connection sitting above the channels and doing the authenticating, what is to stop an authenticated user from manually connecting to another channel in the browser console and eavesdropping on another (for example) chat session?
[14:33:49] andywww: what I’ve read so far doesn’t seem to suggest it is possible to authenticate at the channel/room level
[18:26:11] andywww: anyone got any practical tips for getting up to speed when inheriting existing fairly large rails projects?
[18:29:21] andywww: when a previous developer has left and you get brought on as the new dev to look after the system
[18:31:42] andywww: but i’ve left it for tonight, the last time i did this it was a nightmare and this time even the client is warning me it is a nightmare
[18:32:42] andywww: it also gives me the impression they didn’t manage the initial development particularly well
[15:10:30] andywww: anyone fancy helping me out a bit with an ordering through a joining table query?
[15:10:39] andywww: I have the following: Users—< UserApplications >—Applications and would like to select all unique Applicatons ordered by the _first_ User’s second_name attribute
[15:10:48] andywww: i can work it out when I’ve got a Users >—< Applications but the joining table has got me stumped
[14:33:51] andywww: I’m having a bit of an issue with representations coming from rails/active_storage/representations after deploying a new release with capistrano
[14:34:42] andywww: but i can’t seem to find the directory structure in the app that I need to link with cap
[12:34:36] andywww: that is haild code and works, but I’m not sure if its the correct way to go stylistically?
[12:35:21] andywww: is it okay/common to pass the class in like that so the parent knows what to instantiate?
[12:40:48] andywww: sorry, the particular instance I’ve applied this to are audio stream formats where the parent object is a broadcast which has many streams of different audio formats
[14:32:54] andywww: I want to return a string value for a particular method call depending on the class that implements it: https://hastebin.com/imohiqomah.rb
[12:01:54] andywww: cross posting from rails channel, i wondered if someone could help me out with virtus:
[12:11:30] andywww: i’m open to suggestions on if that can be factored better btw, I’m about at the edge of my comprehension here
[12:13:18] andywww: I seem to be able to populate the attributes in ChaserDetailForm using the application i pass in from the controller but I don’t seem to be able to access the application or user I pass to DocumentSelectForm from the chaser detail
[12:21:31] andywww: its like the proc seems to be able to access the attributes of the class but calling them directly can’t
[13:01:56] andywww: so that the attribute name can include the ID of the user for the edit page form
[13:03:03] andywww: https://github.com/solnic/virtus#default-values-on-dynamically-extended-instances
[13:09:17] andywww: what I’m trying to do is, an loan_application has multiple users (applicants), and I want to build a form object that allows me to have a single form that can collect check box results for each user
[13:10:09] andywww: but I need to loop through the users on the application form object to make sure I render a set of form elements that I can access later by user ID
[13:11:56] andywww: I’m looking ideally for something like = f.text_field, :drivers_licence_1 so that I can see that user(1) has a check in the checkbox
[13:24:21] andywww: right what i think i’m going to do then is set a field for the ID then to an accepts_nested_attributes for on multiple fields_for rather than trying to fist the ID into the attribute names
[18:01:52] andywww: tbuehlmann: thanks for putting me back on the straight and narrow, turns out fields_for takes an options hash which allows you to prefix the form fields so I put the ID in there, its much tidier now.
[17:43:55] andywww: when spitting out the different variants on active storage, i’ve read its not ideal to call variant in the view as its render blocking
[17:44:26] andywww: at the risk of sounding stupid, where else would you call it? it seems a bit excessive making ajax calls for them?
[15:15:29] andywww: I’m after a bit of advice on how to absolve myself of the responsibility of any breaches of a piece of software I’m building for an agency
[17:00:29] andywww: has anyone run into any problems with the passenger team version of nginx? I can’t seem to get it to work with Ubuntu 18+/Debian 9+
[17:01:37] andywww: there are only a handful of commands to run if you follow the passenger website but it seems neither are playing ball