« Back to channel list

#RubyOnRails - 18 June 2018

« Back 1 day Forward 1 day »
[00:04:03] mjolnird: has joined #RubyOnRails
[00:06:34] asabino: has left #RubyOnRails: ()
[00:16:02] dogweather: has joined #RubyOnRails
[00:29:08] matyf: has joined #RubyOnRails
[00:38:05] dogweather: has joined #RubyOnRails
[01:03:54] tdy: has joined #RubyOnRails
[01:04:21] dogweather: has joined #RubyOnRails
[01:17:27] dogweather: has joined #RubyOnRails
[01:34:37] dogweather: has joined #RubyOnRails
[01:47:42] dogweather: has joined #RubyOnRails
[02:00:03] sevenseacat: has joined #RubyOnRails
[02:37:33] tdy: has joined #RubyOnRails
[02:38:24] akaiiro: has joined #RubyOnRails
[03:00:53] roamingdog: has joined #RubyOnRails
[03:09:59] braincrash: has joined #RubyOnRails
[03:15:32] beilabs: has joined #RubyOnRails
[03:16:13] beilabs_: has joined #RubyOnRails
[03:23:29] dogweather: has joined #RubyOnRails
[03:25:46] kapil___: has joined #RubyOnRails
[03:26:37] jgpawletko: has joined #RubyOnRails
[03:36:27] beilabs: has joined #RubyOnRails
[03:44:39] wethu: has joined #RubyOnRails
[03:46:29] JamJam_kid: has joined #RubyOnRails
[04:09:45] beilabs_: has joined #RubyOnRails
[04:13:17] eckhardt: has joined #RubyOnRails
[04:17:20] dogweather: has joined #RubyOnRails
[04:18:40] jgpawletko: has joined #RubyOnRails
[04:30:14] dogweather: has joined #RubyOnRails
[04:48:34] akaiiro: has joined #RubyOnRails
[04:59:36] apeiros: has joined #RubyOnRails
[05:04:00] dogweather: has joined #RubyOnRails
[05:22:26] MrCrackPotBuilde: has joined #RubyOnRails
[05:30:20] reber: has joined #RubyOnRails
[05:32:51] srinidhi: has joined #RubyOnRails
[05:42:05] conta: has joined #RubyOnRails
[05:56:24] dogweather: has joined #RubyOnRails
[06:03:52] apeiros: has joined #RubyOnRails
[06:13:06] akaiiro: has joined #RubyOnRails
[06:14:52] DoubleMalt: has joined #RubyOnRails
[06:33:12] Technodrome: has joined #RubyOnRails
[06:38:24] matyf: has joined #RubyOnRails
[06:40:52] DoubleMalt: has joined #RubyOnRails
[06:41:40] ethicalhacker: has joined #RubyOnRails
[06:41:45] ethicalhacker: choo choo, choo choo
[06:41:57] ethicalhacker: where is this train heading too ?
[06:44:58] ethicalhacker: Radar, choo choo, choo choo
[06:45:30] ethicalhacker: has left #RubyOnRails: ("Leaving")
[06:53:22] sandstrom: has joined #RubyOnRails
[06:54:30] SexiestManAlive: has joined #RubyOnRails
[06:56:55] dionysus69: has joined #RubyOnRails
[07:14:14] mtkd: has joined #RubyOnRails
[07:24:56] DoubleMalt: has joined #RubyOnRails
[07:25:05] sandstrom: has joined #RubyOnRails
[07:29:22] bijan_: has joined #RubyOnRails
[07:29:58] Radar: GOOD EVENING
[07:45:56] dogweather: has joined #RubyOnRails
[07:58:00] asabino: has joined #RubyOnRails
[07:58:42] NL3limin4t0r: has joined #RubyOnRails
[07:58:46] bijan_: has joined #RubyOnRails
[08:03:03] drale2k_: has joined #RubyOnRails
[08:17:11] sandstrom: has joined #RubyOnRails
[08:18:47] dogweather: has joined #RubyOnRails
[08:25:02] srinidhi: has joined #RubyOnRails
[08:38:13] asabino: has left #RubyOnRails: ()
[08:45:22] asabino: has joined #RubyOnRails
[09:05:10] wethu: has joined #RubyOnRails
[09:07:07] ams__: has joined #RubyOnRails
[09:33:15] sonOfRa: has joined #RubyOnRails
[09:35:22] Arkentias: has joined #RubyOnRails
[09:37:45] Arkentias: Hey everyone!I need your help. For every request that hits my API, i need to check the url it came from to be able to know which of my client's data I should access. Where should I put this kind of logic that should happen once for every request?
[09:42:34] tbuehlmann: Arkentias: I assume you have some kind of authentication in place, can't you decide on that authorization what client the request sent?
[09:43:10] dminuoso: Arkentias: what do you mean by "which of your client's data"
[09:51:55] bijan_: has joined #RubyOnRails
[10:03:39] roamingdog: has joined #RubyOnRails
[10:16:41] jlebrech: has joined #RubyOnRails
[10:17:20] srinidhi: has joined #RubyOnRails
[10:17:48] jlebrech: can someone help me with ActionCable? my connection is verified by use session, how do I send a message just to that user? is something like ActionCable.server.broadcast "message", 'hello' enough?
[10:20:30] KeyJoo: has joined #RubyOnRails
[10:24:56] apparition47: has joined #RubyOnRails
[10:43:11] drale2k_: has joined #RubyOnRails
[10:46:18] srinidhi: has joined #RubyOnRails
[10:57:06] mikecmpbll: has joined #RubyOnRails
[11:14:57] OneNeptune: has joined #RubyOnRails
[11:16:07] sandstrom: has joined #RubyOnRails
[11:22:29] bijan_: has joined #RubyOnRails
[11:28:23] bijan__: has joined #RubyOnRails
[11:39:33] dionysus69: has joined #RubyOnRails
[11:46:31] yottanami: has joined #RubyOnRails
[11:46:54] matyf: has joined #RubyOnRails
[11:46:58] gregf_: has joined #RubyOnRails
[11:47:56] yottanami: I am trying to deploy a api-only Rails 5 project using Capistrano after the deploy there is no public directory and so I got 404 error. Is it because my project is api-only or it is because of passenger setting?
[11:57:57] beilabs: has joined #RubyOnRails
[11:59:09] jlebrech: 404 error when? during the deploy?
[12:02:27] mikecmpbll: has joined #RubyOnRails
[12:03:34] kapil___: has joined #RubyOnRails
[12:06:26] fmcgeough: has joined #RubyOnRails
[12:13:49] dogweather: has joined #RubyOnRails
[12:19:52] RougeR: has joined #RubyOnRails
[12:20:02] RougeR: any ideas on why im getting this when trying to deploy to aws
[12:20:19] RougeR: https://gist.github.com/CodePint/495c09796160bb71d3f4dfdcfcd7b366
[12:31:19] dminuoso: RougeR: Well just staring at this nobody can say.
[12:31:37] dminuoso: All it indicates is that /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh exited with an abnormal status
[12:32:00] dminuoso: RougeR: I take it `eb status` gives you that log?
[12:32:47] RougeR: eb status doesnt give me much
[12:33:01] dminuoso: RougeR: have you checked the file it named?
[12:33:07] dminuoso: that is: /var/log/eb-activity.log
[12:33:08] yottanami: jlebrech, No, after deploy. when I trying to brows. it is trying to find public directory but there is no public directory
[12:33:09] RougeR: i have no idea how too if im honest
[12:33:16] RougeR: its not a local file
[12:33:47] dminuoso: RougeR: `eb logs` then
[12:33:58] RougeR: that works
[12:34:00] RougeR: retrieving
[12:34:07] RougeR: its my first time using aaws for rails
[12:34:11] jlebrech: yottanami: do your routes work?
[12:38:32] yottanami: jlebrech, It is ok on development version on local machine but on production I just got that error
[12:39:00] RougeR: dminuoso: im reading it now
[12:39:02] RougeR: but heres logs
[12:39:03] RougeR: https://gist.github.com/CodePint/495c09796160bb71d3f4dfdcfcd7b366
[12:39:22] dminuoso: RougeR: there you go, the error is in there :)
[12:40:01] RougeR: yeah i dont understand the error
[12:40:01] OneNeptune: has joined #RubyOnRails
[12:40:05] RougeR: i can see something with devise
[12:41:55] dminuoso: RougeR: https://gist.github.com/CodePint/495c09796160bb71d3f4dfdcfcd7b366#file-eb_log-txt-L80-L84
[12:42:19] OneNeptune: has joined #RubyOnRails
[12:43:27] sandstrom: has joined #RubyOnRails
[12:45:24] yottanami: Here is the only production log http://dpaste.com/219CA9S
[12:46:12] jlebrech: yottanami: are you accessing the api from the same domain?
[12:47:41] RougeR: will give that a go now
[12:47:46] RougeR: dminuoso:
[12:48:48] sandstrom: has joined #RubyOnRails
[12:56:43] Sylario: has joined #RubyOnRails
[12:59:37] RougeR: didnt work when i did eb deploy
[12:59:45] RougeR: im going to try creating the enviroment again
[12:59:48] Technodrome: has joined #RubyOnRails
[12:59:48] RougeR: see if it works
[13:00:36] fmcgeough: has joined #RubyOnRails
[13:01:15] yottanami: jlebrech, No, it seams web server can not call the app
[13:01:27] yottanami: here is the output of capistrano http://dpaste.com/115TX5S
[13:01:40] jlebrech: you need cors set up.
[13:04:07] yottanami: jlebrech, cors?
[13:04:44] jlebrech: cross origin resource scripting
[13:07:39] RougeR: im getting
[13:07:40] RougeR: PG::ConnectionBad: refused aws rails
[13:08:01] RougeR: something post gresy
[13:09:29] RougeR: could it be because my app was running locally
[13:09:40] RougeR: and its some kind of db session
[13:11:09] Saukk: has joined #RubyOnRails
[13:14:44] wethu: has joined #RubyOnRails
[13:20:21] dogweather: has joined #RubyOnRails
[13:36:32] srinidhi: has joined #RubyOnRails
[13:38:30] mtkd: has joined #RubyOnRails
[13:46:52] cagomez: has joined #RubyOnRails
[14:03:39] w0rd-driven: has joined #RubyOnRails
[14:05:40] cagomez: has joined #RubyOnRails
[14:15:53] td123: has joined #RubyOnRails
[14:16:50] asabino: has left #RubyOnRails: ()
[14:25:15] drale2k_: has joined #RubyOnRails
[14:25:33] conta1: has joined #RubyOnRails
[14:30:12] apeiros: has joined #RubyOnRails
[14:34:44] Technodrome: has joined #RubyOnRails
[14:41:48] jottr: has joined #RubyOnRails
[14:51:49] agent_white: has joined #RubyOnRails
[14:54:20] bijan_: has joined #RubyOnRails
[14:59:13] OneNeptu_: has joined #RubyOnRails
[14:59:16] akaiiro: has joined #RubyOnRails
[15:01:24] JamJam_kid: has joined #RubyOnRails
[15:09:16] jrm: has joined #RubyOnRails
[15:16:21] mtkd: has joined #RubyOnRails
[15:23:37] Inside: has joined #RubyOnRails
[15:38:05] OneNeptune: has joined #RubyOnRails
[15:46:26] beilabs: has joined #RubyOnRails
[15:47:29] conta1: has joined #RubyOnRails
[15:47:35] DrYockel: has joined #RubyOnRails
[15:52:10] KeyJoo: has joined #RubyOnRails
[16:01:29] crankhar1er: has joined #RubyOnRails
[16:04:27] [Butch]: has joined #RubyOnRails
[16:08:01] orbyt_: has joined #RubyOnRails
[16:19:50] cagomez: has joined #RubyOnRails
[16:20:16] cagomez: has joined #RubyOnRails
[16:20:51] mtkd: has joined #RubyOnRails
[16:21:02] eckhardt: has joined #RubyOnRails
[16:25:48] dbugger_: has joined #RubyOnRails
[16:30:35] dionysus69: what's the best practice to secure communication between infrastructure? reverse proxy to app server app server to database ?
[16:39:17] OneNeptune: has joined #RubyOnRails
[16:42:41] lxsameer: has joined #RubyOnRails
[16:45:42] orbyt_: has joined #RubyOnRails
[16:48:22] Ergo: has joined #RubyOnRails
[16:50:47] darkhanb: has joined #RubyOnRails
[16:50:51] conta1: has joined #RubyOnRails
[16:52:19] dogweather: has joined #RubyOnRails
[17:01:07] beilabs: has joined #RubyOnRails
[17:04:25] chouhoulis: has joined #RubyOnRails
[17:10:31] eckhardt: has joined #RubyOnRails
[17:10:39] apeiros: has joined #RubyOnRails
[17:11:54] drale2k_: has joined #RubyOnRails
[17:18:53] ryandv: has joined #RubyOnRails
[17:19:06] ryandv: hello - is there any documentation regarding ActiveRecord `self.abstract_class`?
[17:19:14] ryandv: wondering exactly what this flag is for
[17:19:36] ryandv: in Rails 5.0.7 in particular
[17:22:43] lxsameer: has joined #RubyOnRails
[17:25:31] ryandv: has joined #RubyOnRails
[17:27:00] mtkd: has joined #RubyOnRails
[17:30:40] ryandv: has joined #RubyOnRails
[17:34:19] orbyt_: has joined #RubyOnRails
[17:34:55] dviola: has joined #RubyOnRails
[17:37:33] lxsameer: has joined #RubyOnRails
[17:39:45] mtkd: has joined #RubyOnRails
[17:41:46] JamJam_kid: has joined #RubyOnRails
[17:43:33] cagomez: has joined #RubyOnRails
[17:44:42] sameerynho: has joined #RubyOnRails
[17:46:21] mostlybadfly: has joined #RubyOnRails
[17:50:03] jottr: has joined #RubyOnRails
[17:50:49] desperek: has joined #RubyOnRails
[17:51:45] sandstrom: has joined #RubyOnRails
[17:52:28] agent_white: has joined #RubyOnRails
[17:52:30] lxsameer: has joined #RubyOnRails
[17:54:37] cagomez: has joined #RubyOnRails
[17:59:31] jottr: has joined #RubyOnRails
[18:04:12] conta1: has joined #RubyOnRails
[18:07:10] sandstrom: has joined #RubyOnRails
[18:07:20] apeiros: has joined #RubyOnRails
[18:08:18] kapil___: has joined #RubyOnRails
[18:11:42] chouhoulis: has joined #RubyOnRails
[18:25:35] eckhardt: has joined #RubyOnRails
[18:29:58] mikecmpbll: has joined #RubyOnRails
[18:37:44] lxsameer: has joined #RubyOnRails
[18:47:45] lxsameer: has joined #RubyOnRails
[18:49:42] dogweather: has joined #RubyOnRails
[18:56:09] matyf: has joined #RubyOnRails
[19:07:53] tdy: has joined #RubyOnRails
[19:13:18] dogweather: has joined #RubyOnRails
[19:15:45] orbyt_: has joined #RubyOnRails
[19:18:17] glassresistor: has joined #RubyOnRails
[19:21:30] glassresistor: so i have a race condition in a controller where two requests at the same time want to create the same thing instead of one creating and one reading it. https://github.com/codeforamerica/clientcomm-rails/blob/develop/app/models/message.rb#L95-L100
[19:22:30] glassresistor: would the best strategy to be to retry once on that failure or try and something like find_by_and_create
[19:27:31] lxsameer: has joined #RubyOnRails
[19:28:36] wethu: has joined #RubyOnRails
[19:30:52] Cavallari: has joined #RubyOnRails
[19:33:47] cagomez: has joined #RubyOnRails
[19:37:34] lxsameer: has joined #RubyOnRails
[19:38:38] sandstrom: has joined #RubyOnRails
[19:42:34] lxsameer: has joined #RubyOnRails
[19:47:34] dogweather: has joined #RubyOnRails
[19:47:47] lxsameer: has joined #RubyOnRails
[19:49:51] cagomez: has joined #RubyOnRails
[19:51:28] ^mtkd: has joined #RubyOnRails
[19:53:36] apeiros: has joined #RubyOnRails
[19:58:00] mtkd: has joined #RubyOnRails
[20:00:22] gheegh: has joined #RubyOnRails
[20:02:31] mostlybadfly: has joined #RubyOnRails
[20:02:47] lxsameer: has joined #RubyOnRails
[20:03:26] orbyt_: has joined #RubyOnRails
[20:05:02] dogweather: has joined #RubyOnRails
[20:07:11] ElFerna: has joined #RubyOnRails
[20:07:46] adaoraul: has joined #RubyOnRails
[20:10:02] timdotrb: has joined #RubyOnRails
[20:10:12] timdotrb: #join ubuntu
[20:12:59] lxsameer: has joined #RubyOnRails
[20:13:51] hakunin: has joined #RubyOnRails
[20:15:47] hakunin: has left #RubyOnRails: ()
[20:16:21] guillec: has joined #RubyOnRails
[20:19:58] ElFerna: has joined #RubyOnRails
[20:21:04] apeiros: has joined #RubyOnRails
[20:22:02] dogweather: has joined #RubyOnRails
[20:23:14] lxsameer: has joined #RubyOnRails
[20:33:31] lxsameer: has joined #RubyOnRails
[20:33:35] apeiros: has joined #RubyOnRails
[20:35:27] orbyt_: has joined #RubyOnRails
[20:35:42] reber__: has joined #RubyOnRails
[20:39:23] lxsameer: has joined #RubyOnRails
[20:42:14] cagomez: has joined #RubyOnRails
[20:49:11] dogweather: has joined #RubyOnRails
[20:49:36] lxsameer: has joined #RubyOnRails
[20:59:20] cagomez: has joined #RubyOnRails
[20:59:51] lxsameer: has joined #RubyOnRails
[21:03:39] ElFerna: has joined #RubyOnRails
[21:10:05] lxsameer: has joined #RubyOnRails
[21:16:22] Puffball: has joined #RubyOnRails
[21:20:16] lxsameer: has joined #RubyOnRails
[21:29:07] dogweather: has joined #RubyOnRails
[21:30:31] lxsameer: has joined #RubyOnRails
[21:32:59] SteenJobs: has joined #RubyOnRails
[21:40:42] lxsameer: has joined #RubyOnRails
[21:46:25] dogweather: has joined #RubyOnRails
[21:47:01] Inside: I love when I search for information about an issue and come across a post I made 1y4mo ago
[21:47:06] Inside: ... about the same issue
[21:47:07] Inside: with no resolution
[21:50:23] dogweather: has joined #RubyOnRails
[21:50:55] lxsameer: has joined #RubyOnRails
[21:57:16] glassresistor: has joined #RubyOnRails
[22:01:10] lxsameer: has joined #RubyOnRails
[22:01:53] benlieb: has joined #RubyOnRails
[22:05:21] ^mtkd: has joined #RubyOnRails
[22:05:44] akaiiro: has joined #RubyOnRails
[22:08:47] kapil___: has joined #RubyOnRails
[22:10:37] fmcgeough: has joined #RubyOnRails
[22:11:25] lxsameer: has joined #RubyOnRails
[22:12:20] mtkd: has joined #RubyOnRails
[22:13:19] SteenJobs: has joined #RubyOnRails
[22:17:02] akaiiro: has joined #RubyOnRails
[22:19:47] benlieb: has joined #RubyOnRails
[22:20:26] ElFerna: has joined #RubyOnRails
[22:21:40] lxsameer: has joined #RubyOnRails
[22:21:57] benlieb: has joined #RubyOnRails
[22:23:55] akaiiro: has joined #RubyOnRails
[22:30:54] akaiiro: has joined #RubyOnRails
[22:31:47] lxsameer: has joined #RubyOnRails
[22:42:01] lxsameer: has joined #RubyOnRails
[22:48:44] kevinburke: has joined #RubyOnRails
[22:48:44] kevinburke: how do you test callbacks that include e.g. "saved_change_to_attribute?"
[22:48:56] kevinburke: if I test the method directly those don't fire. I can call save! but that results in the callback firing twice
[22:49:02] kevinburke: and/or other callbacks firing
[22:51:25] dogweather: has joined #RubyOnRails
[22:52:18] lxsameer: has joined #RubyOnRails
[23:02:27] lxsameer: has joined #RubyOnRails
[23:10:00] Inside: kevinburke: how about a mock?
[23:10:24] Inside: https://semaphoreci.com/community/tutorials/mocking-in-ruby-with-minitest
[23:11:17] Inside: You essentially replace saved_change_to_attribute with a mock object and then do an assert to see if it was called
[23:11:47] Inside: But then you'd need to do a separate test to make sure that saved_change_to_attribute did what you expected to
[23:12:43] lxsameer: has joined #RubyOnRails
[23:13:48] roamingdog: has joined #RubyOnRails
[23:22:55] lxsameer: has joined #RubyOnRails
[23:32:53] orbyt_: has joined #RubyOnRails
[23:33:08] lxsameer: has joined #RubyOnRails
[23:39:25] mikecmpbll: has joined #RubyOnRails
[23:43:01] dogweather: has joined #RubyOnRails
[23:43:20] lxsameer: has joined #RubyOnRails
[23:45:28] matyf: has joined #RubyOnRails
[23:53:30] lxsameer: has joined #RubyOnRails
[23:55:52] SteenJobs: has joined #RubyOnRails