« Back to channel list

#RubyOnRails - 16 January 2019

« Back 1 day Forward 1 day »
[00:01:49] mat_bug: has joined #RubyOnRails
[00:07:50] mat_bug: has joined #RubyOnRails
[00:10:47] hnanon: has joined #RubyOnRails
[00:11:44] hnanon: Is it a good idea to sprinkle Rails.logger.info messages within ifs and elses?
[00:11:59] hnanon: (specifically, within a job)
[00:19:52] jaddison: has joined #RubyOnRails
[00:19:53] mat_bug: has joined #RubyOnRails
[00:25:53] mat_bug: has joined #RubyOnRails
[00:26:41] THKitten: has left #RubyOnRails: ()
[00:38:17] mat_bug: has joined #RubyOnRails
[00:50:54] mat_bug: has joined #RubyOnRails
[00:51:01] ur5us: has joined #RubyOnRails
[00:52:02] thoraxe: has joined #RubyOnRails
[00:53:20] thoraxe: has joined #RubyOnRails
[00:54:19] thoraxe: so i am digging into an inherited codebase and i've never worked with webpack before. I've read some of the docs and blogs but I'm still confused. I see: = javascript_pack_tag 'manifest'
[00:54:37] thoraxe: but there's nothing in app/javascript/manifest -- that folder doesn't even exist
[00:54:55] thoraxe: i'm guessing it has something to do wiht yarn but my google-fu is failing me
[00:56:09] orbyt_: has joined #RubyOnRails
[00:56:56] mat_bug: has joined #RubyOnRails
[01:01:28] thoraxe: hmm maybe its' webpack-manifest-plugin
[01:02:12] Scriptonaut: has joined #RubyOnRails
[01:02:56] mat_bug: has joined #RubyOnRails
[01:03:25] Scriptonaut: I'm having some really strange behavior with overriding a setter method on an activerecord object, I've explained the error in the gist I'm about to post, but I'll summarize here. I call super in a method override for a setter method. When I call that method, I get "NoMethoderror: super: no superclass method". However the original method is defined, when I comment out the method override definitio
[01:03:31] Scriptonaut: n I can call it just fine
[01:03:34] Scriptonaut: https://gist.github.com/robins35/037d32e052d3099d8ce317c9c2c6c19d
[01:03:39] uplime: has joined #RubyOnRails
[01:03:50] Scriptonaut: also when I comment out the method override, my_object.methods includes my method. So the error is complaining that there is no superclass method, when there definitely is a superclass method
[01:05:23] thoraxe: aha... webpacker.
[01:13:22] Technodrome: has joined #RubyOnRails
[01:16:05] mat_bug: has joined #RubyOnRails
[01:22:53] mat_bug: has joined #RubyOnRails
[01:24:50] thoraxe: hmm ok i feel like now i'm oing in circles with bootstrap-sass, bootstrap gem, webpack, bootstrap npm...
[01:25:12] thoraxe: bootstrap-sass npm says for bs4 you should use the rubygem
[01:25:28] thoraxe: but bootstrap4 site for webpack says use bootstrap npm
[01:25:46] thoraxe: can't seem to find an example or docs on webpack+webpacker+bootstrap(gem)
[01:28:58] mat_bug: has joined #RubyOnRails
[01:31:49] tdy: has joined #RubyOnRails
[01:41:22] mat_bug: has joined #RubyOnRails
[01:49:35] tdy: has joined #RubyOnRails
[01:52:32] tdy: has joined #RubyOnRails
[01:53:56] Scriptonaut: has left #RubyOnRails: ()
[01:54:59] mat_bug: has joined #RubyOnRails
[02:00:57] duderonomy: has joined #RubyOnRails
[02:07:57] mat_bug: has joined #RubyOnRails
[02:08:46] nickjj: thoraxe, with the regular asset pipeline i use https://github.com/twbs/bootstrap-rubygem for bs4
[02:09:29] nickjj: i don't use webpacker but if webpack is managing your assets then you would likely use the npm version of bootstrap since it's a javascript dependency and rails shouldn't need access to it
[02:09:44] nickjj: i mean not as a gem dependency in that sense
[02:13:01] sevenseacat: has joined #RubyOnRails
[02:14:03] mat_bug: has joined #RubyOnRails
[02:15:26] thoraxe: yeah that's what i'm trying
[02:15:58] thoraxe: i'm now trying to add the mdbootstrap javascript and failing miserably
[02:18:17] thoraxe: gist kinda sorta coming up
[02:20:57] mat_bug: has joined #RubyOnRails
[02:22:36] thoraxe: https://gist.github.com/thoraxe/910d556b7fa754ddf8b26cb1f1e852ae
[02:22:59] thoraxe: if i just load the js without webpack (like a pure html file) i don't get any errors
[02:23:12] thoraxe: it's like webpack is doing something to the js when it does its thing and it breaks/gets confused
[02:23:36] Technodrome: has joined #RubyOnRails
[02:27:01] mat_bug: has joined #RubyOnRails
[02:33:06] mat_bug: has joined #RubyOnRails
[02:37:44] tdy: has joined #RubyOnRails
[02:45:29] mat_bug: has joined #RubyOnRails
[02:53:00] tdy: has joined #RubyOnRails
[02:58:07] mat_bug: has joined #RubyOnRails
[03:16:05] Saukk: has joined #RubyOnRails
[03:22:24] tdy: has joined #RubyOnRails
[03:34:40] paranoicsan: has joined #RubyOnRails
[03:36:10] mat_bug: has joined #RubyOnRails
[03:49:11] mat_bug: has joined #RubyOnRails
[04:01:33] mat_bug: has joined #RubyOnRails
[04:08:13] mat_bug: has joined #RubyOnRails
[04:10:03] braincrash: has joined #RubyOnRails
[04:21:12] mat_bug: has joined #RubyOnRails
[04:24:15] tdy: has joined #RubyOnRails
[04:27:14] mat_bug: has joined #RubyOnRails
[04:33:15] mat_bug: has joined #RubyOnRails
[04:39:16] mat_bug: has joined #RubyOnRails
[04:50:25] tdy: has joined #RubyOnRails
[04:54:56] za1b1tsu: has joined #RubyOnRails
[05:05:32] jtperreault: has joined #RubyOnRails
[05:08:28] tweaks: has joined #RubyOnRails
[05:09:37] kapil____: has joined #RubyOnRails
[05:11:08] mat_bug: has joined #RubyOnRails
[05:17:20] mat_bug: has joined #RubyOnRails
[05:23:20] mat_bug: has joined #RubyOnRails
[05:29:18] mat_bug: has joined #RubyOnRails
[05:35:17] mat_bug: has joined #RubyOnRails
[05:37:56] srinidhi: has joined #RubyOnRails
[05:38:29] paranoicsan: has joined #RubyOnRails
[05:41:18] mat_bug: has joined #RubyOnRails
[05:42:54] dozzed: has joined #RubyOnRails
[05:47:22] mat_bug: has joined #RubyOnRails
[05:48:29] tdy: has joined #RubyOnRails
[05:49:22] scrptktty: has joined #RubyOnRails
[05:49:56] ur5us: has joined #RubyOnRails
[05:53:15] mat_bug: has joined #RubyOnRails
[06:05:56] mat_bug: has joined #RubyOnRails
[06:19:03] Technodrome: has joined #RubyOnRails
[06:21:20] conta: has joined #RubyOnRails
[06:24:54] reber: has joined #RubyOnRails
[06:25:22] mat_bug: has joined #RubyOnRails
[06:31:21] mat_bug: has joined #RubyOnRails
[06:32:51] krawchyk_: has joined #RubyOnRails
[06:38:24] mat_bug: has joined #RubyOnRails
[06:44:26] mat_bug: has joined #RubyOnRails
[06:50:27] mat_bug: has joined #RubyOnRails
[06:52:08] cnsvc: has joined #RubyOnRails
[06:56:34] mat_bug: has joined #RubyOnRails
[07:08:54] mat_bug: has joined #RubyOnRails
[07:10:21] ariedler: has joined #RubyOnRails
[07:15:30] mat_bug: has joined #RubyOnRails
[07:21:32] mat_bug: has joined #RubyOnRails
[07:26:22] paranoicsan: has joined #RubyOnRails
[07:34:27] za1b1tsu: has joined #RubyOnRails
[07:39:56] srinidhi: has joined #RubyOnRails
[07:48:26] tdy: has joined #RubyOnRails
[08:00:46] mat_bug: has joined #RubyOnRails
[08:02:27] Technodrome: has joined #RubyOnRails
[08:10:15] krawchyk: has joined #RubyOnRails
[08:26:37] ur5us: has joined #RubyOnRails
[09:03:08] mikecmpbll: has joined #RubyOnRails
[09:31:35] lxsameer: has joined #RubyOnRails
[09:33:20] Ergo: has joined #RubyOnRails
[09:52:17] jacksop: has joined #RubyOnRails
[09:54:13] Technodrome: has joined #RubyOnRails
[10:04:25] Sylario: has joined #RubyOnRails
[10:07:43] srinidhi: has joined #RubyOnRails
[10:17:49] za1b1tsu: has joined #RubyOnRails
[10:40:37] paranoicsan: has joined #RubyOnRails
[10:45:09] za1b1tsu: has joined #RubyOnRails
[10:58:04] jacksop: has joined #RubyOnRails
[11:10:00] jacksop: has joined #RubyOnRails
[11:15:31] conta: has joined #RubyOnRails
[11:34:10] lxsameer: has joined #RubyOnRails
[11:44:27] jacksop: has joined #RubyOnRails
[11:55:06] ariedler: has joined #RubyOnRails
[12:32:11] jaddison_: has joined #RubyOnRails
[12:32:15] mikecmpb_: has joined #RubyOnRails
[12:38:12] lxsameer: has joined #RubyOnRails
[12:49:12] lxsameer: has joined #RubyOnRails
[13:45:46] chouhoulis: has joined #RubyOnRails
[14:02:35] noob69: has joined #RubyOnRails
[14:03:11] noob69: Hi! I was trying to deploy my app to heroku.
[14:03:23] noob69: I got a "Precompiling assets failed." error.
[14:03:34] noob69: This is the log : https://pastebin.com/qGc3P5Nr
[14:03:41] noob69: Any suggestions on how to fix this?
[14:03:54] noob69: I have added "config.assets.initialize_on_precompile = false"
[14:04:01] noob69: That did not fix the issue.
[14:07:08] zackattack: has joined #RubyOnRails
[14:07:38] beholders_eye: has joined #RubyOnRails
[14:07:43] zackattack: I am recruiting several rails engineers to move to NYC and work at an eCommerce startup. I am also recruiting several engineers to move to Waterloo Canada and work at an eCommerce startup. Theme: Rails + eCommerce = {heart emoji}
[14:09:37] alan_w: has joined #RubyOnRails
[14:11:31] Avinash: has joined #RubyOnRails
[14:12:46] status402: has joined #RubyOnRails
[14:14:46] noob69: I'm using rails 4.2
[14:15:07] noob69: So, should this "config.assets.initialize_on_precompile = false" be ignored?
[14:15:25] noob69: And would this "config.serve_static_assets = true" alone do?
[14:24:46] crankharder: does precompiling work locally? rake assets:precompile
[14:26:20] noob69: crankharder: Yes, it works locally. No issue.
[14:26:29] noob69: Problem happens only when I try to push to heroku.
[14:27:20] crankharder: you might need to pull in your asset settings from production.rb into development.rb to get a legit comparison.
[14:27:52] noob69: I tried setting production environment in development and precompiled.
[14:27:54] noob69: It works.
[14:28:13] crankharder: then i'd probably start down a path of process of elimination.
[14:28:15] noob69: "RAILS_ENV=production bundle exec rake assets:precompile" --> This command also works.
[14:28:27] noob69: crankharder: How would you suggest?
[14:28:38] noob69: crankharder: Also, I'm using 4.2 version
[14:28:50] crankharder: remove all your assets, deploy, add some back, repeat
[14:28:55] noob69: crankharder: Could you take a look into my production.rb file?
[14:28:57] crankharder: see what breaks
[14:29:54] noob69: crankharder: This (https://pastebin.com/FtkZxAkx) is my production.rb
[14:29:59] noob69: See something funny?
[14:30:24] crankharder: dont think so
[14:31:26] noob69: crankharder: Ok. :/
[14:31:32] noob69: It's gonna be a LONG night -_-
[14:32:42] fox_mulder_cp: oh. i'm upgrade ubuntu to 18.04.1 and nginx plus [assenger are damaged ( fusion pasenger added as module, but passenger_enable directive failed to run nginx (
[14:33:47] jottr: has joined #RubyOnRails
[14:43:43] Avinash: has joined #RubyOnRails
[14:48:46] status402: has joined #RubyOnRails
[15:14:27] chouhoulis: has joined #RubyOnRails
[15:17:36] status402_: has joined #RubyOnRails
[15:17:54] orbyt_: has joined #RubyOnRails
[15:20:25] KeyJoo: has joined #RubyOnRails
[15:21:22] KeyJoo: has joined #RubyOnRails
[15:24:19] KeyJoo: has joined #RubyOnRails
[15:26:45] krawchyk: has joined #RubyOnRails
[15:27:10] KeyJoo: has joined #RubyOnRails
[15:30:00] KeyJoo: has joined #RubyOnRails
[15:30:15] conta: has joined #RubyOnRails
[15:32:52] KeyJoo: has joined #RubyOnRails
[15:35:40] KeyJoo: has joined #RubyOnRails
[15:38:24] KeyJoo: has joined #RubyOnRails
[15:45:06] conta: has joined #RubyOnRails
[15:46:24] kapil____: has joined #RubyOnRails
[15:54:43] noob69: has joined #RubyOnRails
[15:56:06] noob69: So, I'm trying to push a rails 4.2 app to heroku. I was getting Precompiling assets failed issue.
[15:56:28] noob69: I removed all the assets and tried to push and I'm still getting the same error, any idea why it might have happened?
[16:01:23] noob69: This is the heroku log : https://pastebin.com/u8FGBWLB
[16:06:58] Dbugger: has joined #RubyOnRails
[16:07:46] fryguy: you are missing a lot of the error output
[16:16:19] tdy: has joined #RubyOnRails
[16:22:18] noob69: fryguy: I went up a lil further, check this out : https://pastebin.com/vEisex6f
[16:26:30] NeXTSUN: has joined #RubyOnRails
[16:27:28] chouhoulis: has joined #RubyOnRails
[16:38:09] noob69: Anyone has any idea why I might get "SystemStackError: stack level too deep" when I try to push to heroku? Rails : 4.2
[16:42:29] jottr: has joined #RubyOnRails
[16:46:01] fryguy: when you run asset precompilation locally, do you get the same behavior?
[16:49:34] noob69: fryguy: No. This happens only when I try to push to heroku.
[17:01:07] DTZUZO: has joined #RubyOnRails
[17:15:01] uks: has joined #RubyOnRails
[17:22:15] jottr: has joined #RubyOnRails
[17:29:58] sandstrom: has joined #RubyOnRails
[17:31:41] sandstrom: I'm trying to find `width: 300px` in a style attribute string. It may come after a `;` sign, or may be in the beginning of the string. How can a regexp match both?
[17:32:09] sandstrom: I don't think I can put `^` inside brackets: `/[^;]width/`
[17:33:54] sandstrom: (because the caret changes meaning inside the square brackets)
[17:43:36] noob69: fryguy: Fixed it! :)
[17:54:23] lxsameer: has joined #RubyOnRails
[17:54:26] blackcross: has joined #RubyOnRails
[17:55:32] sandelius: has joined #RubyOnRails
[18:01:45] beholders_eye: has joined #RubyOnRails
[18:06:30] ariedler: has joined #RubyOnRails
[18:07:47] theRoUS: has joined #RubyOnRails
[18:09:55] fmcgeough: has joined #RubyOnRails
[18:10:10] theRoUS: is there an API exploration mechanism for rails similar to django's? for instance, if you send the following GET (at least to a particular app), you get something pretty, readable, and explorable:
[18:10:15] theRoUS: GET /api/v2/teams/53/users/
[18:10:15] theRoUS: HTTP 200 OK
[18:10:15] theRoUS: Allow: GET, POST, HEAD, OPTIONS
[18:10:15] theRoUS: Content-Type: application/json
[18:30:32] Technodrome: has joined #RubyOnRails
[18:38:48] cagomez: has joined #RubyOnRails
[18:44:33] mikecmpbll: has joined #RubyOnRails
[18:49:06] conta1: has joined #RubyOnRails
[19:02:58] cagomez: has joined #RubyOnRails
[19:05:44] jamilbk: has joined #RubyOnRails
[19:07:38] jamilbk: Does anyone know how to save a raw JSON string to a `jsonb` channel type in Rails 5?
[19:07:47] jamilbk: *field type, not channel type
[19:10:06] cagomez: has joined #RubyOnRails
[19:11:14] orbyt_: has joined #RubyOnRails
[19:16:59] gambl0re: has joined #RubyOnRails
[19:20:51] sandstrom: has joined #RubyOnRails
[19:21:31] gambl0re: has joined #RubyOnRails
[19:25:24] gambl0re: has joined #RubyOnRails
[19:50:02] cnsvc: has joined #RubyOnRails
[19:56:30] Technodrome: has joined #RubyOnRails
[20:07:44] ariedler: has joined #RubyOnRails
[20:15:33] ur5us: has joined #RubyOnRails
[20:26:54] Technodrome: has joined #RubyOnRails
[20:40:33] ellcs: has joined #RubyOnRails
[20:43:41] srinidhi: has joined #RubyOnRails
[20:46:54] conta2: has joined #RubyOnRails
[21:04:17] DaniG2k: has joined #RubyOnRails
[21:06:32] DaniG2k: I am using the ancestry gem for a project. It creates the following column:
[21:06:38] DaniG2k: add_column :commodity_types, :ancestry, :string
[21:06:42] DaniG2k: add_index :commodity_types, :ancestry, algorithm: :concurrently
[21:07:06] kmossco: has joined #RubyOnRails
[21:07:11] DaniG2k: I'd basically like to add an ON DELETE RESTRICT at the database level as well
[21:07:17] DaniG2k: but can't figureout what the syntax is for that
[21:07:19] DaniG2k: any advice?
[21:09:54] defsdoor: has joined #RubyOnRails
[21:10:03] Fernando-Basso: has joined #RubyOnRails
[22:07:36] jenrzzz: has joined #RubyOnRails
[22:08:29] ariedler: has joined #RubyOnRails
[22:14:02] RedNifre: has joined #RubyOnRails
[22:15:08] RedNifre: Hi. I'm currenly working through Hartl's tutorial and everything works so far except that when I do `heroku run rails console --sandbox`, inside irb it won't find `User` even though that worked locally (I added a User model and pushed that to heroku and did a db:migrate).
[22:15:25] RedNifre: How can I figure out what is going on?
[22:16:46] RedNifre: Can I do other things in rails console to get a better picture of the situation?
[22:16:51] jamilbk: has joined #RubyOnRails
[22:17:21] lxsameer: has joined #RubyOnRails
[22:26:55] mat_bug: has joined #RubyOnRails
[22:37:59] jamilbk: has joined #RubyOnRails
[22:40:54] mat_bug: has joined #RubyOnRails
[22:55:56] mat_bug: has joined #RubyOnRails
[22:57:41] RiPuk: has joined #RubyOnRails
[22:59:26] krawchyk: has joined #RubyOnRails
[23:03:00] jenrzzz: has joined #RubyOnRails
[23:07:27] mat_bug: has joined #RubyOnRails
[23:12:18] Puffball: has joined #RubyOnRails
[23:14:03] cnsvc: has joined #RubyOnRails
[23:16:56] jenrzzz: has joined #RubyOnRails
[23:19:52] mat_bug: has joined #RubyOnRails
[23:21:25] RedNifre: has joined #RubyOnRails
[23:22:56] RiPuk: has joined #RubyOnRails
[23:23:44] Technodrome: has joined #RubyOnRails
[23:38:50] mat_bug: has joined #RubyOnRails
[23:53:25] mat_bug: has joined #RubyOnRails