« Back to channel list

#RubyOnRails - 06 May 2018

« Back 1 day Forward 1 day »
[00:04:02] eckhardt: has joined #RubyOnRails
[00:06:41] apeiros: has joined #RubyOnRails
[00:07:27] DTZUZO: has joined #RubyOnRails
[00:10:24] jonno112: has joined #RubyOnRails
[00:17:23] hackeron: has joined #RubyOnRails
[00:23:26] ur5us: has joined #RubyOnRails
[00:28:28] gheegh: has joined #RubyOnRails
[00:28:31] orbyt_: has joined #RubyOnRails
[00:39:31] apeiros: has joined #RubyOnRails
[00:42:56] gheegh: has joined #RubyOnRails
[00:55:22] gheegh: has joined #RubyOnRails
[01:02:58] conta: has joined #RubyOnRails
[01:08:11] gheegh: has joined #RubyOnRails
[01:12:58] jottr: has joined #RubyOnRails
[01:19:49] gheegh: has joined #RubyOnRails
[01:21:35] scoogaly: has joined #RubyOnRails
[01:30:51] gheegh: has joined #RubyOnRails
[01:34:56] Puffball: has joined #RubyOnRails
[01:41:53] gheegh: has joined #RubyOnRails
[01:51:31] blitz: has joined #RubyOnRails
[01:52:01] Tempesta: has joined #RubyOnRails
[01:52:12] lupine: has joined #RubyOnRails
[01:58:59] gheegh: has joined #RubyOnRails
[02:01:26] kapil___: has joined #RubyOnRails
[02:01:34] gheegh: has joined #RubyOnRails
[02:03:24] gheegh: has joined #RubyOnRails
[02:07:33] gheegh: has joined #RubyOnRails
[02:15:33] Technodrome: has joined #RubyOnRails
[02:18:56] mroutis: has joined #RubyOnRails
[02:21:34] gheegh: has joined #RubyOnRails
[02:23:05] conta: has joined #RubyOnRails
[02:23:59] gheegh: has joined #RubyOnRails
[02:24:09] ur5us: has joined #RubyOnRails
[02:28:42] mroutis: has joined #RubyOnRails
[02:31:51] gheegh: has joined #RubyOnRails
[02:34:14] gheegh: has joined #RubyOnRails
[02:40:35] gheegh: has joined #RubyOnRails
[02:41:22] roamingdog: has joined #RubyOnRails
[02:43:46] gheegh: has joined #RubyOnRails
[02:47:44] gheegh: has joined #RubyOnRails
[02:49:39] za1b1tsu: has joined #RubyOnRails
[02:51:05] gheegh: has joined #RubyOnRails
[03:02:30] gheegh: has joined #RubyOnRails
[03:11:27] gheegh: has joined #RubyOnRails
[03:13:48] jottr: has joined #RubyOnRails
[03:15:16] gheegh: has joined #RubyOnRails
[03:17:08] conta: has joined #RubyOnRails
[03:19:25] gheegh: has joined #RubyOnRails
[03:22:17] gheegh: has joined #RubyOnRails
[03:25:41] gheegh: has joined #RubyOnRails
[03:29:19] gheegh: has joined #RubyOnRails
[03:31:20] Technodrome: has joined #RubyOnRails
[03:34:20] gheegh: has joined #RubyOnRails
[03:38:50] gheegh: has joined #RubyOnRails
[03:51:23] gheegh: has joined #RubyOnRails
[03:52:44] gousuto: has joined #RubyOnRails
[04:07:15] conta: has joined #RubyOnRails
[04:41:11] conta: has joined #RubyOnRails
[04:41:14] Linuus`: has joined #RubyOnRails
[04:46:22] roamingdog: has joined #RubyOnRails
[04:46:36] Technodrome: has joined #RubyOnRails
[04:54:03] segy: has joined #RubyOnRails
[04:54:09] armyriad: has joined #RubyOnRails
[05:14:39] jottr: has joined #RubyOnRails
[05:24:31] Technodrome: has joined #RubyOnRails
[05:28:10] apparition: has joined #RubyOnRails
[05:55:18] vedu_: has joined #RubyOnRails
[05:59:08] Technodrome: has joined #RubyOnRails
[06:05:01] conta: has joined #RubyOnRails
[06:05:20] Technodrome: why are Davids words so soothing sometimes
[06:12:28] orbyt_: I'm getting a `NoMethodError: undefined method `array' for #<ActiveRecord::ConnectionAdapters` how can I generate a model of an array type?
[06:27:15] Aherin: has joined #RubyOnRails
[06:38:29] Technodrome: has joined #RubyOnRails
[06:38:40] conta: has joined #RubyOnRails
[06:59:08] apparition: has joined #RubyOnRails
[07:07:06] reber: has joined #RubyOnRails
[07:07:27] Saukk: has joined #RubyOnRails
[07:12:48] ericmathison: has joined #RubyOnRails
[07:15:30] jottr: has joined #RubyOnRails
[07:24:47] timdotrb: has joined #RubyOnRails
[07:25:00] timdotrb: Evening, all
[07:33:24] eckhardt: has joined #RubyOnRails
[07:42:06] za1b1tsu: has joined #RubyOnRails
[07:45:29] dionysus69: has joined #RubyOnRails
[07:47:47] macxim: has joined #RubyOnRails
[07:51:50] timdotrb: I’m getting a Mongo error that I’m not finding much about online. Mongo::Error::SocketError end of file reached. I’m getting this error when I attempt to query my Mongo DB
[07:52:10] apeiros: has joined #RubyOnRails
[07:55:20] marr: has joined #RubyOnRails
[07:57:24] timdotrb: The site has been working without a problem for quite some time. I’m not sure when this issue began
[07:57:45] timdotrb: I tried updating the mongo gem, but that had no effect
[08:00:47] sameerynho: has joined #RubyOnRails
[08:04:29] blackcross: timdotrb, how is the disk space and memory usage?
[08:04:39] blackcross: is mongodb running?
[08:04:51] timdotrb: blackcross: disk space is ok on both my web and database servers
[08:06:51] timdotrb: blackcross: yes
[08:08:56] timdotrb: To get even more strange, some queries work..
[08:18:30] conta: has joined #RubyOnRails
[08:33:47] DTZUZO: has joined #RubyOnRails
[08:45:35] timdotrb: has joined #RubyOnRails
[08:46:20] timdotrb: has joined #RubyOnRails
[08:47:09] timdotrb: has joined #RubyOnRails
[08:47:53] timdotrb: has joined #RubyOnRails
[08:48:44] timdotrb: has joined #RubyOnRails
[08:49:19] macxim: has joined #RubyOnRails
[08:49:29] timdotrb: has joined #RubyOnRails
[08:50:14] timdotrb: has joined #RubyOnRails
[08:50:59] timdotrb: has joined #RubyOnRails
[09:05:20] dionysus69: has joined #RubyOnRails
[09:10:02] blackmesa: has joined #RubyOnRails
[09:16:25] jottr: has joined #RubyOnRails
[09:16:31] za1b1tsu: has joined #RubyOnRails
[09:26:20] conta: has joined #RubyOnRails
[09:38:46] blackcross_: has joined #RubyOnRails
[09:38:59] conta: has joined #RubyOnRails
[09:39:16] CBebop: has joined #RubyOnRails
[09:41:48] armyriad: has joined #RubyOnRails
[09:58:31] uksio: has joined #RubyOnRails
[10:01:20] s2013: has joined #RubyOnRails
[10:12:53] Radar: GOOD EVENING
[10:18:26] t0adst00l: has joined #RubyOnRails
[10:28:01] podman: has joined #RubyOnRails
[10:29:44] macxim: has joined #RubyOnRails
[10:32:16] mmun: has joined #RubyOnRails
[10:32:33] ellcs: has joined #RubyOnRails
[10:38:12] DrYockel: has joined #RubyOnRails
[10:40:06] kapil___: has joined #RubyOnRails
[10:46:55] jxf: has joined #RubyOnRails
[10:50:37] conta1: has joined #RubyOnRails
[10:51:10] s2013: has joined #RubyOnRails
[10:56:45] jottr: has joined #RubyOnRails
[10:57:34] marr: has joined #RubyOnRails
[10:57:51] nickjj: has joined #RubyOnRails
[11:15:10] Saukk: has joined #RubyOnRails
[11:24:49] dnyy: has joined #RubyOnRails
[11:41:12] AnotherOne: has joined #RubyOnRails
[11:47:38] conta1: has joined #RubyOnRails
[11:58:16] s2013: has joined #RubyOnRails
[12:01:39] MoskitoHero: has joined #RubyOnRails
[12:06:30] GodFather: has joined #RubyOnRails
[12:16:44] conta: has joined #RubyOnRails
[12:21:29] DTZUZO: has joined #RubyOnRails
[12:22:51] armyriad: has joined #RubyOnRails
[12:30:53] craysiii: has joined #RubyOnRails
[12:40:07] DrYockel: has joined #RubyOnRails
[13:12:50] vedu_: has joined #RubyOnRails
[13:47:46] deramius: has joined #RubyOnRails
[13:50:53] cschneid_: has joined #RubyOnRails
[14:00:28] epochwolf: has joined #RubyOnRails
[14:12:21] samosaphile: has joined #RubyOnRails
[14:20:00] Technodrome: has joined #RubyOnRails
[14:31:15] conta: has joined #RubyOnRails
[14:44:39] DrYockel: has joined #RubyOnRails
[15:04:08] orbyt_: has joined #RubyOnRails
[15:06:18] conta: has joined #RubyOnRails
[15:14:34] dionysus69: has joined #RubyOnRails
[15:18:22] Dimik: has joined #RubyOnRails
[15:20:43] justinweiss: has joined #RubyOnRails
[15:31:09] s2013: has joined #RubyOnRails
[15:35:00] dipnlik: has joined #RubyOnRails
[15:38:23] conta: has joined #RubyOnRails
[15:44:00] lipoqil: has joined #RubyOnRails
[15:57:09] cschneid_: has joined #RubyOnRails
[16:00:42] LyndsySimon: has joined #RubyOnRails
[16:19:08] conta: has joined #RubyOnRails
[16:24:00] DrYockel: has joined #RubyOnRails
[16:24:38] dionysus69: is it in plans to generate frozen_string_literals in every file in new rails apps?
[16:26:07] cschneid_: has joined #RubyOnRails
[16:27:10] harrycs: has joined #RubyOnRails
[16:36:09] mheld: has joined #RubyOnRails
[16:36:43] uks: has joined #RubyOnRails
[16:42:44] codepete: has joined #RubyOnRails
[16:45:16] Technodrome: has joined #RubyOnRails
[16:49:01] Travis-42: has joined #RubyOnRails
[16:49:15] Kamuela: has joined #RubyOnRails
[16:51:53] Travis-42: has joined #RubyOnRails
[16:51:53] Kamuela: has joined #RubyOnRails
[16:59:20] dionysus69: has joined #RubyOnRails
[17:03:07] mostlybadfly: has joined #RubyOnRails
[17:03:32] tekk: has joined #RubyOnRails
[17:04:32] conta: has joined #RubyOnRails
[17:15:43] gambl0re: has joined #RubyOnRails
[17:19:12] Technodrome: has joined #RubyOnRails
[17:21:54] harrycs: has joined #RubyOnRails
[17:23:54] harrycs: has joined #RubyOnRails
[17:28:43] za1b1tsu: has joined #RubyOnRails
[17:28:49] orbyt_: has joined #RubyOnRails
[17:29:59] harrycs: has joined #RubyOnRails
[17:32:26] dtzuzu: has joined #RubyOnRails
[17:33:43] JJonah: has joined #RubyOnRails
[17:39:41] mondongo: has joined #RubyOnRails
[17:45:21] kies^: has joined #RubyOnRails
[17:52:11] r3my: has joined #RubyOnRails
[17:52:39] vedu_: has joined #RubyOnRails
[17:53:01] vedu_: has joined #RubyOnRails
[17:59:21] roamingdog: has joined #RubyOnRails
[18:04:34] za1b1tsu: has joined #RubyOnRails
[18:06:51] timdotrb: has joined #RubyOnRails
[18:07:41] Technodrome: has joined #RubyOnRails
[18:12:07] orbyt_: I'm writing a db/seeds.rb script. Is it a good idea to drop/reset the database here whenever this script is invoked?
[18:12:13] orbyt_: If not, why?
[18:20:37] timdotrb: orbyt_: you do know there are already Rails tasks to do that, right?
[18:24:17] conta: has joined #RubyOnRails
[18:30:39] orbyt_: timdotrb rails db:reset ?
[18:31:04] orbyt_: Does that run the seeder as well?
[18:37:13] sameerynho: has joined #RubyOnRails
[18:42:04] nickenchuggets: has joined #RubyOnRails
[18:45:40] jottr: has joined #RubyOnRails
[19:08:32] vedu_: has joined #RubyOnRails
[19:12:30] eckhardt: has joined #RubyOnRails
[19:17:47] conta: has joined #RubyOnRails
[19:20:56] elcms: has joined #RubyOnRails
[19:44:39] alfiemax: has joined #RubyOnRails
[19:49:45] roamingdog: has joined #RubyOnRails
[20:00:31] dviola: has joined #RubyOnRails
[20:04:20] weaksauce: has joined #RubyOnRails
[20:05:48] bga57: has joined #RubyOnRails
[20:11:56] conta: has joined #RubyOnRails
[20:13:42] alfiemax: has joined #RubyOnRails
[20:29:44] Linuus`: has joined #RubyOnRails
[20:34:24] uks: has joined #RubyOnRails
[20:43:15] Linuus`: has joined #RubyOnRails
[20:44:27] alfiemax: has joined #RubyOnRails
[20:54:37] dipnlik: has joined #RubyOnRails
[21:00:45] timdotrb: orbyt_: reset and/or drop run when you run them via the command you mentioned.
[21:01:10] timdotrb: orbyt_: just like rails db:seed will run the seed script.
[21:04:13] Linuus`: has joined #RubyOnRails
[21:06:19] conta: has joined #RubyOnRails
[21:11:56] vedu_: has joined #RubyOnRails
[21:15:56] Psy-Q: has joined #RubyOnRails
[21:17:08] deramius: has joined #RubyOnRails
[21:18:11] orbyt_: Follow up: is ActionCable able to serve as a websocket client? That is, can I connect to an arbitrary `wss://` endpoint with it?
[21:22:27] dviola: has joined #RubyOnRails
[21:24:05] schneider-: has joined #RubyOnRails
[21:24:30] timdotrb: orbyt_: I’ve used it to connect to an API server that I’ve created, which it did not connect to at localhost.
[21:24:34] tekk: has joined #RubyOnRails
[21:25:06] orbyt_: Did you determine why?
[21:25:18] timdotrb: Why it worked?
[21:25:50] timdotrb: orbyt_: I guess that wasn’t a very clear statement: in my experience, yes - you can connect to an arbitrary wss:// endpoint
[21:28:38] orbyt_: I'd like to connect to an external server exposing a socket.io websocket, however search results seem to focus on connecting via javascript on a frontend, which is not what i'd like.
[21:28:41] alfiemax: has joined #RubyOnRails
[21:34:17] ur5us: has joined #RubyOnRails
[21:54:07] tekk: has joined #RubyOnRails
[21:54:07] roamingdog: has joined #RubyOnRails
[21:54:07] eckhardt: has joined #RubyOnRails
[21:54:07] gambl0re: has joined #RubyOnRails
[21:54:07] GodFather: has joined #RubyOnRails
[21:54:07] marr: has joined #RubyOnRails
[21:54:07] kakekongen: has joined #RubyOnRails
[21:54:58] DTZUZO: has joined #RubyOnRails
[21:55:47] armyriad: has joined #RubyOnRails
[21:56:34] alfiemax: has joined #RubyOnRails
[21:56:35] marr: has joined #RubyOnRails
[22:02:58] tekk: has joined #RubyOnRails
[22:04:08] Linuus`: has joined #RubyOnRails
[22:10:17] jtms: has joined #RubyOnRails
[22:14:30] jtms: has left #RubyOnRails: ("Leaving")
[22:17:51] orbyt_: has joined #RubyOnRails
[22:20:05] alfiemax: has joined #RubyOnRails
[22:22:02] conta: has joined #RubyOnRails
[22:30:38] Linuus`: has joined #RubyOnRails
[22:32:35] Radar: GOOD MORNING
[22:33:19] orbyt_: timdotrb Do you know of any docs on using ActionCable as a client? I haven't seen a single example connecting to a remote server.
[22:38:58] Technodrome: has joined #RubyOnRails
[22:50:55] alfiemax: has joined #RubyOnRails
[22:59:24] deramius: has joined #RubyOnRails
[23:06:31] timdotrb: Radar: Good morning :)
[23:07:06] timdotrb: orbyt_: I was working on this about a year ago, so I don’t recall if I came across docs on it. However, I do remember that information was sparse, and making it do what I wanted to do was a struggle
[23:07:44] timdotrb: has joined #RubyOnRails
[23:08:12] orbyt_: Yes, i'm surprised that i haven't found anything definitive in my searches
[23:08:21] orbyt_: this took me like 2 minutes to setup in node.js
[23:08:45] orbyt_: I would have thought "use ActionCable as a client to a remote server" would have been a common use case.
[23:14:39] Linuus`: has joined #RubyOnRails
[23:14:43] apeiros: has joined #RubyOnRails
[23:16:25] conta: has joined #RubyOnRails
[23:16:40] orbyt_: I've seen a suggestion to run a seperate node.js which does the websocket stuff and then communicates with a redis instance that is connected to by both the node.js server and rails. Changes in redis would then be picked up by the rails app
[23:16:47] orbyt_: This seems like...overkill
[23:19:12] timdotrb: orbyt_, yea. It does seem like a common usecase, and I have heard similarly that it's easier to get something setup and running in node
[23:19:53] timdotrb: orbyt_, I've tried to cut out relevant code from my app (on the client side). This connects to my api server for sending and receiving messages
[23:19:55] timdotrb: orbyt_, https://gist.github.com/willc0de4food/909c0aea991174817e764972cd9c249d
[23:20:54] orbyt_: timdotrb That's all client side
[23:21:14] orbyt_: isn't it?
[23:21:24] timdotrb: orbyt_, yes.
[23:21:51] timdotrb: orbyt_, It does not include the code on my API server that sends / receives messages
[23:21:57] orbyt_: Right. What i'm looking for is a way to connect Rails directly to another server
[23:22:04] alfiemax: has joined #RubyOnRails
[23:22:19] timdotrb: orbyt_, https://gist.github.com/willc0de4food/909c0aea991174817e764972cd9c249d#file-app-views-conversation-index-html-erb-L7
[23:22:53] orbyt_: timdotrb ? Isn't that client side?
[23:23:34] timdotrb: orbyt_, yes. That code is in a Rails app, and connects to another server running a Rails app
[23:24:20] orbyt_: timdotrb The code you linked is an .erb file, which as far as I know is served to the client. What i'm trying to do is connect my rails server directly to another server, no front end involved.
[23:24:25] schneider-: has joined #RubyOnRails
[23:24:50] orbyt_: timdotrb If I'm misunderstanding something, please explain
[23:25:18] timdotrb: orbyt_, can you elaborate some as to what exactly you're trying to do?
[23:26:38] orbyt_: timdotrb A third party server exposes a websocket connectiong via `ws://example.com`. When my Rails app starts, I want to connect to that websocket, using Ruby.
[23:28:26] timdotrb: orbyt_, like this? https://stackoverflow.com/questions/30374029/ruby-connect-to-remote-websocket#31419790
[23:29:29] timdotrb: orbyt_, or this: https://github.com/shokai/websocket-client-simple
[23:29:48] timdotrb: orbyt_, ActionCable is used for creating websocket servers. It sound like you are looking for a websocket client
[23:30:08] orbyt_: correct, a websocket client for ruby/server side rails
[23:30:47] orbyt_: I came across https://github.com/shokai/websocket-client-simple but it looked like just some small hack
[23:30:52] orbyt_: ~70 stars, etc
[23:30:55] orbyt_: is that commonly used?
[23:31:24] Radar: Not that I know of.
[23:32:26] Radar: I wonder if Faye is still used that often.
[23:32:41] Radar: https://faye.jcoglan.com/ruby/clients.html
[23:36:31] orbyt_: So if this websocket is something that should just be on and running continually where should it be placed?
[23:36:54] Radar: Probably in a separate Ruby process monitored by something like systemd/upstart
[23:37:09] Radar: Does it need to access your Rails environment at all? Models?
[23:37:27] Radar: Ok, then make it a rake task that inherits from the environment rake task in your rails app
[23:37:30] orbyt_: Events received would be parsed and saved to the db
[23:37:31] Radar: start it with something like "rake ws:client"
[23:38:18] Radar: gishttps://gist.github.com/radar/40cbf5975d63737398540525e2ed0ea4
[23:38:20] Radar: https://gist.github.com/radar/40cbf5975d63737398540525e2ed0ea4
[23:45:31] t0adst00l: has joined #RubyOnRails
[23:50:23] Linuus`: has joined #RubyOnRails
[23:56:09] apeiros: has joined #RubyOnRails
[23:56:33] alfiemax: has joined #RubyOnRails