« Back to channel list

#RubyOnRails - 17 January 2019

« Back 1 day Forward 1 day »
[00:06:07] mat_bug: has joined #RubyOnRails
[00:09:08] ariedler: has joined #RubyOnRails
[00:09:53] xhoy: has joined #RubyOnRails
[00:12:53] jenrzzz: has joined #RubyOnRails
[00:15:09] IGnorAND: default_scope { joins('INNER JOIN security_id_request ON security_id_cards.request_id = security_id_request.id') } <- how can I make this into an include?
[00:17:02] mat_bug: has joined #RubyOnRails
[00:29:05] cagomez: has joined #RubyOnRails
[00:29:28] mat_bug: has joined #RubyOnRails
[00:30:07] chouhoulis: has joined #RubyOnRails
[00:30:33] cagomez: has joined #RubyOnRails
[00:40:06] mat_bug: has joined #RubyOnRails
[00:45:06] jenrzzz: has joined #RubyOnRails
[00:56:47] sevenseacat: has joined #RubyOnRails
[01:03:18] mat_bug: has joined #RubyOnRails
[01:06:22] ogotai: has joined #RubyOnRails
[01:11:24] quazimodo: has joined #RubyOnRails
[01:14:52] uplime: has joined #RubyOnRails
[01:19:32] mat_bug: has joined #RubyOnRails
[01:21:49] cagomez: has joined #RubyOnRails
[01:28:55] ghormoon: has joined #RubyOnRails
[01:31:58] mat_bug: has joined #RubyOnRails
[01:32:06] IGnorAND: nevermind, I figured it out, it's based on the has_many and belongs to relationship
[01:34:34] IGnorAND: I thought the includes allowed me to eager load the stuff. But it seems I still get 2 seperate select statements
[01:45:11] mat_bug: has joined #RubyOnRails
[01:48:06] thoraxe: so this is a super dumb webpacker/webpack question, but i just have a vanilla javascript file i want to insert. it's not an npm module or anything. i tried putting the javascript in index.js in a folder (mdb) inside app/javascripts but when I try = = javascript_pack_tag 'mdb' I get an error about it not being in the manifest
[01:54:35] brent__: has joined #RubyOnRails
[01:58:12] mat_bug: has joined #RubyOnRails
[01:58:35] tdy: has joined #RubyOnRails
[02:00:46] jenrzzz: has joined #RubyOnRails
[02:08:30] jenrzzz: has joined #RubyOnRails
[02:12:11] tjbp: has joined #RubyOnRails
[02:19:10] jenrzzz: has joined #RubyOnRails
[02:20:24] quazimodo: has joined #RubyOnRails
[02:21:15] xhoy: has joined #RubyOnRails
[02:22:42] mangold: has joined #RubyOnRails
[02:23:16] IGnorAND: did you import it in the main.js?
[02:23:40] Dreamer3: has joined #RubyOnRails
[02:23:52] thoraxe: IGnorAND: `main.js` ?
[02:24:05] IGnorAND: thoraxe: in vuejs it's main.js
[02:24:12] IGnorAND: Dont recall what it should be in rails
[02:24:19] IGnorAND: guessing application.js or something
[02:25:30] thoraxe: so you could be talking about any number of things right now
[02:26:06] thoraxe: i don't believe that application.js is used in the traditional sense when using webpack
[02:26:15] IGnorAND: I just recently started with webpacker etc, fought a lot with it, dropped it for vuejs + rails --api, so I dont remember much
[02:26:29] IGnorAND: let me check if I have an old project
[02:27:35] IGnorAND: in my layouts/application.html.erb I have a <%= javascript_pack_tag 'application' %>
[02:27:48] IGnorAND: in that application.js is where I placed my imports
[02:30:38] thoraxe: so i inherited this app and i haven't done much ruby in quite some time so i am really drowning a bit
[02:30:53] thoraxe: there are several javascript_pack_tags in the header
[02:31:05] thoraxe: they seem to correspond with a few different folders in app/javascript
[02:31:27] thoraxe: so i figure hey, i'll add a folder that looks like the other folders and then javascript_pack_tag mdb
[02:31:31] IGnorAND: that sounds good
[02:31:33] thoraxe: but then it complains about mdb not being in the manifest
[02:31:43] thoraxe: restarting the server doesn't change that.
[02:32:12] thoraxe: but i don't really see where any of the folders that ARE pulled with javascript_pack_Tag are configured to whatever
[02:37:11] helpa-bot: has joined #RubyOnRails
[02:37:24] darris: has joined #RubyOnRails
[02:38:07] salasrod_: has joined #RubyOnRails
[02:38:51] Gizmokid2010: has joined #RubyOnRails
[02:39:12] TheMoonMaster_: has joined #RubyOnRails
[02:39:42] helpa-bot: has joined #RubyOnRails
[02:44:05] cnsvc: has joined #RubyOnRails
[02:44:24] helpa-bot: has joined #RubyOnRails
[02:46:58] helpa: has joined #RubyOnRails
[02:49:02] fcser___: has joined #RubyOnRails
[02:53:13] wethu: has joined #RubyOnRails
[02:56:04] jenrzzz: has joined #RubyOnRails
[03:00:43] mat_bug: has joined #RubyOnRails
[03:18:45] beholders_eye: has joined #RubyOnRails
[03:28:33] beholders_eye: has joined #RubyOnRails
[03:38:19] gambl0re: has joined #RubyOnRails
[03:38:42] Saukk: has joined #RubyOnRails
[03:45:26] juria_roberts: has joined #RubyOnRails
[03:45:44] juria_roberts: How do I prevent the stack trace from appearing in production?
[03:53:23] mat_bug: has joined #RubyOnRails
[03:53:41] cnsvc: has joined #RubyOnRails
[04:10:08] braincrash: has joined #RubyOnRails
[04:12:30] Tempesta: has joined #RubyOnRails
[04:12:53] uksio: has joined #RubyOnRails
[04:13:06] DTZUZO: has joined #RubyOnRails
[04:18:23] mat_bug: has joined #RubyOnRails
[04:22:30] tdy: has joined #RubyOnRails
[04:25:42] kapil____: has joined #RubyOnRails
[04:26:12] uks: has joined #RubyOnRails
[04:42:26] mat_bug: has joined #RubyOnRails
[04:54:56] mat_bug: has joined #RubyOnRails
[04:56:27] helpa-bot: has joined #RubyOnRails
[04:58:59] helpa: has joined #RubyOnRails
[04:58:59] ^amra: has joined #RubyOnRails
[04:59:43] ^amra: has joined #RubyOnRails
[05:30:26] uksio: has joined #RubyOnRails
[05:30:31] mat_bug: has joined #RubyOnRails
[05:50:28] uks: has joined #RubyOnRails
[05:55:51] paranoicsan: has joined #RubyOnRails
[05:58:07] tdy: has joined #RubyOnRails
[05:59:06] DTZUZO: has joined #RubyOnRails
[06:06:58] mat_bug: has joined #RubyOnRails
[06:14:28] Technodrome: has joined #RubyOnRails
[06:17:30] mat_bug: has joined #RubyOnRails
[06:41:36] mat_bug: has joined #RubyOnRails
[07:06:17] mat_bug: has joined #RubyOnRails
[07:11:50] za1b1tsu: has joined #RubyOnRails
[07:18:41] mat_bug: has joined #RubyOnRails
[07:18:52] sandstrom: has joined #RubyOnRails
[07:21:50] Jervis_: has joined #RubyOnRails
[07:33:47] kapil____: has joined #RubyOnRails
[07:41:17] paranoicsan: has joined #RubyOnRails
[07:41:40] mat_bug: has joined #RubyOnRails
[07:44:25] Linuus: has joined #RubyOnRails
[07:56:02] Technodrome: has joined #RubyOnRails
[08:00:40] mat_bug: has joined #RubyOnRails
[08:01:32] conta: has joined #RubyOnRails
[08:53:43] sandstrom: has joined #RubyOnRails
[08:58:10] mikecmpbll: has joined #RubyOnRails
[08:59:48] beholders_eye: has joined #RubyOnRails
[09:05:14] srinidhi: has joined #RubyOnRails
[09:05:34] paranoicsan: has joined #RubyOnRails
[09:06:47] RedNifre: has joined #RubyOnRails
[09:14:51] Avinash: has joined #RubyOnRails
[09:17:38] ChrisBr: has joined #RubyOnRails
[09:18:07] beholders_eye: has joined #RubyOnRails
[09:26:52] fox_mulder_cp: has joined #RubyOnRails
[09:31:07] status402: has joined #RubyOnRails
[09:35:29] Linuus`: has joined #RubyOnRails
[09:37:30] Ergo: has joined #RubyOnRails
[09:40:58] fox_mulder_cp: has joined #RubyOnRails
[09:43:14] mikecmpbll: anyone have production experience with action cable?
[09:44:38] mikecmpbll: can't find any comment on whether it's advisable to run action cable server(s) separately from the rails app or to mount in the application?
[09:45:23] mikecmpbll: passenger guide demonstrates both but doesn't really compare https://www.phusionpassenger.com/library/config/standalone/action_cable_integration/#running-the-action-cable-server-as-a-separate-passenger-standalone-instance
[09:50:00] jenrzzz: has joined #RubyOnRails
[09:57:56] sameerynho: has joined #RubyOnRails
[10:10:54] sandstrom: has joined #RubyOnRails
[10:15:46] paranoicsan: has joined #RubyOnRails
[10:22:13] Technodrome: has joined #RubyOnRails
[10:23:03] status402: has joined #RubyOnRails
[10:36:24] srinidhi: has joined #RubyOnRails
[11:10:18] srinidhi: has joined #RubyOnRails
[11:10:19] Technodrome: has joined #RubyOnRails
[11:19:34] Tempesta: has joined #RubyOnRails
[11:20:34] Avinash: has joined #RubyOnRails
[11:44:21] fox_mulder_cp: ah. in my 18.04.1 ubuntu nginx + pasenger damaged yesterday when upgrade distro to .1 (
[12:14:15] Technodrome: has joined #RubyOnRails
[12:20:55] beholders_eye: has joined #RubyOnRails
[12:26:43] Ergo: has joined #RubyOnRails
[12:29:39] beholders_eye: has joined #RubyOnRails
[12:32:07] jaddison: has joined #RubyOnRails
[12:50:40] beholders_eye: has joined #RubyOnRails
[12:52:17] conta1: has joined #RubyOnRails
[12:52:57] status402_: has joined #RubyOnRails
[13:24:57] status402: has joined #RubyOnRails
[13:31:29] paranoicsan: has joined #RubyOnRails
[13:36:00] srinidhi: has joined #RubyOnRails
[13:46:28] status402: has joined #RubyOnRails
[13:54:09] RedNifre: has joined #RubyOnRails
[14:06:24] Avinash: has joined #RubyOnRails
[14:07:31] status402: has joined #RubyOnRails
[14:14:32] status402: has joined #RubyOnRails
[14:20:49] alan_w: has joined #RubyOnRails
[14:21:33] crankharder: has joined #RubyOnRails
[14:29:55] andywww: has joined #RubyOnRails
[14:37:38] status402: has joined #RubyOnRails
[14:47:27] wethu: has joined #RubyOnRails
[14:50:21] status402: has joined #RubyOnRails
[14:54:59] krawchyk: has joined #RubyOnRails
[15:18:30] sandstrom: has joined #RubyOnRails
[15:25:28] krawchyk: has joined #RubyOnRails
[15:27:28] Psy-Q: i'm trying to build a catchall controller that responds to a final catchall route so i can give a decent JSON response to RoutingError. it's not going well. simply using "render json:" doesn't seem to work because Rails expects response, request objects and other stuff to be there (?)
[15:28:02] Psy-Q: when i give it those, it turns into "#<Module::DelegationError: ActionController::Metal#status= delegated to @_response.status=, but @_response is nil" (well, because response is "response", if it isn't, it explodes earlier than this)
[15:30:05] Psy-Q: do i simply fill those up as well and give it @_response = response; @_request = request; @_env = request.env ?
[15:31:37] tdy: has joined #RubyOnRails
[15:32:14] Psy-Q: hm, that makes it stop complain but the first middleware in the chain falls over
[15:32:19] chouhoulis: has joined #RubyOnRails
[15:34:08] Psy-Q: because it can't do @app.call(env) since @app isn't there. phew.
[15:39:23] sandstrom: has joined #RubyOnRails
[15:43:46] conta1: has joined #RubyOnRails
[15:56:49] za1b1tsu_: has joined #RubyOnRails
[16:10:04] blackmesa: has joined #RubyOnRails
[16:17:51] ryandv: has joined #RubyOnRails
[16:19:28] Psy-Q: i think i'm barking up a lot of wrong trees with this
[16:20:19] ryandv: What is the most robust solution for constructing Array instances from a PostgreSQL query using an array aggregation? e.g. `ActiveRecord::Base.connection.execute('SELECT ARRAY_AGG(id) FROM foos')`
[16:22:29] Psy-Q: it turns out i was probably using a method name that is sort of reserved by controllers higher up the food chain: dispatch
[16:35:23] Psy-Q: eh, but i can't rescue ActionController::RoutingError in the catchall controller either
[16:42:49] jackhum: has joined #RubyOnRails
[16:54:15] conta1: has joined #RubyOnRails
[16:54:23] orbyt_: has joined #RubyOnRails
[16:59:11] cagomez: has joined #RubyOnRails
[16:59:49] cagomez: has joined #RubyOnRails
[17:00:30] cagomez: has joined #RubyOnRails
[17:01:12] cagomez: has joined #RubyOnRails
[17:01:49] cagomez: has joined #RubyOnRails
[17:02:26] cagomez: has joined #RubyOnRails
[17:06:04] reber: has joined #RubyOnRails
[17:13:04] gambl0re: has joined #RubyOnRails
[17:14:37] jenrzzz: has joined #RubyOnRails
[17:20:43] ivanskie: has joined #RubyOnRails
[17:36:30] Yzguy: has joined #RubyOnRails
[17:38:41] Yzguy: has joined #RubyOnRails
[17:43:23] ivanskie: has joined #RubyOnRails
[17:45:08] maryo: has joined #RubyOnRails
[17:47:56] Dbugger: has joined #RubyOnRails
[18:01:08] srinidhi: has joined #RubyOnRails
[18:07:53] ivanskie: has joined #RubyOnRails
[18:15:35] Guest55233: has joined #RubyOnRails
[18:21:49] mikecmpbll: has joined #RubyOnRails
[18:22:58] cnsvc: has joined #RubyOnRails
[18:27:34] sandstrom: has joined #RubyOnRails
[18:33:30] za1b1tsu: has joined #RubyOnRails
[18:36:44] blackmesa: has joined #RubyOnRails
[18:51:38] beholders_eye: has joined #RubyOnRails
[19:17:14] beholders_eye: has joined #RubyOnRails
[19:22:04] lexileo: has joined #RubyOnRails
[19:43:35] gambl0re: has joined #RubyOnRails
[19:46:33] orbyt_: has joined #RubyOnRails
[19:53:33] jenrzzz: has joined #RubyOnRails
[20:07:07] duderonomy: has joined #RubyOnRails
[20:07:40] blackmesa1: has joined #RubyOnRails
[20:22:46] jenrzzz: has joined #RubyOnRails
[20:36:01] chouhoulis: has joined #RubyOnRails
[20:42:49] hahuang65: has joined #RubyOnRails
[20:43:06] ur5us: has joined #RubyOnRails
[20:44:23] orbyt_: has joined #RubyOnRails
[21:04:59] jenrzzz: has joined #RubyOnRails
[21:14:59] orbyt_: has joined #RubyOnRails
[21:16:13] jaddison: has joined #RubyOnRails
[21:32:15] AntU: has joined #RubyOnRails
[21:33:59] mksybr: has joined #RubyOnRails
[21:34:07] AntU: has left #RubyOnRails: ()
[21:37:40] Technodrome: has joined #RubyOnRails
[22:02:26] chouhoulis: has joined #RubyOnRails
[22:08:06] chouhoulis: has joined #RubyOnRails
[22:13:25] chouhoulis: has joined #RubyOnRails
[22:14:11] defsdoor: has joined #RubyOnRails
[22:19:19] chouhoulis: has joined #RubyOnRails
[22:22:32] Puffball: has joined #RubyOnRails
[22:25:31] chouhoulis: has joined #RubyOnRails
[22:25:36] blackmesa1: has joined #RubyOnRails
[22:26:51] jottr: has joined #RubyOnRails
[22:31:14] chouhoulis: has joined #RubyOnRails
[22:36:31] chouhoulis: has joined #RubyOnRails
[22:41:01] chouhoulis: has joined #RubyOnRails
[22:46:34] chouhoulis: has joined #RubyOnRails
[22:51:01] chouhoulis: has joined #RubyOnRails
[22:56:29] chouhoulis: has joined #RubyOnRails
[23:02:01] chouhoulis: has joined #RubyOnRails
[23:07:36] chouhoulis: has joined #RubyOnRails
[23:17:31] chouhoulis: has joined #RubyOnRails
[23:25:09] ellcs: has joined #RubyOnRails
[23:29:00] chouhoulis: has joined #RubyOnRails
[23:29:27] orbyt_: has joined #RubyOnRails
[23:34:11] chouhoulis: has joined #RubyOnRails
[23:39:46] chouhoulis: has joined #RubyOnRails
[23:42:35] Technodrome: has joined #RubyOnRails
[23:45:24] chouhoulis: has joined #RubyOnRails
[23:50:50] chouhoulis: has joined #RubyOnRails
[23:56:20] chouhoulis: has joined #RubyOnRails