tjbiddle

Activity Graph

Page 1 of 11 | Next »

2017-06-06

[18:44:19] tjbiddle: has joined #ruby-offtopic
[18:44:19] tjbiddle: has joined #ruby
[18:44:19] tjbiddle: has joined #RubyOnRails
[19:58:06] tjbiddle: Quit: tjbiddle

2016-07-29

[18:56:26] tjbiddle: has joined #ruby-offtopic
[18:56:26] tjbiddle: has joined #ruby
[18:56:26] tjbiddle: has joined #RubyOnRails
[18:56:48] tjbiddle: Hi everyone!
[18:57:16] tjbiddle: Bit of a JS noob; but Rails precompile seems to break on `(item.items.map(function(obj) { return parseFloat(obj.price) })).reduce((a, b) => a + b, 0);` with the error “ExecJS::ProgramError: Unexpected token: operator (>)” - Works fine in development
[18:57:37] tjbiddle: I’m using that as a means of totalling up a few items from a JSON response.
[19:25:56] tjbiddle: Answer to my question: The precompiler seems to have not agreed with the lambda for some reason - just rewrote it
[19:40:37] tjbiddle: Quit: tjbiddle
[19:46:19] tjbiddle: has joined #ruby-offtopic
[19:46:19] tjbiddle: has joined #ruby
[19:46:19] tjbiddle: has joined #RubyOnRails
[19:48:47] tjbiddle: Client Quit
[19:57:19] tjbiddle: has joined #ruby-offtopic
[19:57:19] tjbiddle: has joined #ruby
[19:57:19] tjbiddle: has joined #RubyOnRails
[20:38:31] tjbiddle: Quit: tjbiddle
[20:55:34] tjbiddle: has joined #ruby-offtopic
[20:55:34] tjbiddle: has joined #ruby
[20:55:34] tjbiddle: has joined #RubyOnRails
[20:56:23] tjbiddle: Client Quit

2016-07-27

[01:35:44] tjbiddle: Quit: tjbiddle
[02:47:49] tjbiddle: has joined #ruby
[02:47:49] tjbiddle: has joined #RubyOnRails
[02:47:53] tjbiddle: has joined #ruby-offtopic
[05:14:46] tjbiddle: Quit: tjbiddle
[14:42:28] tjbiddle: has joined #ruby-offtopic
[14:42:28] tjbiddle: has joined #ruby
[14:42:28] tjbiddle: has joined #RubyOnRails
[14:58:15] tjbiddle: Quit: tjbiddle

2016-07-26

[21:02:02] tjbiddle: has joined #ruby-offtopic
[21:02:02] tjbiddle: has joined #ruby
[21:02:02] tjbiddle: has joined #RubyOnRails

2016-07-24

[00:46:58] tjbiddle: has joined #ruby-offtopic
[00:46:58] tjbiddle: has joined #ruby
[00:46:58] tjbiddle: has joined #RubyOnRails
[06:39:46] tjbiddle: Quit: tjbiddle
[16:50:51] tjbiddle: has joined #ruby-offtopic
[16:50:51] tjbiddle: has joined #ruby
[16:50:51] tjbiddle: has joined #RubyOnRails
[16:51:11] tjbiddle: Client Quit

2016-07-23

[23:50:10] tjbiddle: has joined #ruby-offtopic
[23:50:10] tjbiddle: has joined #ruby
[23:50:10] tjbiddle: has joined #RubyOnRails
[23:58:34] tjbiddle: Quit: tjbiddle

2016-07-21

