« Back to channel list

#RubyOnRails - 26 February 2019

« Back 1 day Forward 1 day »
[00:00:22] Net: Radar: heading out. thanks for the chat. this channel feels pretty dead these days.
[00:00:35] Radar: Net: it's deader than usual ;) Thanks for the chat also.
[00:21:26] quazimodo: has joined #RubyOnRails
[00:22:13] quazimodo: has joined #RubyOnRails
[00:23:28] armyriad: has joined #RubyOnRails
[00:24:53] tdy2: has joined #RubyOnRails
[00:27:29] phaul: has joined #RubyOnRails
[00:30:33] mangold: has joined #RubyOnRails
[00:46:25] ariedler_: has joined #RubyOnRails
[01:17:15] peterhil: has joined #RubyOnRails
[01:41:50] kvda: has joined #RubyOnRails
[01:44:06] agent_white: has joined #RubyOnRails
[01:47:36] sevenseacat: has joined #RubyOnRails
[02:02:58] bruul: has joined #RubyOnRails
[02:35:59] blackmesa: has joined #RubyOnRails
[02:36:03] Xiti: has joined #RubyOnRails
[02:36:54] haxx0r: has joined #RubyOnRails
[02:42:34] haxx0r: i'm too stupid to make a webserver running for rails. i have 18.10 and i read passenger has issues with it so i tried puma
[02:42:45] mheld: has joined #RubyOnRails
[02:44:12] haxx0r: i did this thing https://prograils.com/posts/capistrano-deploy-to-ubuntu-with-systemd-nginx-puma-and-rbenv but it's not working
[02:45:01] haxx0r: i only find 2019/02/26 02:43:48 [crit] 12508#12508: *1 connect() to unix:/var/www/pharmary/shared/tmp/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 172.68.242.141, server: test.schauen.me, request: "GET / HTTP/1.1", upstream: "http://unix:/var/www/pharmary/shared/tmp/sockets/puma.sock:/", host: "test.
[02:45:02] haxx0r: schauen.me" in my passenger error.log
[02:48:05] haxx0r: so what's the easiest way to install a webserver? i don't care apache, nginx or whatever. i just need to have it running
[02:54:00] Technodrome: has joined #RubyOnRails
[03:11:52] kvda: has joined #RubyOnRails
[03:23:12] orbyt_: has joined #RubyOnRails
[04:05:19] gambl0re: has joined #RubyOnRails
[04:08:37] bruul: has joined #RubyOnRails
[04:09:59] braincrash: has joined #RubyOnRails
[04:14:01] tdy2: has joined #RubyOnRails
[04:29:15] srinidhi: has joined #RubyOnRails
[04:58:42] salasrod: has joined #RubyOnRails
[05:00:10] cnsvc_: has joined #RubyOnRails
[05:06:09] ariedler: has joined #RubyOnRails
[05:24:38] srinidhi: has joined #RubyOnRails
[05:39:34] v01d4lph4: has joined #RubyOnRails
[05:39:57] v01d4lph4: has joined #RubyOnRails
[05:51:10] uks: has joined #RubyOnRails
[05:51:46] reber: has joined #RubyOnRails
[06:00:51] tdy2: has joined #RubyOnRails
[06:18:40] conta: has joined #RubyOnRails
[06:52:57] srinidhi: has joined #RubyOnRails
[07:09:29] SteenJobs: has joined #RubyOnRails
[07:33:58] tdy2: has joined #RubyOnRails
[08:01:26] lankanmon: has joined #RubyOnRails
[08:09:12] fox_mulder_cp: haxx0r i can post passenger configs for my rails app for you
[08:09:32] fox_mulder_cp: but i don't know hot start resque and WS server ((
[08:14:24] Dbugger: has joined #RubyOnRails
[08:32:53] lxsameer: has joined #RubyOnRails
[08:36:33] blackmesa: has joined #RubyOnRails
[08:39:16] pavelz: hi, I am trying to render partials but vars are not being passed in, how come? other parts of the app do the same and it works ie. render "admin/user/list
[08:39:25] pavelz: ", locked: true
[08:40:01] pavelz: locked in undefined. when I do locals, I get locals_assigns but that seems a bit inelegant
[08:41:45] tbuehlmann: pavelz: try `render 'admin/user/list', locals: {locked: true}`
[08:42:46] mangold: has joined #RubyOnRails
[08:57:32] mikecmpbll: has joined #RubyOnRails
[09:07:17] blackmesa: has joined #RubyOnRails
[09:25:40] helpa-bot: has joined #RubyOnRails
[09:27:05] helpa: has joined #RubyOnRails
[09:31:26] ghormoon: has joined #RubyOnRails
[09:32:36] peterhil`: has joined #RubyOnRails
[09:35:15] tdy2: has joined #RubyOnRails
[09:36:02] adgtl: has joined #RubyOnRails
[09:36:18] beingjohnm: has joined #RubyOnRails
[09:36:38] srinidhi: has joined #RubyOnRails
[09:43:10] srinidhi: has joined #RubyOnRails
[09:57:30] lxsameer: has joined #RubyOnRails
[09:57:45] blackmesa: has joined #RubyOnRails
[09:59:36] crankharder: has joined #RubyOnRails
[10:09:41] tdy2: has joined #RubyOnRails
[10:11:57] status402: has joined #RubyOnRails
[10:34:35] mikecmpb_: has joined #RubyOnRails
[10:47:53] Ergo: has joined #RubyOnRails
[10:49:00] sphalerite: has joined #RubyOnRails
[10:53:33] mangold: has joined #RubyOnRails
[10:59:11] blackmesa: has joined #RubyOnRails
[11:26:41] conta: has joined #RubyOnRails
[11:37:47] mangold: has joined #RubyOnRails
[11:47:38] lankanmon: has joined #RubyOnRails
[11:55:23] ariedler: has joined #RubyOnRails
[11:57:31] ariedler: has joined #RubyOnRails
[11:59:23] blackmesa: has joined #RubyOnRails
[12:26:16] mikecmpbll: has joined #RubyOnRails
[12:26:29] tdy3: has joined #RubyOnRails
[12:26:38] peterhil: has joined #RubyOnRails
[12:28:38] tdy4: has joined #RubyOnRails
[12:28:52] Gizmokid2010: has joined #RubyOnRails
[12:29:29] status402_: has joined #RubyOnRails
[12:29:30] arooni: has joined #RubyOnRails
[12:30:42] adgtl: has joined #RubyOnRails
[12:30:49] lghtstkr: has joined #RubyOnRails
[12:30:53] dustinm`_: has joined #RubyOnRails
[12:31:00] b6b: has joined #RubyOnRails
[12:31:09] w0rd-driven: has joined #RubyOnRails
[12:31:15] Linuus: has joined #RubyOnRails
[12:31:50] cgfbee: has joined #RubyOnRails
[12:32:07] crankharder: has joined #RubyOnRails
[12:32:42] akosednar: has joined #RubyOnRails
[13:09:58] mikecmpbll: has joined #RubyOnRails
[13:14:32] apparition: has joined #RubyOnRails
[13:20:49] gambl0re: has joined #RubyOnRails
[13:33:04] Ropeney: has joined #RubyOnRails
[13:35:12] Ropeney: has joined #RubyOnRails
[13:35:23] nixroot: has joined #RubyOnRails
[13:40:34] pavelz: wreird that it didin't work until I have killed spring -9
[13:52:31] Saukk: has joined #RubyOnRails
[13:59:42] blackmesa: has joined #RubyOnRails
[14:06:16] AGMS: has joined #RubyOnRails
[14:26:04] blackmesa: has joined #RubyOnRails
[14:28:12] ariedler: has joined #RubyOnRails
[14:29:11] prestorium: has joined #RubyOnRails
[14:30:36] prestorium: Hi all. I'm replacing a legacy API with Rails 5.2.2. This API is already being used by a client. I can't change this client. This client does a binary upload on request body. Can I handle that on Rails? I'm googling for "rails binary file upload" without success.
[14:30:54] prestorium: I'm trying to use ActiveStorage, but I'm open to any gem
[14:32:05] prestorium: My goal is to make something a little bit more modern than "index.php", with close to no maintenance time. I opted for Rails mainly because it is easier (for me) to write tests using ruby/rspec.
[14:33:13] prestorium: Summary: PUT /api/my-endpoint must be handled by rails. :)
[14:34:23] fox_mulder_cp: prestorium: nginx: upstream, apache has option like this too
[14:35:01] prestorium: fox_mulder_cp what do you mean?
[14:35:08] prestorium: (I'm using nginx)
[14:35:31] fox_mulder_cp: http://nginx.org/en/docs/http/ngx_http_upstream_module.html
[14:38:12] ariedler: has joined #RubyOnRails
[14:38:31] prestorium: fox_mulder_cp sorry, how can upstream help me? As far as I understand, it only group servers to be used by proxy_pass & friends... ?
[14:46:25] fox_mulder_cp: for server /api endpoint and proxy in to passenger or some
[15:08:25] mangold: has joined #RubyOnRails
[15:12:02] bruul: has joined #RubyOnRails
[15:25:38] conta: has joined #RubyOnRails
[15:33:50] SteenJobs: has joined #RubyOnRails
[15:42:33] skryking: has joined #RubyOnRails
[15:48:09] crankharder: has joined #RubyOnRails
[15:49:53] DTZUZO: has joined #RubyOnRails
[15:56:09] dviola: has joined #RubyOnRails
[15:57:52] dviola: I have this piece of code https://gist.github.com/diegoviola/f9a99d5cc35d0813ff32212146d14f54 which returns "Rack::Timeout::RequestTimeoutException: Request waited 3ms, then ran for longer than 29997ms"
[15:58:03] dviola: the query takes under a second I guess the slow part is the render json
[15:58:12] dviola: any ideas how to speed that up?
[15:59:09] tbuehlmann: guessing is not enough, you should find out what really slows it down first
[15:59:40] dviola: right, I don't like guessing also
[16:00:06] dviola: there are 300k users on OrganizationsUsers::User
[16:02:42] hd1: has joined #RubyOnRails
[16:04:00] mauro1254: has joined #RubyOnRails
[16:06:33] v01d4lph4: has joined #RubyOnRails
[16:19:17] scapegoatee: has joined #RubyOnRails
[16:19:34] tdy4: has joined #RubyOnRails
[16:19:50] orbyt_: has joined #RubyOnRails
[16:21:06] pLaTo0n: has joined #RubyOnRails
[16:24:43] scapegoatee: has left #RubyOnRails: ("Leaving...")
[16:31:12] prestorium: has joined #RubyOnRails
[16:37:48] gambl0re: has joined #RubyOnRails
[16:53:40] yoshie902a: has joined #RubyOnRails
[16:55:37] yoshie902a: need help with a reasonable naming convention for a polymorphic association. I have a table called “Firm” which belongs_to :firmable, :polymorphic => true, but I keep thinking there needs to be a better name than Firmable
[16:55:51] yoshie902a: any suggestions?
[17:00:42] [Butch]: has joined #RubyOnRails
[17:03:46] yoshie902a: has left #RubyOnRails: ()
[17:15:08] beingjohnm: has joined #RubyOnRails
[17:29:54] conta: has joined #RubyOnRails
[17:36:16] Technodrome: has joined #RubyOnRails
[17:43:06] orbyt_: has joined #RubyOnRails
[17:49:39] hammer065: has joined #RubyOnRails
[17:49:47] orbyt_: has joined #RubyOnRails
[17:51:55] szulak_: has joined #RubyOnRails
[17:52:43] blackmesa: has joined #RubyOnRails
[18:02:08] blackmesa: has joined #RubyOnRails
[18:06:58] defsdoor: has joined #RubyOnRails
[18:16:11] conta: has joined #RubyOnRails
[18:18:24] sameerynho: has joined #RubyOnRails
[18:42:06] Dbugger: has joined #RubyOnRails
[18:45:53] conta2: has joined #RubyOnRails
[18:59:20] SteenJobs: has joined #RubyOnRails
[18:59:58] KeyJoo: has joined #RubyOnRails
[19:15:55] reber: has joined #RubyOnRails
[19:16:29] reber__: has joined #RubyOnRails
[19:19:46] adgtl-: has joined #RubyOnRails
[19:20:40] b6b: has joined #RubyOnRails
[19:20:56] Linuus: has joined #RubyOnRails
[19:22:54] platoon23: has joined #RubyOnRails
[19:24:15] hammer065: has joined #RubyOnRails
[19:25:18] Technodrome: has joined #RubyOnRails
[19:26:06] agent_white: has joined #RubyOnRails
[19:30:25] prestorium: has joined #RubyOnRails
[19:37:48] conta1: has joined #RubyOnRails
[19:46:34] Tempesta: has joined #RubyOnRails
[21:29:33] helpa: has joined #RubyOnRails
[21:31:20] Radar: !botsnack
[21:31:20] helpa: Nom nom. Thanks, Radar!
[21:32:18] kvda: has joined #RubyOnRails
[21:33:05] Radar: srruby: But seriously tho: https://gist.github.com/radar/5b1a913028a23b9610663ea78df3e1c3
[21:33:28] Radar: srruby: describe is used to describe the behaviours of the class / methods. The "#permissions" thing here would be an instance method called permissions
[21:33:45] Radar: srruby: context is used to describe different... situations, contexts? When <something is different>...
[21:34:00] Radar: The "it" is used to actually run the tests
[21:36:24] srruby: subject is unfortunate... They should use plain ruby instead of creating a lisp-like dsl
[21:51:37] Xiti: has joined #RubyOnRails
[22:04:46] cnsvc_: has joined #RubyOnRails
[22:09:44] tdy: has joined #RubyOnRails
[22:10:58] kvda: has joined #RubyOnRails
[22:14:37] gambl0re: has joined #RubyOnRails
[22:32:42] Dbugger: has joined #RubyOnRails
[22:34:40] Technodrome: has joined #RubyOnRails
[23:02:26] orbyt_: has joined #RubyOnRails
[23:13:34] benlieb: has joined #RubyOnRails
[23:24:04] newton: could someone point me in the right direction with inverse_of? should I be expecting the query to not make the second Person called? https://gist.github.com/jameswritescode/5c6659e89f35f385e07550d92a180be5
[23:24:24] newton: s/called/call
[23:26:22] newton: lol nvm. there was another has_many :listings hidden in some other code messing itup
[23:27:32] benlieb: How do I access the render :layout option in a view?
[23:27:55] benlieb: controller.class.send(:_layout) will access the layout, but only if it's defined in the class with layout :layout, not if it's defined in the render cal
[23:28:03] benlieb: render layout: x || y
[23:28:10] SteenJobs: has joined #RubyOnRails
[23:33:41] blackmesa: has joined #RubyOnRails
[23:35:41] kvda: has joined #RubyOnRails
[23:39:09] gambl0re: has joined #RubyOnRails