andywww

Activity Graph

Page 1 of 13 | Next »

2019-08-19

[17:48:09] andywww: has joined #RubyOnRails
[18:39:36] andywww: Quit: andywww

2019-08-18

[19:20:42] andywww: has joined #RubyOnRails
[19:36:35] andywww: Quit: andywww
[21:30:51] andywww: has joined #RubyOnRails
[21:37:15] andywww: Quit: andywww

2019-08-04

[13:41:12] andywww: has joined #RubyOnRails
[14:01:34] andywww: Quit: andywww
[14:16:01] andywww: has joined #RubyOnRails
[14:20:55] andywww: Quit: andywww
[14:48:05] andywww: has joined #RubyOnRails
[14:48:15] andywww: Client Quit

2019-06-30

[21:18:59] andywww: has joined #RubyOnRails
[21:34:19] andywww: Quit: andywww

2019-05-07

[09:34:53] andywww: has joined #RubyOnRails
[09:37:33] andywww: i have a situation where I want to use some fairly common development gems (bullet, better_errors and binding of caller) on some projects that I work on along side some colleagues, I want to use these gems but my colleagues are complaining that they have to install them also with them being in the gem file, is it at all possible to have a local ~/.<something> file that bundler will take notice of on my local machine only and
[09:37:34] andywww: pollute the project for others?
[09:43:02] andywww: yeah just reading that now, thanks
[09:44:19] andywww: has left #RubyOnRails: ()
[09:44:30] andywww: has joined #RubyOnRails
[09:48:20] andywww: hmm, that still forces them to install
[09:48:23] andywww: just not to use
[09:49:08] andywww: running bundle still installs the gems, not to worry I’ll just have to remember to remove the entries before commit
[10:05:07] andywww: https://hastebin.com/xodosihoza.rb
[10:05:51] andywww: am i missing something obvious?
[10:07:14] andywww: possibly a 2+ option
[10:07:27] andywww: i’m fixed to bundler 1.17
[10:08:50] andywww: hmm, no, it was introduced in 1.10
[10:24:28] andywww: okay I see whats happening, the BUNDLE_WITH is getting added to the remembered params, putting that line in my local ~/.bundle/config (i hope) will make it run for all projects bundled locally but not for others
[11:05:08] andywww: has left #RubyOnRails: ()

2019-04-15

[19:01:30] andywww: has joined #RubyOnRails
[19:20:44] andywww: Quit: andywww

2019-04-10

[18:47:14] andywww: has joined #RubyOnRails
[18:51:26] andywww: Client Quit
[19:20:32] andywww: has joined #RubyOnRails
[19:25:57] andywww: Quit: andywww
[19:40:56] andywww: has joined #RubyOnRails
[19:51:40] andywww: Quit: andywww

2019-04-09

[23:10:19] andywww: has joined #RubyOnRails
[23:29:55] andywww: Quit: andywww

2019-03-29

[17:13:05] andywww: has joined #RubyOnRails
[17:14:48] andywww: i’m using action cable to push a message in which the partial rendered uses a active storage variant which keeps defaulting to example.org/<variant path>
[17:15:19] andywww: i’ve changed everything in ApplicationController.renderer.defaults to read correctly
[17:15:30] andywww: i just can’t seem to find where the defaults are being set
[17:15:41] andywww: anyone had this problem?
[18:24:12] andywww: Quit: andywww
[19:07:43] andywww: has left #RubyOnRails: ()
[19:07:43] andywww: has joined #RubyOnRails

2019-03-28

[14:33:54] andywww: has joined #RubyOnRails
[15:27:32] andywww: Quit: andywww

2019-03-25

[02:32:15] andywww: Quit: Page closed

2019-03-24

[10:48:46] andywww: has joined #elixir-lang

2019-03-22

[21:09:14] andywww: has joined #RubyOnRails
[21:09:18] andywww: Client Quit

2019-03-20

[00:16:04] andywww: Quit: andywww
[00:16:51] andywww: has joined #RubyOnRails
[00:24:57] andywww: Quit: andywww

2019-03-19

