catbusters

Activity Graph

« Prev | Page 2 of 3 | Next »

2019-01-14

[00:31:47] catbusters: has joined #ruby
[00:31:48] catbusters: has joined #RubyOnRails
[00:33:39] catbusters: Does Rails include jQuery out of the box?
[00:35:05] catbusters: I'm on Rails > 5.1
[00:35:21] catbusters: Reason I ask is I seem to have $ defined already
[00:35:36] catbusters: I think it's probably coming from ujs?
[00:51:47] catbusters: My bad, forgot that browsers define it by default
[03:10:08] catbusters: Quit: Connection closed for inactivity
[16:13:30] catbusters: has joined #RubyOnRails
[16:13:30] catbusters: has joined #ruby

2019-01-13

[00:45:00] catbusters: Quit: Connection closed for inactivity

2019-01-12

[11:37:43] catbusters: has joined #RubyOnRails
[11:37:51] catbusters: has joined #ruby
[11:38:22] catbusters: I've some confusion between `belongs_to` and `has_one`
[11:39:37] catbusters: Say I have two tables, `Product` and `ProductDetails`. Traditionally I'd put a FK for `ProductDetails` on `Product`. But the Rails guide says otherwise, to add `belongs_to` on `ProductDetails` (so `ProductDetails` will have the foreign key instead).
[11:40:17] catbusters: This somehow just doesn't feel right to me, but on the other hand `Product belongs_to ProductDetails` wouldn't make sense either
[15:27:20] catbusters: Quit: Connection closed for inactivity
[21:49:37] catbusters: has joined #ruby
[21:49:38] catbusters: has joined #RubyOnRails
[21:51:57] catbusters: How can I get Guard to ignore the `node_modules` directory?

2019-01-11

[10:38:46] catbusters: has joined #ruby
[10:38:47] catbusters: has joined #RubyOnRails
[10:44:29] catbusters: I have an action in one of my controllers wherein I want to perform an external API call over the network and return the result of that to the client
[10:44:33] catbusters: Something like this: https://dpaste.de/8Wg4#L
[10:45:33] catbusters: However due to the single-threaded and sync nature of ruby this blocks the entire server from responding to any other requests in the meantime, pages don't load, api calls don't go through, etc.
[10:47:13] catbusters: What can I do to work around this? I've seen people recommend moving the API call to a background job and polling the server from the client for updates, but that solution seems suboptimal
[10:55:10] catbusters: tbuehlmann: Yes, that's the plan. Ruby processes = number of cores is what's used right?
[10:58:19] catbusters: tbuehlmann: Alright. Even in that case though, 1 request will block an entire process
[10:58:39] catbusters: Is there any way in which say I could handle the request async like Node?
[11:07:10] catbusters: Okay I'll test that out
[11:07:38] catbusters: Do there happen to be any conventions around making API calls from inside controllers maybe?
[11:27:18] catbusters: Alright thanks for the help tbuehlmann :)
[12:05:10] catbusters: deathwishdave: Registration and authentication can be handled by any Rails application (you might want to look up devise)
[12:05:16] catbusters: Can you expand on the licensing part?
[12:13:52] catbusters: Maybe someone else can correct me, but this sounds like something you'll need to code yourself, not aware of any readymade Gems for this
[18:18:20] catbusters: Quit: Connection closed for inactivity
[18:50:10] catbusters: has joined #RubyOnRails
[18:50:10] catbusters: has joined #ruby
[20:59:18] catbusters: Quit: Connection closed for inactivity

2019-01-08

[16:50:24] catbusters: has joined #ruby
[16:50:25] catbusters: has joined #RubyOnRails
[18:59:22] catbusters: Quit: Connection closed for inactivity

2019-01-07