[16:35:33] tjbiddle: has joined #ruby
[16:35:33] tjbiddle: has joined #RubyOnRails
[16:37:11] tjbiddle: Hey guys. Is it a bad practice to have a use-case where you would never use a mailer or model directly, but only through a service object? Example: Always call the service object to mail people about their canceled subscription so it always checks if they’re subscribed to those notifications
[16:37:58] tjbiddle: Haha, Keepbro just ask
[16:38:37] tjbiddle: sevenseacat: Ha! You gave me crap for being gender-specific before ;-)
[16:38:44] tjbiddle: Seeeeeeee :)
[16:39:07] tjbiddle: sevenseacat: Shit!
[16:39:23] tjbiddle: Point being - I still consider guys gender agnostic. Just saying; you gave me crap and you do it too
[16:40:04] tjbiddle: You…. you.. you just said guys like 6 times
[16:40:59] tjbiddle: jhass: Is that a new channel? Because I swear this place is off-topic half the time I come in ha
[16:43:14] tjbiddle: offtopic channel I go.
[16:43:14] tjbiddle: tycoon177: As I said *I* consider it gender agnostic. If I walk into a room with guys and gals - I’ll still say hey guys. If it was all ladies, I say hey ladies. My girl friends would do the same thing. Geographic differences probably. I’ve never run into someone offended by it; was just pointing it out to sevenseacat since (I think - she?) just did the same and was making a joke (that was not received apparently). Anyhow -
[16:43:28] tjbiddle: Can anyone shed like on my service object question/discussion though?
[16:43:53] tjbiddle: tycoon177: I know. Just finishing my thought before switching channels and confusing everyone.
[16:44:01] tjbiddle: has joined #ruby-offtopic
[16:44:04] tjbiddle: has joined #RubyonRails-offtopic
[16:48:30] tjbiddle: else and making a joke out of it. Didn’t mean for this to turn into a serious debate..
[16:48:30] tjbiddle: jhass: Trust me. It’s never been an issue. And I know my friends, they’d look at me and tell me of course they weren’t offended and would use it the same way. As well, as mentioned - lady friends would do the same thing. Hell my last girlfriend would say ‘guys’ even when she referred to a completely female group. That’s my experience at least. Anyways; again, just pointing at the same thing was done by someo
[16:49:13] tjbiddle: jhass: I see no flag either - what client are you using?
[16:49:46] tjbiddle: Colloquy for me. context - shed some light? That’s a neat fact
[16:50:31] tjbiddle: jhass: Fair game
[16:51:10] tjbiddle: As said in the other chat - probably due to geographic/cultural/language differences. But you’re right; internet is it’s own place
[16:54:19] tjbiddle: jhass: I completely understand that. The one time sevenseacat brought this up (By the way like 3 months ago), I apologized and started using ‘everyone’. I was really just making a joke because in the other channel she said ‘guys guys guys guys’
[16:56:25] tjbiddle: Okay I’m done with this conversation. I lose. I really don’t care
[16:56:42] tjbiddle: Sorry if I offended anyone.
[16:56:54] tjbiddle: Not my purpose. Sorry that can’t be seen through the screen.
[16:57:10] tjbiddle: I won’t make jokes on the interwebs anymore.
[16:58:01] tjbiddle: Can we move along, please? I was done with this conversation before it even started
[16:59:21] tjbiddle: My new conversation: Fairly sure the RoR community is dying. I used to be able to jump in, have a question answered, contribute an answer or two back and leave. Recently it’s been so much crap like this - and people’s questions don’t even get addressed half the time, and - as mentioned, it’s just off topice the bulk in there as well.
[17:00:30] tjbiddle: They’re talking about sandwiches in there right now.
[17:00:48] tjbiddle: And people use the !methods half the time, newcomers get angry, and leave
[17:01:16] tjbiddle: And no one’s very friendly anymore. Granted certain users I’ve *always* been annoyed with; and have lead to a bad time any time they’re in there.
[17:01:25] tjbiddle: And not just me - seen them interact with others.
[17:01:59] tjbiddle: Keepbro’s question still lays unanswered
[17:02:34] tjbiddle: Take that back - now at least there’s a discussionn on it
[17:04:59] tjbiddle: Yeah, like I said, I take that back
[17:05:44] tjbiddle: Hard to find the few messages that aren’t about sandwiches, ha
[17:11:02] tjbiddle: Anyways, I feel like my presence isn’t wanted here. So, cheers.
[17:11:06] tjbiddle: has left #RubyonRails-offtopic: ()
[17:11:12] tjbiddle: has joined #RubyonRails-offtopic
[17:11:14] tjbiddle: has left #RubyonRails-offtopic: ()
[17:11:19] tjbiddle: has left #ruby-offtopic: ()
[17:46:35] tjbiddle: Read error: Connection reset by peer
[17:46:55] tjbiddle: has joined #ruby-offtopic
[17:46:55] tjbiddle: has joined #ruby
[17:46:55] tjbiddle: has joined #RubyOnRails
[18:10:14] tjbiddle: has left #ruby-offtopic: ()
[22:50:41] tjbiddle: Quit: tjbiddle

