hnanon

Activity Graph

Page 1 of 20 | Next »

2019-04-23

[00:49:30] hnanon: has joined #RubyOnRails
[01:56:13] hnanon: Ping timeout: 250 seconds

2019-04-22

[21:16:43] hnanon: has joined #RubyOnRails
[23:02:57] hnanon: Ping timeout: 245 seconds

2019-03-24

[15:49:44] hnanon: has joined #RubyOnRails
[15:50:40] hnanon: Remote host closed the connection

2019-03-23

[01:27:35] hnanon: has joined #RubyOnRails
[01:53:00] hnanon: Ping timeout: 250 seconds
[03:28:45] hnanon: has joined #RubyOnRails
[04:25:58] hnanon: Ping timeout: 250 seconds
[10:30:35] hnanon: has joined #RubyOnRails
[12:23:56] hnanon: Ping timeout: 250 seconds
[15:31:35] hnanon: has joined #RubyOnRails
[16:25:18] hnanon: Ping timeout: 250 seconds

2019-03-22

[01:39:19] hnanon: has joined #RubyOnRails
[04:20:27] hnanon: Ping timeout: 252 seconds
[14:22:15] hnanon: has joined #RubyOnRails
[14:47:09] hnanon: Ping timeout: 250 seconds
[15:18:00] hnanon: has joined #RubyOnRails
[16:14:56] hnanon: Ping timeout: 250 seconds
[17:50:11] hnanon: has joined #RubyOnRails
[18:48:09] hnanon: Ping timeout: 246 seconds

2019-03-21

[00:17:17] hnanon: has joined #RubyOnRails
[00:17:44] hnanon: Do I need to run app:update when upgrading from 5.2.2 to 5.2.2.1?
[00:42:39] hnanon: havenwood, Thanks.
[01:33:18] hnanon: Ping timeout: 252 seconds
[02:23:59] hnanon: has joined #RubyOnRails
[04:26:18] hnanon: Ping timeout: 264 seconds
[12:58:20] hnanon: has joined #RubyOnRails
[13:22:51] hnanon: Ping timeout: 252 seconds
[13:23:31] hnanon: has joined #RubyOnRails
[13:29:27] hnanon: Ping timeout: 252 seconds
[13:54:48] hnanon: has joined #RubyOnRails
[14:46:18] hnanon: Ping timeout: 252 seconds
[15:32:53] hnanon: has joined #RubyOnRails
[15:46:19] hnanon: Remote host closed the connection
[15:46:33] hnanon: has joined #RubyOnRails
[17:26:10] hnanon: Ping timeout: 252 seconds
[19:15:52] hnanon: has joined #RubyOnRails
[20:12:03] hnanon: Ping timeout: 252 seconds
[21:11:22] hnanon: has joined #RubyOnRails
[21:29:03] hnanon: Ping timeout: 252 seconds
[21:30:23] hnanon: has joined #RubyOnRails
[22:40:33] hnanon: Ping timeout: 252 seconds

2019-03-20

[18:28:39] hnanon: has joined #RubyOnRails
[18:47:58] hnanon: Ping timeout: 245 seconds
[18:48:10] hnanon: has joined #RubyOnRails
[19:55:40] hnanon: Ping timeout: 255 seconds
[19:58:31] hnanon: has joined #RubyOnRails
[20:21:43] hnanon: Ping timeout: 245 seconds

2019-03-16

[00:25:55] hnanon: has joined #RubyOnRails
[01:48:39] hnanon: Ping timeout: 252 seconds
[15:53:16] hnanon: has joined #RubyOnRails
[16:43:00] hnanon: Ping timeout: 252 seconds

2019-03-15

[07:52:18] hnanon: Ping timeout: 252 seconds
[14:07:10] hnanon: has joined #RubyOnRails
[17:03:24] hnanon: Ping timeout: 252 seconds
[20:00:09] hnanon: has joined #RubyOnRails
[22:29:00] hnanon: Ping timeout: 250 seconds

2019-03-14

[08:56:45] hnanon: Ping timeout: 252 seconds
[12:32:13] hnanon: has joined #RubyOnRails
[14:42:48] hnanon: Remote host closed the connection
[14:43:16] hnanon: has joined #RubyOnRails
[16:30:07] hnanon: Ping timeout: 240 seconds
[16:49:28] hnanon: has joined #RubyOnRails
[19:37:01] hnanon: Ping timeout: 246 seconds
[22:36:57] hnanon: has joined #RubyOnRails