[01:28:34] catbusters: Quit: Connection closed for inactivity
[12:48:21] catbusters: has joined #ruby
[12:48:22] catbusters: has joined #RubyOnRails
[13:18:16] catbusters: Hi! I'm trying to use Grape to build an API, and I keep coming across examples that show `get "", root: :something`. What is the `root` supposed to do?
[13:25:16] catbusters: What error are you getting?
[13:26:56] catbusters: The code runs for me. Can you post the exact error?
[13:35:59] catbusters: Could be. I'd need to see the exact error though
[18:12:14] catbusters: I'm trying to create a method inside a class that can only be called from within that class. Here's my code (http://tpcg.io/1REYkr) but I can't get it to work
[18:12:21] catbusters: What am I doing wrong?
[18:21:44] catbusters: phaul: How can I fix it? I want to be able to do Something.call (without creating a new instance), and the call method needs to call other private methods
[18:22:34] catbusters: In the example above, I removed `private` from the add definition and made it `self.add` which makes it work, but I don't want `Something.add` to be callable
[18:30:35] catbusters: phaul: You mean like this? https://bpaste.net/show/d06194244e14
[18:34:19] catbusters: phaul: Alright. And what I'm trying to do is create a Rails service object, so does this way of doing it make sense or am I off track?
[19:00:18] catbusters: Thanks, I'll try using modules instead. Out of curiosity, is `private_class_method` preferable to `class << self` though?
[19:00:44] catbusters: phaul: PORO is what I was going for
[19:14:09] catbusters: So many ways to do things 😅
[19:14:29] catbusters: Would just defining a method inside a module be enough?
[23:01:42] catbusters: Quit: Connection closed for inactivity

2019-01-06

[17:29:04] catbusters: has joined #RubyOnRails
[17:29:04] catbusters: has joined #ruby
[17:29:52] catbusters: Hi! I'm trying to use Grape to build an API, and I keep coming across examples that show `get "", root: :something`. What is the `root` supposed to do?

2019-01-05

[14:42:21] catbusters: has joined #RubyOnRails
[14:42:21] catbusters: has joined #ruby
[17:21:51] catbusters: Quit: Connection closed for inactivity

2019-01-04

[13:48:49] catbusters: has joined #RubyOnRails
[13:48:49] catbusters: has joined #ruby
[13:51:39] catbusters: Are example 1 and 2 equivalent? https://bpaste.net/show/713caf53d909
[13:53:07] catbusters: Ok. Getting a bit confused as I'm from JS land and the lack of braces and parens is putting me off balance
[13:56:10] catbusters: And are these two examples also the same? https://bpaste.net/show/4be5bd06866f
[13:58:11] catbusters: What's the resources block inside the scope block? I mean, it looks like calling a function inside another function
[13:58:19] catbusters: Sorry for the noob questions
[14:03:20] catbusters: So I'd be able to define multiple resources blocks inside the scope block?
[16:27:45] catbusters: Quit: Connection closed for inactivity

2019-01-03

[11:41:05] catbusters: has joined #RubyOnRails
[11:41:05] catbusters: has joined #ruby
[13:50:33] catbusters: Quit: Connection closed for inactivity

2018-12-31

[18:11:59] catbusters: has joined #ruby
[18:12:00] catbusters: has joined #RubyOnRails
[23:21:27] catbusters: Quit: Connection closed for inactivity

2018-12-30

[17:03:49] catbusters: has joined #RubyOnRails
[17:03:49] catbusters: has joined #ruby
[17:37:22] catbusters: I've done web development using Flask, Django, and some JS frameworks before
[17:37:34] catbusters: Looking to move to Rails
[17:38:14] catbusters: However there's so much to it that I find it a bit overwhelming
[17:38:18] catbusters: Any recommendations?
[17:40:33] catbusters: I've built a few scripts with Ruby before and didn't find it too difficult
[17:43:18] catbusters: Actually I've got an existing application I'm looking to convert to rails
[17:43:24] catbusters: Not big on books
[17:57:39] catbusters: I'll check it out
[17:57:59] catbusters: Are there any YouTube channels you might recommend though? Or video course?
[18:03:05] catbusters: Yeah they did sadly
[22:03:12] catbusters: Quit: Connection closed for inactivity

2018-12-25

[18:30:51] catbusters: has joined #ruby
[18:30:52] catbusters: has joined #RubyOnRails
[23:00:15] catbusters: Quit: Connection closed for inactivity

2018-12-24

[15:32:20] catbusters: has joined #ruby
[15:32:21] catbusters: has joined #RubyOnRails
[22:31:33] catbusters: Quit: Connection closed for inactivity

2018-09-06

[09:23:31] catbusters: has joined #RubyOnRails
[09:23:31] catbusters: has joined #ruby
[12:03:02] catbusters: Quit: Connection closed for inactivity

2018-07-15

[11:15:21] catbusters: has joined #RubyOnRails
[11:15:21] catbusters: has joined #ruby
[13:34:54] catbusters: Quit: Connection closed for inactivity

2018-07-11

[18:41:29] catbusters: has joined #RubyOnRails
[18:41:29] catbusters: has joined #ruby
[18:42:23] catbusters: What's the best datetime library for Ruby? I'm looking for something like moment.js or arrow (python)
[18:43:04] catbusters: Adding an subtracting hours
[20:50:52] catbusters: Quit: Connection closed for inactivity

2018-07-02

[16:44:11] catbusters: has joined #RubyOnRails
[16:44:11] catbusters: has joined #ruby
[19:33:43] catbusters: Quit: Connection closed for inactivity

2018-06-09

[11:02:15] catbusters: has joined #RubyOnRails
[11:02:15] catbusters: has joined #ruby
[14:11:48] catbusters: Quit: Connection closed for inactivity

2018-05-31

[04:35:22] catbusters: has joined #RubyOnRails
[04:35:22] catbusters: has joined #ruby
[07:04:45] catbusters: Quit: Connection closed for inactivity

2018-05-22

[01:26:12] catbusters: Quit: Connection closed for inactivity
[09:40:55] catbusters: has joined #RubyOnRails
[09:40:55] catbusters: has joined #ruby
[11:50:23] catbusters: Quit: Connection closed for inactivity
[13:55:15] catbusters: has joined #RubyOnRails
[13:55:15] catbusters: has joined #ruby
[17:50:06] catbusters: Quit: Connection closed for inactivity

2018-05-21

[04:38:20] catbusters: Quit: Connection closed for inactivity
[15:21:17] catbusters: has joined #RubyOnRails
[15:21:17] catbusters: has joined #ruby
[18:56:12] catbusters: Quit: Connection closed for inactivity
[19:05:07] catbusters: has joined #RubyOnRails
[19:05:07] catbusters: has joined #ruby

2018-05-19

[14:43:06] catbusters: Ping timeout: 256 seconds

2018-04-25

[12:25:39] catbusters: *.net *.split
[12:27:13] catbusters: has joined #ruby
[12:27:31] catbusters: has joined #RubyOnRails
[15:01:09] catbusters: *.net *.split
[15:03:06] catbusters: has joined #RubyOnRails
[15:03:23] catbusters: has joined #ruby

2018-04-22

[15:59:39] catbusters: *.net *.split
[16:25:32] catbusters: has joined #ruby
[16:25:33] catbusters: has joined #RubyOnRails

2018-04-20

[13:48:36] catbusters: has joined #RubyOnRails
[13:48:36] catbusters: has joined #ruby

2018-04-10

[14:14:10] catbusters: has joined #ruby
[14:14:11] catbusters: has joined #RubyOnRails

2018-03-20

[15:04:22] catbusters: has joined #RubyOnRails
[15:04:22] catbusters: has joined #ruby

2017-11-25

[09:55:37] catbusters: has joined #RubyOnRails
[09:55:47] catbusters: has joined #ruby
[12:04:55] catbusters: Quit: Connection closed for inactivity

2017-11-21

[14:15:12] catbusters: has joined #RubyOnRails
[14:15:22] catbusters: has joined #ruby
[16:44:54] catbusters: Quit: Connection closed for inactivity

2017-09-12

[09:07:35] catbusters: has joined #RubyOnRails
[09:07:45] catbusters: has joined #ruby
[11:57:20] catbusters: Quit: Connection closed for inactivity

2017-09-01

[15:51:44] catbusters: has joined #RubyOnRails
[15:51:54] catbusters: has joined #ruby
[18:11:28] catbusters: Quit: Connection closed for inactivity

2017-07-31

[13:35:41] catbusters: has joined #RubyOnRails
[13:35:51] catbusters: has joined #ruby
[17:05:17] catbusters: Quit: Connection closed for inactivity

2017-07-20

[16:53:56] catbusters: has joined #RubyOnRails
[16:54:06] catbusters: has joined #ruby
[19:03:39] catbusters: Quit: Connection closed for inactivity

2017-05-22

[11:50:28] catbusters: has joined #RubyOnRails
[11:50:38] catbusters: has joined #ruby
[16:02:18] catbusters: Quit: Connection closed for inactivity

2017-05-01

[01:23:59] catbusters: Quit: Connection closed for inactivity

2017-04-30

[01:33:59] catbusters: Quit: Connection closed for inactivity
[13:29:19] catbusters: has joined #RubyOnRails
[13:29:29] catbusters: has joined #ruby
[17:03:59] catbusters: Quit: Connection closed for inactivity
[20:59:23] catbusters: has joined #RubyOnRails
[20:59:34] catbusters: has joined #ruby

2017-04-29

[04:23:58] catbusters: Quit: Connection closed for inactivity
[21:09:03] catbusters: has joined #RubyOnRails
[21:09:13] catbusters: has joined #ruby

2017-04-28

[21:12:56] catbusters: has joined #RubyOnRails
[21:13:06] catbusters: has joined #ruby
[21:14:49] catbusters: I'm just getting started with Rails
[21:15:09] catbusters: I've programmed a fair bit in Python (Flask) and Meteor (JavaScript) before
[21:15:33] catbusters: I've used Ruby too a little here and there
[21:16:00] catbusters: Is there a really quick guide or resource that would help me get up to speed quickly?
[21:16:43] catbusters: havenwood: That doesn't cover the ecosystem, right?
[21:17:01] catbusters: Just the base framework
[21:17:15] catbusters: Oh, that's awesome then!
[21:17:24] catbusters: Also, I need a recommendation for an admin package
[21:18:11] catbusters: Hopefully one without a strong dependency on ActiveRecord. I need to use both AR and Mongoid
[21:20:21] catbusters: havenwood: I would, but it's pretty generic and I lack time :P
[21:21:26] catbusters: How's your experience been with activeadmin? Would you hold off on recommending it?
[21:25:39] catbusters: havenwood: Can you name a few quirks? I'm on Rails 5.0 so that shouldn't be a problem
[21:28:24] catbusters: havenwood: Okay, apart from the static scopes, it shouldn't be a problem since this is just an admin app that I'm building
[21:28:48] catbusters: havenwood: Thanks for the help! :)