2016-07-18

[19:31:44] tjbiddle: has joined #ruby
[19:31:44] tjbiddle: has joined #RubyOnRails
[22:25:27] tjbiddle: Quit: tjbiddle

2016-07-11

[19:19:50] tjbiddle: has joined #ruby
[19:19:50] tjbiddle: has joined #RubyOnRails
[19:20:11] tjbiddle: Hi everyone!
[19:21:04] tjbiddle: Can someone offer insight on the “best” way to get custom 404/500 pages? A lot of solutions are just 1) Create a custom “exceptions app” or 2) Throw in some weird *not_found or something into the routes. Both seem hacky. Can I not just catch an exception and render a page?
[19:24:04] tjbiddle: Living in my main app makes more sense
[19:24:23] tjbiddle: I would be happy to have a views/errors/404.html.erb and just render that
[19:44:55] tjbiddle: tubbo: I was ActionController::RoutingError doesn’t get caught there apparently
[19:45:10] tjbiddle: So I’m doing a mix of an exception app - to catch ones that are from there; plus rescue_from's
[19:45:36] tjbiddle: Yeah, exception app + catch all route apparently does make sense
[19:45:41] tjbiddle: *shrug* guess it just looks hacky at first
[20:36:45] tjbiddle: Quit: tjbiddle

2016-07-08

[14:43:17] tjbiddle: has joined #ruby
[14:43:17] tjbiddle: has joined #RubyOnRails
[14:44:37] tjbiddle: Hey everyone!
[14:45:35] tjbiddle: Can someone please help me with what I’m doing wrong here? I keep getting a “ActionController::RoutingError (uninitialized constant Api::Account)” error once I start running in production and I have no idea why. I don’t see what I’m doing differently from what’s offered in SO as a solution: https://gist.github.com/thomasbiddle/675296c8270a4ecc8a2971a4c0add17a
[14:47:59] tjbiddle: Added a comment with the output of rake routes
[14:49:33] tjbiddle: matthewd: Refresh for new comment
[14:51:51] tjbiddle: benlieb: Hm, yeah - I thought. I wonder if submitting a form while your mid-deploy would cause an issue?
[14:52:26] tjbiddle: Also, good on you for keeping 7 years of logs ha
[14:56:47] tjbiddle: matthewd: Doesn’t help - but throws a different errors. Says that it’s expecting the controller to define the exact class it *is* defining. Will paste to comment - sec
[14:57:46] tjbiddle: matthewd: Comment posted
[15:02:55] tjbiddle: matthewd: What the hell!
[15:02:59] tjbiddle: (Yes it worked)
[15:03:03] tjbiddle: Whyyyy is that any different?
[15:03:17] tjbiddle: I have *all* of my other controllers following the other syntax - and they work fine
[15:03:26] tjbiddle: ACTION throws a fit
[15:03:36] tjbiddle: (Also - thank you)
[15:03:41] tjbiddle: That’s so weird
[15:03:52] tjbiddle: Seriously though - I have like 40 other controllers, all the same setup
[15:03:55] tjbiddle: This was the only one not working
[15:04:04] tjbiddle: Well two - the account folder
[15:04:10] tjbiddle: company and billing
[15:04:38] tjbiddle: Huh. Well okay. At least it makes me feel better it wasn’t something obvious
[15:04:53] tjbiddle: Thanks very much
[15:04:58] tjbiddle: Was pulling hair out over this
[15:54:05] tjbiddle: Any devise users here? Can’t figure out why my after_sign_out_path_for(x) is being ignored. My sign_in works fine.
[15:54:09] tjbiddle: https://gist.github.com/thomasbiddle/b2b30b92874694d56cf8e773c7b1701b
[16:02:50] tjbiddle: tweeeaks: No effect
[16:35:52] tjbiddle: tweeeaks: Nope =\ Already checked for that.
[16:40:28] tjbiddle: tweeeaks: Nope - just hits the sessions controller (Devise’s - not implementing my own) and goes to the root path. Tried some debugging messages which were never hit.
[17:32:57] tjbiddle: Hey all - anyone here built commercial SaaS applications? Checking licenses on my gems and realized puma and a few others are BSD-3-Clause. Not familiar enough with this - do I need to add a credit to this?
[17:33:15] tjbiddle: MIT is pretty much do-whatever from what I understand
[17:52:29] tjbiddle: Quit: tjbiddle
[18:27:09] tjbiddle: has joined #RubyOnRails
[18:27:10] tjbiddle: has joined #ruby
[19:06:32] tjbiddle: Quit: tjbiddle
[20:23:08] tjbiddle: has joined #ruby
[20:23:08] tjbiddle: has joined #RubyOnRails
[20:23:15] tjbiddle: Client Quit