[06:50:52] andywww: has joined #RubyOnRails
[07:47:54] andywww: Quit: andywww
[12:11:35] andywww: has joined #RubyOnRails
[12:25:49] andywww: Quit: andywww
[16:04:15] andywww: has joined #RubyOnRails
[16:06:26] andywww: Client Quit
[16:30:45] andywww: has joined #RubyOnRails
[17:11:52] andywww: Quit: andywww
[17:26:35] andywww: has joined #RubyOnRails
[18:12:24] andywww: Quit: andywww
[19:03:36] andywww: has joined #RubyOnRails
[19:03:58] andywww: Client Quit
[19:49:34] andywww: has joined #RubyOnRails
[19:51:13] andywww: what are your go to gems for monitoring practices? stuff like rubocop, brakeman and bullet?
[20:02:44] andywww: Quit: andywww
[21:18:52] andywww: has joined #RubyOnRails
[21:27:02] andywww: Quit: andywww
[23:43:50] andywww: has joined #RubyOnRails
[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
[23:45:57] andywww: is there anything creative i can do with filter_parameters to help with this?

2019-03-18

[19:21:30] andywww: has joined #RubyOnRails
[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:24:39] andywww: can you even do that with form data?
[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
[20:18:20] andywww: Quit: andywww
[20:34:31] andywww: has joined #RubyOnRails
[20:34:41] andywww: Client Quit
[21:04:33] andywww: has joined #RubyOnRails
[21:09:56] andywww: Quit: andywww
[21:54:30] andywww: has joined #RubyOnRails
[23:23:24] andywww: Quit: andywww

2019-03-16

[21:52:21] andywww: has joined #RubyOnRails
[21:54:23] andywww: n00b action cable question.. is there any way a user can manipulate the javascript to create a connection/eavesdrop on another channel other than those dictated in the channel object? I currently have: https://hastebin.com/hosuyumedo.rb
[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?
[22:22:36] andywww: Quit: andywww

2019-03-13

[09:52:16] andywww: has joined #RubyOnRails
[10:12:58] andywww: Quit: andywww
[10:15:11] andywww: has joined #RubyOnRails
[10:23:21] andywww: Quit: andywww
[10:26:27] andywww: has joined #RubyOnRails
[10:27:19] andywww: Client Quit
[10:28:06] andywww: Client Quit
[10:28:06] andywww: has joined #RubyOnRails

2019-03-12

[14:03:25] andywww: has joined #RubyOnRails
[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:06:51] andywww: what would be the best place to put something like that?
[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:09:37] andywww: Quit: andywww
[15:09:06] andywww: has joined #RubyOnRails
[15:32:30] andywww: Quit: andywww
[16:04:42] andywww: has joined #RubyOnRails
[16:11:04] andywww: Quit: andywww
[17:48:27] andywww: has joined #RubyOnRails
[18:00:45] andywww: Quit: andywww
[18:36:41] andywww: Client Quit
[18:36:41] andywww: has joined #RubyOnRails
[19:14:02] andywww: has joined #RubyOnRails
[19:35:10] andywww: Quit: andywww
[19:44:39] andywww: has joined #RubyOnRails
[19:51:44] andywww: Quit: andywww

2019-03-09

[12:48:56] andywww: has joined #RubyOnRails
[12:51:38] andywww: Client Quit
[13:12:41] andywww: has joined #RubyOnRails
[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
[15:26:56] andywww: Quit: andywww
[15:33:09] andywww: has joined #RubyOnRails
[15:55:43] andywww: Quit: andywww

2019-03-08

[18:25:33] andywww: has joined #RubyOnRails
[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:29:51] andywww: 0 documentation, 0 spec, lots of cruft
[18:29:57] andywww: its a bit of a pita
[18:31:14] andywww: i’m currently in the process of getting it running locally
[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:08] andywww: so i thought before immersing i’d ask you guys if you’ve got any decent tips
[18:32:15] andywww: yeah tell me about it
[18:32:42] andywww: it also gives me the impression they didn’t manage the initial development particularly well
[18:32:47] andywww: yeah luckily
[18:38:32] andywww: well, 2 seriously, 1 tinkering
[18:39:48] andywww: hah so you decided to fight the good fight from the inside?
[18:40:42] andywww: mostly employed but yeah this particular project is freelance
[18:41:06] andywww: are you guys uk based?
[19:34:51] andywww: Quit: andywww
[22:23:12] andywww: has joined #RubyOnRails
[22:42:22] andywww: Quit: andywww
[23:46:45] andywww: has joined #RubyOnRails
[23:53:01] andywww: Quit: andywww

2019-03-07

[15:06:25] andywww: has joined #RubyOnRails
[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
[16:44:38] andywww: Quit: andywww
[17:17:09] andywww: has joined #RubyOnRails
[17:28:13] andywww: Quit: andywww
[18:56:31] andywww: has joined #RubyOnRails
[19:56:46] andywww: Quit: andywww

2019-03-05

[18:22:07] andywww: has joined #RubyOnRails
[18:22:22] andywww: typically would you put preloads in your query objects?
[18:23:05] andywww: it feels tidier but it makes it feel a bit presumptuous
[19:45:24] andywww: Quit: andywww
[19:56:48] andywww: has joined #RubyOnRails
[19:56:53] andywww: Client Quit
[22:06:13] andywww: has joined #RubyOnRails
[22:15:24] andywww: Quit: andywww

2019-02-25

[14:31:46] andywww: has joined #RubyOnRails
[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
[14:34:56] andywww: am i missing something obvious?
[14:36:41] andywww: Quit: andywww
[14:51:01] andywww: has joined #RubyOnRails
[14:55:57] andywww: Quit: andywww

2019-02-22

[12:26:59] andywww: has joined #RubyOnRails
[12:33:21] andywww: has joined #ruby
[12:34:10] andywww: I’ trying to get my head around composition and have the following:
[12:34:11] andywww: https://hastebin.com/difusaqiju.rb
[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:35:26] andywww: or is there a better way to do it?
[12:35:43] andywww: haild = valid
[12:36:17] andywww: so theres nothing ‘wrong’ with doing it that way then?
[12:36:29] andywww: you wouldn’t wince if you saw that approach in a project?
[12:36:55] andywww: how might you do it different?
[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
[12:41:04] andywww: and I want to be able to add to those formats over time
[12:41:49] andywww: so the XHandler classes are for each format, if that makes sense
[12:42:48] andywww: okay thanks
[13:10:05] andywww: how would you introduce a CHandler?
[13:22:27] andywww: brill, thanks for the input
[13:52:12] andywww: Quit: andywww

2019-02-20

[14:32:14] andywww: has joined #RubyOnRails
[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
[14:33:04] andywww: but having just a method that returns a string feels wrong
[14:33:09] andywww: is there a better way to do this
[14:33:45] andywww: or a more ruby way of doing it should I say
[15:15:09] andywww: Quit: andywww
[15:41:35] andywww: has joined #RubyOnRails
[15:41:41] andywww: Client Quit

2019-02-14

[11:58:00] andywww: has joined #RubyOnRails
[11:59:23] andywww: I wondered if someone could give me a hand with virtus
[11:59:25] andywww: https://hastebin.com/gonoyocani.rb
[11:59:46] andywww: this is giing me:
[11:59:48] andywww: undefined method `user' for DocumentSelectForm:Class
[12:00:53] andywww: DocumentSelectForm doesn’t seem to want to read its own attributes
[12:01:06] andywww: has joined #ruby
[12:01:54] andywww: cross posting from rails channel, i wondered if someone could help me out with virtus:
[12:01:55] andywww: https://hastebin.com/gonoyocani.rb
[12:02:35] andywww: i can’t seem to access the attributes that i passed in with DocumentSelectForm
[12:09:33] andywww: https://hastebin.com/gedifuxego.rb
[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
[12:51:53] andywww: no, i was trying to access the attribute value
[12:53:57] andywww: having an attr_accessor for application and user doesn’t seem to work either
[12:58:48] andywww: so it needs to go in initialize somehow then
[13:01:33] andywww: i need to be able to extend them dynamically though
[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:10:33] andywww: so i know which user the checkbox is for
[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:12:13] andywww: if you can think of a better way of doing it i’d appreciate hearing it?
[13:14:02] andywww: not really because DocumentSelectForm isn’t a model, hense the mess
[13:14:28] andywww: so for each document_type, there needs to be a checkbox
[13:14:31] andywww: but they change over time
[13:15:12] andywww: no i appreciate that, no problem, thanks
[13:19:37] andywww: but then what is a form object if its not a model without a database back?
[13:20:35] andywww: especially when extending virtus
[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
[14:40:36] andywww: Quit: andywww
[16:18:42] andywww: has joined #RubyOnRails
[16:19:34] andywww: Client Quit
[18:00:04] andywww: has joined #RubyOnRails
[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.
[18:04:07] andywww: Client Quit

2019-02-13

[12:38:17] andywww: has joined #RubyOnRails
[13:55:27] andywww: Quit: andywww

2019-02-06

[19:00:08] andywww: has joined #RubyOnRails
[19:00:24] andywww: can someone give me a hand with preloading please
[19:00:28] andywww: https://hastebin.com/olezenijux.sql
[19:01:19] andywww: when calling wiki.json it won’t acknowledge the preloading on the index action
[19:01:26] andywww: am i doing something wrong?
[19:15:40] andywww: hmm, found it, preload(:user) should have been preload!(:user)
[19:47:49] andywww: has left #RubyOnRails: ()