2017-04-25

[02:13:58] catbusters: Quit: Connection closed for inactivity

2017-04-24

[03:03:57] catbusters: Quit: Connection closed for inactivity
[21:51:25] catbusters: has joined #RubyOnRails
[21:51:35] catbusters: has joined #ruby

2017-04-23

[06:23:58] catbusters: Quit: Connection closed for inactivity
[18:12:52] catbusters: has joined #RubyOnRails
[18:13:00] catbusters: has joined #ruby

2017-04-22

[20:43:25] catbusters: has joined #RubyOnRails
[20:43:34] catbusters: has joined #ruby

2017-04-21

[03:04:43] catbusters: Ping timeout: 260 seconds
[03:05:45] catbusters: has joined #ruby
[03:53:58] catbusters: Quit: Connection closed for inactivity
[15:49:31] catbusters: has joined #ruby
[18:13:58] catbusters: Quit: Connection closed for inactivity

2017-04-20

[02:13:58] catbusters: Quit: Connection closed for inactivity
[04:57:36] catbusters: has joined #RubyOnRails
[04:57:44] catbusters: has joined #ruby
[07:43:58] catbusters: Quit: Connection closed for inactivity
[10:56:18] catbusters: has joined #RubyOnRails
[10:56:26] catbusters: has joined #ruby

2017-04-18

[19:48:24] catbusters: has joined #RubyOnRails
[19:48:32] catbusters: has joined #ruby

2017-03-25

[00:43:55] catbusters: Quit: Connection closed for inactivity

2017-03-24

[01:03:55] catbusters: Quit: Connection closed for inactivity
[21:30:08] catbusters: has joined #RubyOnRails
[21:30:14] catbusters: has joined #ruby

2017-03-23

[22:21:59] catbusters: has joined #RubyOnRails
[22:22:05] catbusters: has joined #ruby

2016-07-10

[04:59:57] catbusters: *.net *.split
[08:54:01] catbusters: has joined #ruby

2016-07-02

[17:30:45] catbusters: Ping timeout: 250 seconds
[17:35:41] catbusters: has joined #ruby

2016-06-28

[13:29:36] catbusters: has joined #ruby
[14:46:12] catbusters: has joined #ruby

2016-06-23

[20:27:37] catbusters: *.net *.split
[20:39:42] catbusters: has joined #ruby

2016-05-18

[08:45:40] catbusters: Ping timeout: 250 seconds
[08:46:37] catbusters: has joined #ruby

2016-04-17

[21:45:20] catbusters: has joined #ruby