2016-07-07

[03:52:24] tjbiddle: has joined #ruby
[03:52:24] tjbiddle: has joined #RubyOnRails
[07:21:06] tjbiddle: Quit: tjbiddle
[13:26:19] tjbiddle: has joined #ruby
[13:26:19] tjbiddle: has joined #RubyOnRails
[13:26:20] tjbiddle: Client Quit

2016-07-06

[19:57:11] tjbiddle: has joined #RubyOnRails
[19:57:12] tjbiddle: has joined #ruby
[19:58:12] tjbiddle: Anyone here using Amazon ECS? I’m researching setting up Docker on my application with an Nginx/Puma/Rails setup - Using Amazon RDS as my backend and just wanted to see how others were using it.
[23:32:06] tjbiddle: Quit: tjbiddle

2016-06-15

[02:15:05] tjbiddle: has joined #RubyOnRails
[02:15:06] tjbiddle: has joined #ruby
[03:49:27] tjbiddle: I'd like to hear opinions on service objects (http://stevelorek.com/service-objects.html) - Just heard about them. Am I being naïve - to me it just seems like we're moving logic from the model into something else and abstracting it further.
[03:49:42] tjbiddle: Which is ironic, because that's the argument the article makes about other options.
[03:51:23] tjbiddle: arathald: I'm still grasping the concept myself. Found the initial reference in Pete Keen's Mastering Modern Payments e-book.
[03:51:42] tjbiddle: Seems like the purpose is to have single-purpose classes for business logic
[05:51:50] tjbiddle: Read error: Connection reset by peer
[07:44:59] tjbiddle: has joined #ruby
[07:44:59] tjbiddle: has joined #RubyOnRails
[07:46:26] tjbiddle: Is `validates_x_of` still valid in Rails 4/5? Or is the proper way `validates x: abc`
[07:48:49] tjbiddle: Radar: Cool - Would you suggest writing this any other way? https://gist.github.com/thomasbiddle/f4950cd83e7a01f4b6fba358ade36a7d
[07:49:06] tjbiddle: Oops - left in some old jazz, one sec.
[08:50:19] tjbiddle: Quit: tjbiddle
[09:02:10] tjbiddle: has joined #ruby
[09:02:10] tjbiddle: has joined #RubyOnRails
[10:55:43] tjbiddle: Quit: tjbiddle
[13:22:23] tjbiddle: Client Quit
[13:22:23] tjbiddle: has joined #ruby
[13:22:23] tjbiddle: has joined #RubyOnRails

2016-06-14