2019-03-13

[00:51:53] hnanon: Read error: Connection reset by peer
[00:52:20] hnanon: has joined #RubyOnRails
[02:41:45] hnanon: Ping timeout: 252 seconds
[02:47:47] hnanon: has joined #RubyOnRails
[06:13:30] hnanon: Ping timeout: 252 seconds
[16:37:28] hnanon: has joined #RubyOnRails
[17:38:51] hnanon: Ping timeout: 252 seconds
[18:31:12] hnanon: has joined #RubyOnRails
[22:22:33] hnanon: Ping timeout: 245 seconds
[23:45:31] hnanon: has joined #RubyOnRails

2019-03-12

[02:27:00] hnanon: Ping timeout: 252 seconds
[02:27:26] hnanon: has joined #RubyOnRails
[03:00:33] hnanon: Ping timeout: 252 seconds
[14:38:55] hnanon: has joined #RubyOnRails
[15:00:48] hnanon: Remote host closed the connection
[15:01:16] hnanon: has joined #RubyOnRails
[15:02:48] hnanon: Remote host closed the connection
[22:55:32] hnanon: has joined #RubyOnRails

2019-03-11

[01:29:21] hnanon: Ping timeout: 252 seconds
[16:06:08] hnanon: has joined #RubyOnRails
[16:46:12] hnanon: Ping timeout: 252 seconds
[17:23:40] hnanon: has joined #RubyOnRails
[20:37:31] hnanon: Ping timeout: 255 seconds
[22:27:05] hnanon: has joined #RubyOnRails

2019-03-10

[00:44:04] hnanon: has joined #RubyOnRails
[03:26:36] hnanon: Ping timeout: 252 seconds
[03:38:15] hnanon: has joined #RubyOnRails
[03:56:57] hnanon: Remote host closed the connection
[20:39:56] hnanon: has joined #RubyOnRails
[21:52:00] hnanon: Remote host closed the connection
[21:52:28] hnanon: has joined #RubyOnRails
[22:18:00] hnanon: Remote host closed the connection
[22:18:24] hnanon: has joined #RubyOnRails
[22:31:42] hnanon: Ping timeout: 252 seconds
[23:12:22] hnanon: has joined #RubyOnRails

2019-03-09

[00:42:48] hnanon: Ping timeout: 252 seconds
[02:10:53] hnanon: has joined #RubyOnRails
[06:26:33] hnanon: Ping timeout: 252 seconds
[15:08:56] hnanon: has joined #RubyOnRails
[17:55:42] hnanon: Ping timeout: 252 seconds
[17:59:48] hnanon: has joined #RubyOnRails
[18:10:26] hnanon: Read error: Connection reset by peer

2019-03-08

[01:54:41] hnanon: has joined #RubyOnRails
[02:04:18] hnanon: Ping timeout: 252 seconds
[02:42:26] hnanon: has joined #RubyOnRails
[03:02:12] hnanon: After installing webpacker in an updated 5.2 app, I see a node_modules directory.
[03:02:52] hnanon: That's normal?
[03:03:07] hnanon: I'm trying to get stimulus working with rails.
[03:03:29] hnanon: I'm getting this error: Webpacker::Manifest::MissingEntryError
[03:03:50] hnanon: 4. Your webpack configuration is not creating a manifest.
[03:04:10] hnanon: But doesn't rails use yarn now, not npm?
[03:04:28] hnanon: (I installed yarn)
[03:05:51] hnanon: Do you know where the manifest file should be created?
[03:06:03] hnanon: dachi, I see.
[03:06:23] hnanon: It's not being created.
[03:07:03] hnanon: I only have the default rails files in public
[03:07:12] hnanon: no packs directory
[03:07:44] hnanon: Ok, thanks anyway,
[03:09:01] hnanon: I followed instructions from here: https://github.com/rails/webpacker#installation
[07:55:12] hnanon: Ping timeout: 252 seconds
[15:04:07] hnanon: has joined #RubyOnRails
[17:35:27] hnanon: Ping timeout: 252 seconds
[18:23:35] hnanon: has joined #RubyOnRails
[18:37:32] hnanon: Ping timeout: 245 seconds
[23:40:07] hnanon: has joined #RubyOnRails