[02:32:58] tjbiddle: has joined #RubyOnRails
[02:32:59] tjbiddle: has joined #ruby
[03:08:03] tjbiddle: Ping timeout: 244 seconds
[03:53:01] tjbiddle: has joined #RubyOnRails
[03:53:02] tjbiddle: has joined #ruby
[06:52:53] tjbiddle: Quit: tjbiddle
[06:54:32] tjbiddle: Client Quit
[06:54:32] tjbiddle: has joined #ruby
[06:54:32] tjbiddle: has joined #RubyOnRails
[07:05:42] tjbiddle: has joined #RubyOnRails
[07:05:43] tjbiddle: has joined #ruby
[08:35:38] tjbiddle: Quit: tjbiddle
[08:41:47] tjbiddle: has joined #ruby
[08:41:47] tjbiddle: has joined #RubyOnRails
[09:16:35] tjbiddle: Quit: tjbiddle
[12:29:10] tjbiddle: has joined #ruby
[12:29:10] tjbiddle: has joined #RubyOnRails
[12:46:33] tjbiddle: Ping timeout: 244 seconds
[12:55:01] tjbiddle: has joined #ruby
[12:55:01] tjbiddle: has joined #RubyOnRails
[14:36:52] tjbiddle: Ping timeout: 250 seconds
[14:43:39] tjbiddle: has joined #ruby
[14:43:39] tjbiddle: has joined #RubyOnRails
[14:48:10] tjbiddle: Read error: Connection reset by peer
[15:23:32] tjbiddle: has joined #ruby
[15:23:32] tjbiddle: has joined #RubyOnRails
[15:43:15] tjbiddle: Ping timeout: 244 seconds

2016-06-13

[07:14:13] tjbiddle: has joined #ruby
[07:14:13] tjbiddle: has joined #RubyOnRails
[07:43:03] tjbiddle: Ping timeout: 246 seconds
[07:52:47] tjbiddle: has joined #RubyOnRails
[07:52:48] tjbiddle: has joined #ruby
[10:44:12] tjbiddle: Quit: tjbiddle
[15:49:30] tjbiddle: has joined #RubyOnRails
[15:49:31] tjbiddle: has joined #ruby
[15:57:58] tjbiddle: Ping timeout: 250 seconds
[16:06:33] tjbiddle: Quit: tjbiddle

2016-06-11

[03:37:37] tjbiddle: has joined #ruby
[03:37:37] tjbiddle: has joined #RubyOnRails
[03:37:55] tjbiddle: Anyone here using Stripe?
[06:11:48] tjbiddle: Quit: tjbiddle
[10:04:26] tjbiddle: has joined #ruby
[10:04:26] tjbiddle: has joined #RubyOnRails
[12:36:50] tjbiddle: Quit: tjbiddle
[12:37:33] tjbiddle: Client Quit
[12:37:33] tjbiddle: has joined #ruby
[12:37:33] tjbiddle: has joined #RubyOnRails
[13:18:03] tjbiddle: has joined #ruby
[13:18:03] tjbiddle: has joined #RubyOnRails
[13:20:12] tjbiddle: Client Quit

2016-06-10

[09:14:11] tjbiddle: The controller is 5 lines - an index method, and the class name
[09:19:16] tjbiddle: norc: fox_mulder_cp https://gist.github.com/thomasbiddle/b647ba5fcfd16488f9465c05c3c7ae9e
[09:19:38] tjbiddle: The dashboard/index.html.erb is what's getting rendered when I call company_details#index - however settings#index works perfectly
[09:20:39] tjbiddle: norc: http://localhost:3000/app/account/settings works fine http://localhost:3000/app/account/company renders dashboard#index not account::company_details#index
[09:21:03] tjbiddle: No errors - it's just rendering a different view entirely
[09:21:11] tjbiddle: Both in what I'm seeing in browser, as well as logs
[09:24:00] tjbiddle: View folder name was called "company" not "company_details"
[09:24:18] tjbiddle: Strange it rendered a different view - must be from the inheritence
[09:54:44] tjbiddle: Quit: tjbiddle
[14:33:13] tjbiddle: has joined #RubyOnRails
[14:33:14] tjbiddle: has joined #ruby
[14:33:42] tjbiddle: Anyone here using Stripe? Just wondering if anyone has examples of subscription plans - or can share their flow in general?
[14:34:44] tjbiddle: It seems I'll want something like "Here are the plans available - here are ones you can switch to" - they click the appropriate stripejs form. When I had rendered the page, I would have made it include their stripe customer ID if one was already made - and show the appropriate form, otherwise, enter in credit card?
[14:51:59] tjbiddle: Quit: tjbiddle
[15:14:21] tjbiddle: has joined #ruby
[15:14:21] tjbiddle: has joined #RubyOnRails
[15:33:19] tjbiddle: Quit: tjbiddle