2019-02-21

[01:51:29] hnanon: has joined #RubyOnRails
[01:53:51] hnanon: I have a States in a select form field. I want to display a checkbox collection of Cities depending on which state is selected. So, I imagine I need to use some javascript.
[01:54:16] hnanon: Is this a use case for something like stimulus or vue?
[01:54:42] hnanon: Can someone point me to an article or some docs I can read to help with that?
[02:28:54] hnanon: Quit: Page closed

2019-02-18

[03:17:44] hnanon: has joined #RubyOnRails
[03:18:27] hnanon: If I have an inclusion validation, for example, is a presence validation redundant?
[04:28:41] hnanon: Ping timeout: 256 seconds

2019-02-08

[06:46:43] hnanon: has joined #RubyOnRails
[06:47:06] hnanon: Is there a ruby equivalent to Python's requests library?
[06:49:59] hnanon: Looks like httparty is more in line with python's requests.
[06:52:46] hnanon: RestClient looks interesting too.
[06:55:02] hnanon: catbusters, haxx0r : Thanks.
[07:23:28] hnanon: Quit: Page closed

2019-01-16

[00:10:47] hnanon: has joined #RubyOnRails
[00:11:44] hnanon: Is it a good idea to sprinkle Rails.logger.info messages within ifs and elses?
[00:11:59] hnanon: (specifically, within a job)
[01:40:17] hnanon: Ping timeout: 256 seconds

2019-01-10

[12:51:43] hnanon: has joined #RubyOnRails
[12:57:44] hnanon: I have this piece of code: https://dpaste.de/G9Oy
[12:58:10] hnanon: How can I get the actual index number in the params, instead of ":index"?
[12:59:38] hnanon: Instead of {:index=>{:invoiceable_type=>"Subscription", :invoiceable_id=>4,...
[13:00:11] hnanon: Something like {"0"=>{:invoiceable_type=>"Subscription", :invoiceable_id=>4,...
[13:03:42] hnanon: This works: { index => { "invoiceable_type": "Subscription", "invoiceable_id": subscription_id...
[13:07:08] hnanon: Quit: Page closed

2018-12-31

[08:54:59] hnanon: has joined #RubyOnRails
[08:55:48] hnanon: I have a question about how fast records get created in a db...
[08:56:11] hnanon: For example, I'm using the Twilio API to create call records...
[08:56:24] hnanon: When a call is answered, a Call record is created.
[08:56:48] hnanon: After the call, Twilio posts to a callback URL with a link of the call recording...
[08:57:19] hnanon: I want to update the call record with that URL.
[08:57:40] hnanon: Can I be sure that the call record will be created in time to find it for the update?
[10:27:15] hnanon: Quit: Page closed

2018-12-28

[11:45:02] hnanon: has joined #RubyOnRails
[11:45:56] hnanon: Can I do this...
[11:46:00] hnanon: @subscription.forwarding_number_lookup(@subscription.forwarding_numbers.first)
[11:46:11] hnanon: in my Subscriptions create action?
[11:47:20] hnanon: In my Subscription model I have def forwarding_number_lookup(forwarding_number)
[11:47:29] hnanon: but I get the following error:
[11:49:02] hnanon: wrong number of arguments (given 0, expected 1)
[11:49:27] hnanon: pointing to this line: def forwarding_number_lookup(forwarding_number)
[11:50:11] hnanon: But the argument is right there.
[11:53:22] hnanon: validate :forwarding_number_lookup
[11:53:36] hnanon: That's a custom validation if that matters.
[12:16:36] hnanon: I guess my question is can I pass a nested object as an argument?
[12:18:43] hnanon: I think the problem is because the object is not persisted yet?
[12:32:09] hnanon: Ping timeout: 256 seconds

2018-12-13

[00:54:53] hnanon: has joined #RubyOnRails
[00:56:41] hnanon: If I have an array: ["1234", "1123", "2345"], how can I get "1123", the value that has two consecutive identical values?
[00:57:09] hnanon: identical characters or digits, I should say.
[01:05:27] hnanon: Radar: Let me see...
[01:09:52] hnanon: Radar: each_cons is cool.
[01:10:49] hnanon: Radar: While I have you here, do you agree with this: https://medium.com/planet-arkency/the-biggest-rails-code-smell-you-should-avoid-to-keep-your-app-healthy-a61fd75ab2d3
[02:00:50] hnanon: Radar, what about this comment: https://medium.com/@vemv/if-you-care-about-transactionality-you-cannot-beat-after-commit-in-particular-38a742efbeb3
[02:07:01] hnanon: sevenseacat: That's how I tend view it, personally.
[02:09:04] hnanon: Hmm...it's a little bothersome that the "Rails Way" is not necessarily the best way, at least in the opinion of you two.
[02:10:08] hnanon: Radar: I know. But I'm sure you two have your opinions for good reasons.
[02:10:55] hnanon: One would think there would at least some general consensus, at least about the major features of Rails.
[02:12:00] hnanon: Radar: What about the idea that Rails is the way it is because it's battle-tested by Basecamp?
[02:12:36] hnanon: They had problems and DHH shaped Rails to solve those problems.
[02:13:07] hnanon: Like including ActiveStorage, for example.
[03:05:17] hnanon: Ping timeout: 256 seconds

2018-12-11

[05:59:05] hnanon: has joined #RubyOnRails
[06:00:15] hnanon: I have a nested form. My subscriptions controller has @subscription.notifications.build
[06:00:35] hnanon: There will only be two notifications.
[06:00:55] hnanon: The first will be for calls. The second will be for emails.
[06:01:32] hnanon: It's working fine, as is. However, I want to add a short description of for each notification field.
[06:01:41] hnanon: How can I do that?
[06:02:14] hnanon: When I add both nested fields manually, I get duplicate fields.
[06:07:36] hnanon: When I try the following, the second field value (email) overwrites the first (phone number):
[06:07:37] hnanon: https://dpaste.de/wvOM
[06:08:08] hnanon: In that case, both fields' name value is subscription[notifications_attributes][0][value]
[06:15:45] hnanon: I got it working.
[06:16:02] hnanon: I ended up putting the second field in a second <%= form.fields_for :notifications do |notification| %>
[06:55:09] hnanon: Quit: Page closed

2018-11-23

[07:20:37] hnanon: Remote host closed the connection
[07:20:57] hnanon: has joined #RubyOnRails
[07:22:07] hnanon: Read error: Connection reset by peer
[07:22:28] hnanon: has joined #RubyOnRails
[18:09:16] hnanon: Ping timeout: 260 seconds

2018-11-22

[00:49:47] hnanon: Ping timeout: 276 seconds
[05:14:57] hnanon: has joined #RubyOnRails
[06:52:36] hnanon: I want to add a Facebook pixel to the show view of an order, upon order completion. This same show page (with a unique, hard-to-guess slug as the route param is also where the customer goes to check their order status.
[06:52:54] hnanon: I don't want the facebook pixel to trigger every time they check their order status.
[06:54:14] hnanon: Should I just show the pixel if the created_at attribute is > Time.now - 5 seconds or so?
[10:43:53] hnanon: Ping timeout: 250 seconds
[19:57:08] hnanon: has joined #RubyOnRails
[21:50:06] hnanon: Ping timeout: 260 seconds
[23:08:24] hnanon: has joined #RubyOnRails

2018-11-21

[00:39:38] hnanon: Ping timeout: 276 seconds
[02:22:45] hnanon: has joined #RubyOnRails
[05:35:57] hnanon: Read error: Connection reset by peer
[05:36:22] hnanon: has joined #RubyOnRails
[07:48:22] hnanon: Ping timeout: 250 seconds
[14:53:44] hnanon: has joined #RubyOnRails
[16:18:12] hnanon: Ping timeout: 252 seconds
[16:27:58] hnanon: has joined #RubyOnRails
[17:38:02] hnanon: Ping timeout: 250 seconds
[23:19:40] hnanon: has joined #RubyOnRails

2018-11-20

[20:52:23] hnanon: Read error: Connection reset by peer
[20:53:05] hnanon: has joined #RubyOnRails
[22:25:53] hnanon: Ping timeout: 245 seconds
[22:32:59] hnanon: has joined #RubyOnRails
[23:32:38] hnanon: Can I update nested attributes in an action before saving the parent?
[23:32:58] hnanon: Or, assign attributes, actually (not update).