« Back to channel list

#RubyOnRails - 25 April 2018

« Back 1 day Forward 1 day »
[00:00:15] hammer065: has joined #RubyOnRails
[00:01:07] muffiny: has joined #RubyOnRails
[00:19:19] alfiemax: has joined #RubyOnRails
[00:26:57] dviola: has joined #RubyOnRails
[00:42:07] gheegh: has joined #RubyOnRails
[00:57:47] EXCHGR: has joined #RubyOnRails
[01:07:55] Technodrome: has joined #RubyOnRails
[01:07:56] mroutis: has joined #RubyOnRails
[01:10:07] DTZUZO: has joined #RubyOnRails
[01:25:24] Technodrome: has joined #RubyOnRails
[01:28:43] maryo: has joined #RubyOnRails
[01:38:05] moei: has joined #RubyOnRails
[02:00:20] _aeris_: has joined #RubyOnRails
[02:02:26] orbyt_: has joined #RubyOnRails
[02:02:38] Technodrome: has joined #RubyOnRails
[02:03:42] sevenseacat: has joined #RubyOnRails
[02:04:37] jnollette: has joined #RubyOnRails
[02:11:00] mostlybadfly: has joined #RubyOnRails
[02:18:21] alfiemax: has joined #RubyOnRails
[02:23:02] nickjj: has joined #RubyOnRails
[02:28:49] tdy: has joined #RubyOnRails
[02:41:22] EXCHGR: has joined #RubyOnRails
[03:04:39] baweaver: Proper pattern matching is currently being discussed on the Ruby bug tracker: https://bugs.ruby-lang.org/issues/14709
[03:05:02] baweaver: I _might_ have left several lengthy replies on the subject :D
[03:15:51] duderonomy: has joined #RubyOnRails
[03:23:14] Milos: has joined #RubyOnRails
[03:23:34] Milos: What's the number one left side of the rails console prompt?
[03:23:36] Milos: 2.4.0 :001 > RUBY_VERSION
[03:23:36] Milos: => "2.5.0"
[03:23:36] Milos: 2.4.0 :002 > Rails::VERSION::STRING
[03:23:36] Milos: => "5.1.6"
[03:23:53] Milos: s/one/on the/
[03:24:15] Milos: i.e. "2.4.0" in this example
[03:26:55] mroutis_: has joined #RubyOnRails
[03:43:15] darkhanb: has joined #RubyOnRails
[04:26:37] mroutis: has joined #RubyOnRails
[04:49:47] agent_white: has joined #RubyOnRails
[05:01:30] _aeris_: has joined #RubyOnRails
[05:02:30] jnollette: has joined #RubyOnRails
[05:06:52] eckhardt: has joined #RubyOnRails
[05:14:38] orbyt_: has joined #RubyOnRails
[05:28:27] Milos: has joined #RubyOnRails
[05:42:17] JJonah: I have a file `lib/authentication/strategy.rb` containing the class `Authentication::Strategy` and I in application.rb I have `config.autoload_paths << Rails.root.join('lib')`. I am getting the error `Authentication is not a module` from a controller using the `Authentication::Strategy` class. I thought autoloading should make it available. What am I missing?
[05:51:55] JJonah: adding require statements to the top of controller fixes the problem. is this intended? or should i not need the explicit requires?
[06:18:46] Technodrome: has joined #RubyOnRails
[06:29:32] conta: has joined #RubyOnRails
[06:36:47] reber: has joined #RubyOnRails
[07:06:26] dionysus69: has joined #RubyOnRails
[07:13:02] tbuehlmann: JJonah: do you have any other classes/modules named Authentication? also, can you gist a minimal reproduction?
[07:17:33] gambl0re: has joined #RubyOnRails
[07:46:50] gambl0re: has joined #RubyOnRails
[08:08:01] hive-mind: has joined #RubyOnRails
[08:09:47] reber: has joined #RubyOnRails
[08:12:36] srinidhi: has joined #RubyOnRails
[08:15:34] dionysus69: so anyways, back to the yesterdays topic. It doesn't give me peace
[08:15:50] dionysus69: if using scope to retrieve single record is not a good practice
[08:16:23] dionysus69: what's the best practice for retrieving single record without writing Model.find_by(attr: :asd).some_method
[08:16:33] sevenseacat: why dont you want to write that
[08:16:42] tbuehlmann: Model.find_by(…) is great
[08:17:15] dionysus69: what if I want to do that multiple times on single page, just takes lots of space visually
[08:17:57] sevenseacat: not sure I understand
[08:18:02] sevenseacat: what your concerns are
[08:18:56] dionysus69: just an annoying optimization :P
[08:19:50] dionysus69: one option is to declare a variable and then use that, that would save space but would add extra line xD
[08:20:29] tbuehlmann: or you don't do anything and the query cache got you covered
[08:22:07] dionysus69: yea, I guess I ll just go with find_by x)
[08:29:40] srinidhi: has joined #RubyOnRails
[08:31:49] tbuehlmann: although I'm not sure about that, since I can't find that middleware anymore
[08:32:20] sevenseacat: I think we need more context about the problem to be able to offer more advice
[08:33:29] tbuehlmann: sure, I'm into this query cache myself right now
[08:38:05] babykosh: has joined #RubyOnRails
[08:39:23] marr: has joined #RubyOnRails
[08:47:39] babykosh_: has joined #RubyOnRails
[08:52:43] ellcs: has joined #RubyOnRails
[08:53:51] mr-spoon: has joined #RubyOnRails
[08:55:48] babykosh_: has joined #RubyOnRails
[09:00:46] russellx: has joined #RubyOnRails
[09:01:29] dionysus69: I ll come back later with better problem :D this one was vague
[09:01:39] russellx: has left #RubyOnRails: ()
[09:02:16] dminuoso: 10:19 dionysus69 | one option is to declare a variable and then use that, that would save space but would add extra line xD
[09:02:20] dminuoso: So let me get this straight.
[09:02:38] dminuoso: You are a software developer, you are looking for an abstraction - but adding extra lines is scary?
[09:04:43] Technodrome: has joined #RubyOnRails
[09:14:18] Radar: GOOD EVENING
[09:14:57] Radar: dionysus69: !rule0
[09:14:57] helpa: dionysus69: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[09:14:57] dminuoso: Okay.. I think I finally found the stupid bug.
[09:15:00] Radar: good rule to remember.
[09:15:09] dminuoso: rails webpacker is shit.
[09:15:16] Radar: dminuoso: YOU DON'T SAY
[09:15:23] helpa: http://i.imgur.com/tyViD.gif
[09:15:24] dminuoso: It's not as shitty as sprockets though.
[09:15:34] Radar: dminuoso dropping the truth bombs tonight
[09:15:38] hive-mind: has joined #RubyOnRails
[09:16:11] dminuoso: Radar: so webpacker is preconfigured with an uglifier that incorrectly produces es6 unicode code point escape sequences in string literals.
[09:16:15] dminuoso: ACTION sighs
[09:16:21] dminuoso: I hate you all.
[09:16:29] dminuoso: I dont even know how to.
[09:16:40] Radar: how to hate us?
[09:16:42] Radar: dminuoso: got an issue report on webpacker yet? I'd be keen to take a peek.
[09:18:14] dminuoso: Radar: Long story short: webpacker needs to do whatever version upgrades to include this: https://github.com/mishoo/UglifyJS2/pull/2246/files
[09:18:33] Radar: Oh. That doesn't sound too hard at all.
[09:19:01] dminuoso: Debugging which shitty part of this pipeline was the cause was hard though.
[09:19:22] Radar: There's at least _a_ version out with the patch included in it judging by https://github.com/mishoo/UglifyJS2/commit/6a5e74b44e65811b2152f72aeec8df3f75457663
[09:21:08] dminuoso: My fix for now is to simply remove the uglifier.
[09:21:14] Radar: https://github.com/webpack-contrib/uglifyjs-webpack-plugin/blob/master/package.json#L39 <- would probably need to bump this
[09:22:37] dminuoso: Radar: Mmm ah that narrows it down. Ill file a bug report.
[09:23:25] Radar: dminuoso: At least, I think that's the spot. I think rails/webpacker uses uglifyjs-webpack-plugin in webpacker's package.json. Bumping the version in uglifyjs-webpack-plugin, would then mean that webpacker would also need a version bump... but then the whole chain of packages should then include the right uglifier version which will _probably_ fix your issue.
[09:24:16] helpa: http://i.imgur.com/m9m3wr9.gif
[09:28:07] Radar: In other news, I have a new book out: https://leanpub.com/explodingrails. TL;DR is: Death to Active Record. Long live ROM!
[09:29:34] Radar: I also gave a talk about this same topic at Melbourne RoRo recently. The video should be out for that soon-ish, but the slides are here: https://speakerdeck.com/radar/exploding-rails
[09:30:48] sevenseacat: ACTION buys book
[09:32:01] dang`r`us: sounds interesting
[09:32:08] Radar: compelling, even
[09:33:01] dminuoso: Radar: The real solution is to just ditch ROM and use queries.
[09:33:25] Radar: https://xkcd.com/378/
[09:33:46] dminuoso: What can I say. 2 months ago I switched from vim to emacs.
[09:33:52] dminuoso: Never looked back ever since.
[09:34:17] DukeDave: has joined #RubyOnRails
[09:34:23] Radar: I've heard many people do that leap too.
[09:34:29] Radar: I rarely hear people going the other way
[09:34:42] workmad3: has joined #RubyOnRails
[09:34:47] dang`r`us: dminuoso, the project I'm building replaces one without an ORM ... it's quite the sight
[09:35:04] hive-mind: has joined #RubyOnRails
[09:35:06] dang`r`us: lots of core logic in database triggers, which are written in a postgres-typescript extension
[09:35:17] sevenseacat: half of my leanpub library is just Radar books
[09:35:21] dminuoso: postgres typescri.. what?
[09:35:35] dang`r`us: dminuoso, https://github.com/plv8/plv8
[09:35:38] Radar: sevenseacat: haha :D
[09:35:41] dang`r`us: what's that, you wanted to debug anything? Oh..
[09:37:58] agent_white: I have my first jr.dev interview this week \o/
[09:38:56] dminuoso: dang`r`us: The only thing left to make this idiotic circle complete is a configuration management solution written in JavaScript.
[09:38:59] cschneid_: has joined #RubyOnRails
[09:39:08] dminuoso: Just for good measure. Do anything in JavaScript.
[09:39:10] dminuoso: Maybe a kernel too.
[09:39:47] dminuoso: https://node-os.com/
[09:39:55] dminuoso: ACTION is starting to get headaches
[09:41:30] Prutheus: has joined #RubyOnRails
[09:42:26] Prutheus: Hello. I am using sidekiq and want to use that method https://github.com/mperham/sidekiq/wiki/FAQ#how-do-i-cancel-a-sidekiq-job to cancel a job. But how do I call the cancel! method on the job, because when i do `job = TaskWorker.perform_async('bob', 5)` job is only the jid string ...
[09:46:48] dminuoso: prutheus: It's up to you really.
[09:53:56] srinidhi: has joined #RubyOnRails
[09:54:43] dang`r`us: dminuoso, this project's old backend is nodejs too, of course. Anything resembling configuration management is a few incoherent bash scripts
[09:55:50] dminuoso: dang`r`us: I mean when I pick a language to solve a task, I think about "what strengths does this language have". What makes it so much better at this job than other languages. What abstractions/features does this language have to write better code in..
[09:56:00] dang`r`us: in fact I'm pretty close to develop a test script that does some sed on a gitlab configuration file (because currently "deploy this commit to the test server" is not a thing this monster can do)
[09:56:07] dminuoso: JavaScript just doesn't have any _strengths_ over basically any other language that is not Go or PHP..
[09:56:36] dminuoso: It's so beyond me why people try to use JavaScript for everything..
[09:56:41] dang`r`us: my favorite js feature is still 9999999999999999 == 10000000000000000
[09:57:17] dminuoso: dang`r`us: Do you know the fundamental reason for this?
[09:57:24] dang`r`us: everything is a float
[09:57:31] dminuoso: Do you know why that is?
[09:57:48] dang`r`us: was there a conscious design decision?
[09:58:01] dang`r`us: I mean, I find JS actually pretty impressive given it was thrown together in 10 days or so
[09:58:09] dminuoso: Well.. the core of JavaScript was hacked together by Eich in about 10 days
[09:58:11] dang`r`us: not that this makes it -any good- ..
[09:58:18] dminuoso: That's hardly impressive.
[09:58:50] dang`r`us: but anyway, no, I guess I don't know the reason behind every number being a float
[09:58:53] dang`r`us: something with dots? :)
[09:59:47] dminuoso: dang`r`us: As far as I know, it's mostly related to this 10 day hacking course where it was easier to have fewer things, and somehow magically have things coerce into each other..
[10:00:09] dang`r`us: sounds plausible
[10:00:21] dminuoso: dang`r`us: https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript
[10:00:31] dang`r`us: yup, seen that
[10:03:52] jrgifford: has joined #RubyOnRails
[10:08:58] hive-mind: has joined #RubyOnRails
[10:18:48] hive-mind: has joined #RubyOnRails
[10:27:23] hfp_work: has joined #RubyOnRails
[10:47:46] Radar: https://github.com/dry-rb/dry-core/issues/25
[10:47:58] Radar: Odds on this being a Rails autoloading issue are currently high.
[10:48:07] Radar: What a ginormous pain in the ass.
[10:56:55] srinidhi: has joined #RubyOnRails
[10:58:13] cschneid_: has joined #RubyOnRails
[11:01:01] apparition: has joined #RubyOnRails
[11:24:01] Cavallari: has joined #RubyOnRails
[11:29:54] micmus: has joined #RubyOnRails
[11:34:16] gheegh: has joined #RubyOnRails
[11:36:19] xco: has joined #RubyOnRails
[11:37:02] xco: hi i just created a new rails project, cd’ed into it and run ‘$ rails g scaffold Book name:string cover:binary’ but it stuck and is not generating anything. i’m using R5.2 and ruby 2.5 any ideas where to look?
[11:49:59] alfiemax: has joined #RubyOnRails
[12:00:15] dang`r`us: xco, the '$' is not part of the command you should run
[12:00:23] dang`r`us: so your command starts with 'rails', not with '$ '
[12:00:25] ellcs: has joined #RubyOnRails
[12:00:33] dang`r`us: '$ ' is standard notation for "this is run in a shell prompt"
[12:02:53] hive-mind: has joined #RubyOnRails
[12:07:17] dionysus69: has joined #RubyOnRails
[12:07:54] dminuoso: Radar: What the mighty heck does that do..
[12:08:16] dminuoso: Radar: https://github.com/dry-rb/dry-core/commit/14d18f23cd715d552ac589a67b2289835be43caa
[12:08:27] dminuoso: Radar: Just reading the commit message this sounds super fishy already
[12:08:39] dminuoso: Im not even remotely surprised that this might not interact nicely with autoloading.
[12:10:26] duderonomy: has joined #RubyOnRails
[12:27:29] TessaM: has joined #RubyOnRails
[12:27:29] duderonomy: has joined #RubyOnRails
[12:27:29] dionysus69: has joined #RubyOnRails
[12:27:29] hive-mind: has joined #RubyOnRails
[12:27:29] ellcs: has joined #RubyOnRails
[12:27:29] alfiemax: has joined #RubyOnRails
[12:27:29] xco: has joined #RubyOnRails
[12:27:29] gheegh: has joined #RubyOnRails
[12:27:29] micmus: has joined #RubyOnRails
[12:27:30] Cavallari: has joined #RubyOnRails
[12:27:30] apparition: has joined #RubyOnRails
[12:27:30] srinidhi: has joined #RubyOnRails
[12:27:30] hfp_work: has joined #RubyOnRails
[12:27:30] jrgifford: has joined #RubyOnRails
[12:27:30] workmad3: has joined #RubyOnRails
[12:27:30] DukeDave: has joined #RubyOnRails
[12:27:30] mr-spoon: has joined #RubyOnRails
[12:27:30] marr: has joined #RubyOnRails
[12:27:30] reber: has joined #RubyOnRails
[12:27:30] conta: has joined #RubyOnRails
[12:27:30] Milos: has joined #RubyOnRails
[12:27:30] jnollette: has joined #RubyOnRails
[12:27:30] _aeris_: has joined #RubyOnRails
[12:27:30] agent_white: has joined #RubyOnRails
[12:27:30] darkhanb: has joined #RubyOnRails
[12:27:30] EXCHGR: has joined #RubyOnRails
[12:27:30] tdy: has joined #RubyOnRails
[12:27:30] nickjj: has joined #RubyOnRails
[12:27:30] mostlybadfly: has joined #RubyOnRails
[12:27:30] sevenseacat: has joined #RubyOnRails
[12:27:30] moei: has joined #RubyOnRails
[12:27:30] DTZUZO: has joined #RubyOnRails
[12:27:30] hammer065: has joined #RubyOnRails
[12:27:30] uks: has joined #RubyOnRails
[12:27:30] LateralO1: has joined #RubyOnRails
[12:27:30] phon: has joined #RubyOnRails
[12:27:30] noodle: has joined #RubyOnRails
[12:27:30] kapil___: has joined #RubyOnRails
[12:27:30] roshanavand: has joined #RubyOnRails
[12:27:30] zacts: has joined #RubyOnRails
[12:27:30] apeiros: has joined #RubyOnRails
[12:27:30] armyriad: has joined #RubyOnRails
[12:27:31] dtzuzu: has joined #RubyOnRails
[12:27:31] DrYockel: has joined #RubyOnRails
[12:27:31] mr-robert: has joined #RubyOnRails
[12:27:31] Nuck: has joined #RubyOnRails
[12:27:31] maciuszek: has joined #RubyOnRails
[12:27:31] TheMoonMaster: has joined #RubyOnRails
[12:27:31] tfitts: has joined #RubyOnRails
[12:27:31] daxroc: has joined #RubyOnRails
[12:27:31] sonOfRa: has joined #RubyOnRails
[12:27:31] defsdoor: has joined #RubyOnRails
[12:27:31] blitz: has joined #RubyOnRails
[12:27:31] beingjohnm: has joined #RubyOnRails
[12:27:31] universa1: has joined #RubyOnRails
[12:27:31] lunarkitty7: has joined #RubyOnRails
[12:27:31] bga57: has joined #RubyOnRails
[12:27:31] fcser__: has joined #RubyOnRails
[12:27:31] qyliss: has joined #RubyOnRails
[12:27:31] matt_d: has joined #RubyOnRails
[12:27:31] segy: has joined #RubyOnRails
[12:27:31] sunrunner20: has joined #RubyOnRails
[12:27:31] LenPayne: has joined #RubyOnRails
[12:27:31] atrius: has joined #RubyOnRails
[12:27:31] ghormoon: has joined #RubyOnRails
[12:27:31] dnyy: has joined #RubyOnRails
[12:27:31] ircmaxell: has joined #RubyOnRails
[12:27:31] catbusters: has joined #RubyOnRails
[12:27:31] Maja: has joined #RubyOnRails
[12:27:31] weaksauce: has joined #RubyOnRails
[12:27:31] lupine: has joined #RubyOnRails
[12:27:31] matthewd: has joined #RubyOnRails
[12:27:32] blackcross: has joined #RubyOnRails
[12:27:32] ule: has joined #RubyOnRails
[12:27:32] daveomcd: has joined #RubyOnRails
[12:27:32] Omnilord: has joined #RubyOnRails
[12:27:32] Tempesta: has joined #RubyOnRails
[12:27:32] Vegetable: has joined #RubyOnRails
[12:27:32] tycoon177: has joined #RubyOnRails
[12:27:32] hellekin: has joined #RubyOnRails
[12:27:32] Scient: has joined #RubyOnRails
[12:27:32] Lloyd: has joined #RubyOnRails
[12:27:32] auv: has joined #RubyOnRails
[12:27:32] iamdevnul: has joined #RubyOnRails
[12:27:32] arooni: has joined #RubyOnRails
[12:27:32] dang`r`us: has joined #RubyOnRails
[12:27:32] JDeen: has joined #RubyOnRails
[12:27:32] trautwein: has joined #RubyOnRails
[12:27:32] linetrace: has joined #RubyOnRails
[12:27:32] dustinm`: has joined #RubyOnRails
[12:27:32] tpendragon: has joined #RubyOnRails
[12:27:32] cagomez: has joined #RubyOnRails
[12:27:32] Exagone313: has joined #RubyOnRails
[12:27:32] kies^: has joined #RubyOnRails
[12:27:32] Kilo`byte: has joined #RubyOnRails
[12:27:32] epochwolf: has joined #RubyOnRails
[12:27:32] shtirlic: has joined #RubyOnRails
[12:27:32] w0rd-driven: has joined #RubyOnRails
[12:27:32] nertzy: has joined #RubyOnRails
[12:27:32] TvL2386: has joined #RubyOnRails
[12:27:33] endemic: has joined #RubyOnRails
[12:27:33] arcturiaen: has joined #RubyOnRails
[12:27:33] Fridtjof: has joined #RubyOnRails
[12:27:33] ArTiSTiX: has joined #RubyOnRails
[12:27:33] LyndsySimon: has joined #RubyOnRails
[12:27:33] Sirecote: has joined #RubyOnRails
[12:27:33] thomasfedb: has joined #RubyOnRails
[12:27:33] quarters: has joined #RubyOnRails
[12:27:33] crankharder: has joined #RubyOnRails
[12:27:33] zmo: has joined #RubyOnRails
[12:27:33] ephemer0l: has joined #RubyOnRails
[12:27:33] desperek: has joined #RubyOnRails
[12:27:33] AlHafoudh: has joined #RubyOnRails
[12:27:33] fl4sh_: has joined #RubyOnRails
[12:27:33] badeball: has joined #RubyOnRails
[12:27:33] swistak35: has joined #RubyOnRails
[12:27:33] SanguineAnomaly: has joined #RubyOnRails
[12:27:33] arielserafini: has joined #RubyOnRails
[12:27:33] logik-bomb: has joined #RubyOnRails
[12:27:33] desnudopenguino: has joined #RubyOnRails
[12:27:33] tjbp: has joined #RubyOnRails
[12:27:33] Liothen: has joined #RubyOnRails
[12:27:33] Takumo: has joined #RubyOnRails
[12:27:33] Fire-Dragon-DoL: has joined #RubyOnRails
[12:27:33] ewilliam: has joined #RubyOnRails
[12:27:33] ecook: has joined #RubyOnRails
[12:27:33] Travis-42: has joined #RubyOnRails
[12:27:33] doesntbyte: has joined #RubyOnRails
[12:27:33] veloutin: has joined #RubyOnRails
[12:27:33] yadnesh: has joined #RubyOnRails
[12:27:33] Radar: has joined #RubyOnRails
[12:27:33] voker57: has joined #RubyOnRails
[12:27:33] devlaf: has joined #RubyOnRails
[12:27:33] craysiii: has joined #RubyOnRails
[12:27:34] mattwc: has joined #RubyOnRails
[12:27:34] Mutsuhito: has joined #RubyOnRails
[12:27:34] mmun: has joined #RubyOnRails
[12:27:34] podman: has joined #RubyOnRails
[12:27:34] Kamuela: has joined #RubyOnRails
[12:27:34] lipoqil: has joined #RubyOnRails
[12:27:34] justinweiss: has joined #RubyOnRails
[12:27:34] Voxxit: has joined #RubyOnRails
[12:27:34] Cork: has joined #RubyOnRails
[12:27:34] jrm: has joined #RubyOnRails
[12:27:34] j0bk: has joined #RubyOnRails
[12:27:34] Andr3as: has joined #RubyOnRails
[12:27:34] DylanJ: has joined #RubyOnRails
[12:27:34] IanMalcolm: has joined #RubyOnRails
[12:27:34] leeky: has joined #RubyOnRails
[12:27:34] bdnelson: has joined #RubyOnRails
[12:27:34] ericmathison: has joined #RubyOnRails
[12:27:34] dmarr: has joined #RubyOnRails
[12:27:34] newton: has joined #RubyOnRails
[12:27:34] baweaver: has joined #RubyOnRails
[12:27:34] fryguy: has joined #RubyOnRails
[12:27:34] G: has joined #RubyOnRails
[12:27:34] russt: has joined #RubyOnRails
[12:27:34] nemesit|znc: has joined #RubyOnRails
[12:27:34] bphogan: has joined #RubyOnRails
[12:27:34] jtperreault: has joined #RubyOnRails
[12:27:34] Psy-Q: has joined #RubyOnRails
[12:27:34] Vircung: has joined #RubyOnRails
[12:27:34] fox_mulder_cp: has joined #RubyOnRails
[12:27:34] Alchemical: has joined #RubyOnRails
[12:27:34] shenghi: has joined #RubyOnRails
[12:27:34] michael_mbp: has joined #RubyOnRails
[12:27:34] tomaw: has joined #RubyOnRails
[12:27:34] sung_: has joined #RubyOnRails
[12:27:34] sunya7a__: has joined #RubyOnRails
[12:27:34] cgfbee: has joined #RubyOnRails
[12:27:35] funnel: has joined #RubyOnRails
[12:27:35] jlpeters: has joined #RubyOnRails
[12:27:35] chridal: has joined #RubyOnRails
[12:27:35] omninonsense: has joined #RubyOnRails
[12:27:35] kanzure: has joined #RubyOnRails
[12:27:35] tbuehlmann: has joined #RubyOnRails
[12:27:35] silverdust: has joined #RubyOnRails
[12:27:35] \13k: has joined #RubyOnRails
[12:27:35] AntiSpamMeta: has joined #RubyOnRails
[12:27:35] havenwood: has joined #RubyOnRails
[12:27:35] rubemlrm: has joined #RubyOnRails
[12:27:35] hpfmn: has joined #RubyOnRails
[12:27:35] S007: has joined #RubyOnRails
[12:27:35] cjohnson: has joined #RubyOnRails
[12:27:35] eean: has joined #RubyOnRails
[12:27:35] tectonic: has joined #RubyOnRails
[12:27:35] DanKnox: has joined #RubyOnRails
[12:27:35] ipstatic: has joined #RubyOnRails
[12:27:35] webdestroya: has joined #RubyOnRails
[12:27:35] bitch: has joined #RubyOnRails
[12:27:35] marahin: has joined #RubyOnRails
[12:27:35] fumk: has joined #RubyOnRails
[12:27:35] contradictioned: has joined #RubyOnRails
[12:27:35] jhass: has joined #RubyOnRails
[12:27:35] pinkfloyd1911: has joined #RubyOnRails
[12:27:35] SuperTux88: has joined #RubyOnRails
[12:27:35] TViernion: has joined #RubyOnRails
[12:27:35] sunya7a_: has joined #RubyOnRails
[12:27:35] pro777: has joined #RubyOnRails
[12:27:35] dmnd: has joined #RubyOnRails
[12:27:35] jxf: has joined #RubyOnRails
[12:27:35] arthurnn: has joined #RubyOnRails
[12:27:35] codepete: has joined #RubyOnRails
[12:27:35] r3my: has joined #RubyOnRails
[12:27:36] JJonah: has joined #RubyOnRails
[12:27:36] dminuoso: has joined #RubyOnRails
[12:27:36] boxmein: has joined #RubyOnRails
[12:27:36] context: has joined #RubyOnRails
[12:27:36] spectra: has joined #RubyOnRails
[12:27:36] tekk: has joined #RubyOnRails
[12:27:36] daemonwrangler: has joined #RubyOnRails
[12:27:36] larissa: has joined #RubyOnRails
[12:27:36] Avon: has joined #RubyOnRails
[12:27:36] arathald: has joined #RubyOnRails
[12:27:36] HappyHotDog: has joined #RubyOnRails
[12:27:36] CBebop: has joined #RubyOnRails
[12:27:36] argoneus: has joined #RubyOnRails
[12:27:36] syndikate: has joined #RubyOnRails
[12:27:36] ltd: has joined #RubyOnRails
[12:27:49] jerematic: has joined #RubyOnRails
[12:28:37] EXCHGR: has joined #RubyOnRails
[12:29:01] sunya7a: has joined #RubyOnRails
[12:29:34] Exagone313: has joined #RubyOnRails
[12:33:36] jackhum: has joined #RubyOnRails
[12:39:38] Sylario: has joined #RubyOnRails
[12:47:28] GodFather: has joined #RubyOnRails
[12:48:33] GodFather_: has joined #RubyOnRails
[13:02:21] hive-mind: has joined #RubyOnRails
[13:04:39] dionysus69: has joined #RubyOnRails
[13:07:43] arcturiaen: has joined #RubyOnRails
[13:16:54] dionysus70: has joined #RubyOnRails
[13:17:05] rfoust: has joined #RubyOnRails
[13:23:09] jackhum: has joined #RubyOnRails
[13:23:29] yebyen: has joined #RubyOnRails
[13:23:48] yebyen: hmm! so I was at RailsConf this past week and heard a talk about multiple databases in Rails
[13:24:04] dminuoso: Yeah dont do it.
[13:25:14] yebyen: well the theme of the talk is that it's currently still too hard
[13:25:24] yebyen: and that it's going to get better in rails 6
[13:25:41] yebyen: and I was thinking back to my last job and the replicating mysql databases we had, without which we could not have operated at the scale that we did!
[13:26:35] yebyen: my app will probably have 10 concurrent users max peak and they will each operate on mostly just a single record at a time
[13:26:39] yebyen: so this is not a concern for me now
[13:27:04] yebyen: but i was coming to see if anyone uses the octopus gem since that seems to be the answer to my question
[13:27:34] yebyen: "how do I send Read operations to a slave and Write operations to the master, unobtrusively through AR"
[13:27:57] yebyen: https://medium.com/kkempin/postgresql-master-slave-replication-on-heroku-with-ruby-on-rails-bf0eb8d69fe
[13:28:06] dminuoso: What does "unobstrusively" mean
[13:28:35] yebyen: it means that I don't need to build separate UserReader and UserWriter models that point at separate databases
[13:28:39] ellcs: has joined #RubyOnRails
[13:28:47] yebyen: where say, UserWriter < ApplicationRecord
[13:29:05] yebyen: and UserReader < ReaderDatabase
[13:29:20] yebyen: I can just do "User.where" and Rails recognizes that i'm trying to read, so I need the read slave
[13:29:53] yebyen: but if I do "User.new" it says hey, you need to write? i'll send you to the master for writes
[13:30:23] p8m: has joined #RubyOnRails
[13:31:06] yebyen: the three-tiered config that's being proposed for Rails 6 as i understand it
[13:31:09] yebyen: doesn't handle this
[13:31:17] yebyen: is mainly for sharding
[13:32:20] duderonomy: has joined #RubyOnRails
[13:32:24] yebyen: it looks like octopus gem is for my use case
[13:34:18] yebyen: anyway I just wanted to talk about it with someone before I go make an issue on github/rails/rails
[13:36:14] roshanavand: has joined #RubyOnRails
[13:41:28] yebyen: or hop onto an existing issue
[13:44:04] jackhum: has joined #RubyOnRails
[13:55:55] spohnz: has joined #RubyOnRails
[13:56:50] sunrunner20: has left #RubyOnRails: ("Leaving")
[14:16:40] hive-mind: has joined #RubyOnRails
[14:18:30] pushcx: has joined #RubyOnRails
[14:19:21] pushcx: Is there any way to add to the columns selected by a query? .select() replaces them so scopes can't compose. I can't find any activerecord/arel docs of select, though it seems like it might be possible by really digging deep into arel internals.
[14:28:28] dionysus69: has joined #RubyOnRails
[14:39:04] Technodrome: has joined #RubyOnRails
[14:40:49] chouhoulis: has joined #RubyOnRails
[14:47:49] jackhum: has joined #RubyOnRails
[14:52:43] hive-mind: has joined #RubyOnRails
[14:56:11] cschneid_: has joined #RubyOnRails
[15:03:02] eean: has joined #RubyOnRails
[15:03:02] tectonic: has joined #RubyOnRails
[15:03:02] DanKnox: has joined #RubyOnRails
[15:03:02] ipstatic: has joined #RubyOnRails
[15:03:02] webdestroya: has joined #RubyOnRails
[15:03:02] bitch: has joined #RubyOnRails
[15:03:02] marahin: has joined #RubyOnRails
[15:03:02] fumk: has joined #RubyOnRails
[15:03:02] contradictioned: has joined #RubyOnRails
[15:03:02] jhass: has joined #RubyOnRails
[15:03:02] pinkfloyd1911: has joined #RubyOnRails
[15:03:03] SuperTux88: has joined #RubyOnRails
[15:03:03] TViernion: has joined #RubyOnRails
[15:03:03] sunya7a_: has joined #RubyOnRails
[15:03:03] pro777: has joined #RubyOnRails
[15:03:03] dmnd: has joined #RubyOnRails
[15:03:03] jxf: has joined #RubyOnRails
[15:03:03] arthurnn: has joined #RubyOnRails
[15:03:03] codepete: has joined #RubyOnRails
[15:03:03] r3my: has joined #RubyOnRails
[15:03:03] JJonah: has joined #RubyOnRails
[15:03:03] dminuoso: has joined #RubyOnRails
[15:03:03] boxmein: has joined #RubyOnRails
[15:03:03] context: has joined #RubyOnRails
[15:03:03] spectra: has joined #RubyOnRails
[15:03:03] tekk: has joined #RubyOnRails
[15:03:03] daemonwrangler: has joined #RubyOnRails
[15:03:03] larissa: has joined #RubyOnRails
[15:03:03] Avon: has joined #RubyOnRails
[15:03:03] arathald: has joined #RubyOnRails
[15:03:03] HappyHotDog: has joined #RubyOnRails
[15:03:03] CBebop: has joined #RubyOnRails
[15:03:03] cjohnson: has joined #RubyOnRails
[15:03:03] S007: has joined #RubyOnRails
[15:03:03] hpfmn: has joined #RubyOnRails
[15:03:03] rubemlrm: has joined #RubyOnRails
[15:03:03] havenwood: has joined #RubyOnRails
[15:03:03] AntiSpamMeta: has joined #RubyOnRails
[15:03:03] \13k: has joined #RubyOnRails
[15:03:03] silverdust: has joined #RubyOnRails
[15:03:03] tbuehlmann: has joined #RubyOnRails
[15:03:03] kanzure: has joined #RubyOnRails
[15:03:04] jlpeters: has joined #RubyOnRails
[15:03:04] funnel: has joined #RubyOnRails
[15:03:04] cgfbee: has joined #RubyOnRails
[15:03:04] sung_: has joined #RubyOnRails
[15:03:04] tomaw: has joined #RubyOnRails
[15:03:04] michael_mbp: has joined #RubyOnRails
[15:03:04] shenghi: has joined #RubyOnRails
[15:03:04] Alchemical: has joined #RubyOnRails
[15:03:04] fox_mulder_cp: has joined #RubyOnRails
[15:03:04] Vircung: has joined #RubyOnRails
[15:03:04] Psy-Q: has joined #RubyOnRails
[15:03:04] jtperreault: has joined #RubyOnRails
[15:03:04] bphogan: has joined #RubyOnRails
[15:03:04] nemesit|znc: has joined #RubyOnRails
[15:03:04] russt: has joined #RubyOnRails
[15:03:04] G: has joined #RubyOnRails
[15:03:04] fryguy: has joined #RubyOnRails
[15:03:04] baweaver: has joined #RubyOnRails
[15:03:04] newton: has joined #RubyOnRails
[15:03:04] dmarr: has joined #RubyOnRails
[15:03:04] ericmathison: has joined #RubyOnRails
[15:03:04] bdnelson: has joined #RubyOnRails
[15:03:04] leeky: has joined #RubyOnRails
[15:03:04] DylanJ: has joined #RubyOnRails
[15:03:04] Andr3as: has joined #RubyOnRails
[15:03:04] j0bk: has joined #RubyOnRails
[15:03:04] jrm: has joined #RubyOnRails
[15:03:04] Cork: has joined #RubyOnRails
[15:03:04] justinweiss: has joined #RubyOnRails
[15:03:04] lipoqil: has joined #RubyOnRails
[15:03:04] Kamuela: has joined #RubyOnRails
[15:03:04] podman: has joined #RubyOnRails
[15:03:04] mmun: has joined #RubyOnRails
[15:03:04] Mutsuhito: has joined #RubyOnRails
[15:03:04] mattwc: has joined #RubyOnRails
[15:03:04] craysiii: has joined #RubyOnRails
[15:03:05] devlaf: has joined #RubyOnRails
[15:03:05] voker57: has joined #RubyOnRails
[15:03:05] Radar: has joined #RubyOnRails
[15:03:05] yadnesh: has joined #RubyOnRails
[15:03:05] veloutin: has joined #RubyOnRails
[15:03:05] doesntbyte: has joined #RubyOnRails
[15:03:05] Travis-42: has joined #RubyOnRails
[15:03:05] ecook: has joined #RubyOnRails
[15:03:05] ewilliam: has joined #RubyOnRails
[15:03:05] Fire-Dragon-DoL: has joined #RubyOnRails
[15:03:05] Takumo: has joined #RubyOnRails
[15:03:05] tjbp: has joined #RubyOnRails
[15:03:05] desnudopenguino: has joined #RubyOnRails
[15:03:05] logik-bomb: has joined #RubyOnRails
[15:03:05] SanguineAnomaly: has joined #RubyOnRails
[15:03:05] swistak35: has joined #RubyOnRails
[15:03:05] badeball: has joined #RubyOnRails
[15:03:05] fl4sh_: has joined #RubyOnRails
[15:03:05] AlHafoudh: has joined #RubyOnRails
[15:03:05] desperek: has joined #RubyOnRails
[15:03:05] zmo: has joined #RubyOnRails
[15:03:05] crankharder: has joined #RubyOnRails
[15:03:05] quarters: has joined #RubyOnRails
[15:03:05] thomasfedb: has joined #RubyOnRails
[15:03:05] Sirecote: has joined #RubyOnRails
[15:03:05] LyndsySimon: has joined #RubyOnRails
[15:03:05] ArTiSTiX: has joined #RubyOnRails
[15:03:05] Fridtjof: has joined #RubyOnRails
[15:03:05] endemic: has joined #RubyOnRails
[15:03:05] TvL2386: has joined #RubyOnRails
[15:03:05] nertzy: has joined #RubyOnRails
[15:03:05] shtirlic: has joined #RubyOnRails
[15:03:05] epochwolf: has joined #RubyOnRails
[15:03:05] Kilo`byte: has joined #RubyOnRails
[15:03:05] kies^: has joined #RubyOnRails
[15:03:05] cagomez: has joined #RubyOnRails
[15:03:06] tpendragon: has joined #RubyOnRails
[15:03:06] dustinm`: has joined #RubyOnRails
[15:03:06] JDeen: has joined #RubyOnRails
[15:03:06] dang`r`us: has joined #RubyOnRails
[15:03:06] arooni: has joined #RubyOnRails
[15:03:06] iamdevnul: has joined #RubyOnRails
[15:03:06] auv: has joined #RubyOnRails
[15:03:06] Lloyd: has joined #RubyOnRails
[15:03:06] hellekin: has joined #RubyOnRails
[15:03:06] tycoon177: has joined #RubyOnRails
[15:03:06] Vegetable: has joined #RubyOnRails
[15:03:06] Tempesta: has joined #RubyOnRails
[15:03:06] Omnilord: has joined #RubyOnRails
[15:03:06] daveomcd: has joined #RubyOnRails
[15:03:06] blackcross: has joined #RubyOnRails
[15:03:06] lupine: has joined #RubyOnRails
[15:03:06] Maja: has joined #RubyOnRails
[15:03:06] catbusters: has joined #RubyOnRails
[15:03:06] ircmaxell: has joined #RubyOnRails
[15:03:06] dnyy: has joined #RubyOnRails
[15:03:06] ghormoon: has joined #RubyOnRails
[15:03:06] atrius: has joined #RubyOnRails
[15:03:06] LenPayne: has joined #RubyOnRails
[15:03:06] matt_d: has joined #RubyOnRails
[15:03:06] qyliss: has joined #RubyOnRails
[15:03:06] fcser__: has joined #RubyOnRails
[15:03:07] lunarkitty7: has joined #RubyOnRails
[15:03:07] universa1: has joined #RubyOnRails
[15:03:07] beingjohnm: has joined #RubyOnRails
[15:03:07] blitz: has joined #RubyOnRails
[15:03:07] defsdoor: has joined #RubyOnRails
[15:03:07] sonOfRa: has joined #RubyOnRails
[15:03:07] daxroc: has joined #RubyOnRails
[15:03:07] tfitts: has joined #RubyOnRails
[15:03:07] TheMoonMaster: has joined #RubyOnRails
[15:03:07] maciuszek: has joined #RubyOnRails
[15:03:07] Nuck: has joined #RubyOnRails
[15:03:07] mr-robert: has joined #RubyOnRails
[15:03:07] DrYockel: has joined #RubyOnRails
[15:03:07] dtzuzu: has joined #RubyOnRails
[15:03:07] armyriad: has joined #RubyOnRails
[15:03:07] apeiros: has joined #RubyOnRails
[15:03:07] zacts: has joined #RubyOnRails
[15:03:07] kapil___: has joined #RubyOnRails
[15:03:07] noodle: has joined #RubyOnRails
[15:03:07] phon: has joined #RubyOnRails
[15:03:07] LateralO1: has joined #RubyOnRails
[15:03:07] uks: has joined #RubyOnRails
[15:03:07] moei: has joined #RubyOnRails
[15:03:07] mostlybadfly: has joined #RubyOnRails
[15:03:07] darkhanb: has joined #RubyOnRails
[15:03:07] Milos: has joined #RubyOnRails
[15:03:07] reber: has joined #RubyOnRails
[15:03:07] marr: has joined #RubyOnRails
[15:03:07] mr-spoon: has joined #RubyOnRails
[15:03:07] DukeDave: has joined #RubyOnRails
[15:03:07] workmad3: has joined #RubyOnRails
[15:03:07] jrgifford: has joined #RubyOnRails
[15:03:07] hfp_work: has joined #RubyOnRails
[15:03:08] Cavallari: has joined #RubyOnRails
[15:03:08] micmus: has joined #RubyOnRails
[15:03:08] TessaM: has joined #RubyOnRails
[15:03:08] jerematic: has joined #RubyOnRails
[15:03:08] EXCHGR: has joined #RubyOnRails
[15:03:08] sunya7a: has joined #RubyOnRails
[15:03:08] Exagone313: has joined #RubyOnRails
[15:03:08] Sylario: has joined #RubyOnRails
[15:03:08] arcturiaen: has joined #RubyOnRails
[15:03:08] rfoust: has joined #RubyOnRails
[15:03:08] yebyen: has joined #RubyOnRails
[15:03:08] p8m: has joined #RubyOnRails
[15:03:08] Technodrome: has joined #RubyOnRails
[15:03:08] jackhum: has joined #RubyOnRails
[15:03:08] chouhoulis: has joined #RubyOnRails
[15:03:08] pushcx: has joined #RubyOnRails
[15:03:08] roshanavand: has joined #RubyOnRails
[15:03:08] ellcs: has joined #RubyOnRails
[15:03:08] agent_white: has joined #RubyOnRails
[15:03:08] hammer065: has joined #RubyOnRails
[15:03:08] weaksauce: has joined #RubyOnRails
[15:03:08] ule: has joined #RubyOnRails
[15:03:08] Scient: has joined #RubyOnRails
[15:03:08] w0rd-driven: has joined #RubyOnRails
[15:03:08] ephemer0l: has joined #RubyOnRails
[15:03:08] arielserafini: has joined #RubyOnRails
[15:03:08] Liothen: has joined #RubyOnRails
[15:03:08] IanMalcolm: has joined #RubyOnRails
[15:03:08] chridal: has joined #RubyOnRails
[15:03:08] omninonsense: has joined #RubyOnRails
[15:03:08] argoneus: has joined #RubyOnRails
[15:03:09] syndikate: has joined #RubyOnRails
[15:03:09] ltd: has joined #RubyOnRails
[15:04:06] cschneid_: has joined #RubyOnRails
[15:04:06] hive-mind: has joined #RubyOnRails
[15:04:06] bga57: has joined #RubyOnRails
[15:04:06] segy: has joined #RubyOnRails
[15:04:06] matthewd: has joined #RubyOnRails
[15:04:06] trautwein: has joined #RubyOnRails
[15:04:06] linetrace: has joined #RubyOnRails
[15:05:36] segy: has joined #RubyOnRails
[15:06:11] Voxxit: has joined #RubyOnRails
[15:07:42] moei: has joined #RubyOnRails
[15:16:49] _aeris_: has joined #RubyOnRails
[15:18:07] xco: has joined #RubyOnRails
[15:18:52] ryandv: has joined #RubyOnRails
[15:19:09] jnollette: has joined #RubyOnRails
[15:20:03] xco: dang`r`us: i know that :)
[15:21:35] Mutsuhito: has joined #RubyOnRails
[15:22:11] schneider: has joined #RubyOnRails
[15:22:59] conta: has joined #RubyOnRails
[15:26:17] dmnd: has joined #RubyOnRails
[15:27:12] pro777: has joined #RubyOnRails
[15:28:32] context: writing a gem, anyone know a good way to test the library loads without dev dependencies ?
[15:29:56] context: we just hit an issue that someone accidnetally require'd dev dep on the library. everything was peachy in tests, and our rails app that loaded the gem in dev
[15:30:03] context: until we go to deploy and byebug is missing
[15:30:53] ircmaxell: has joined #RubyOnRails
[15:31:57] jlpeters: has joined #RubyOnRails
[15:32:34] orbyt_: has joined #RubyOnRails
[15:33:59] mattwc: has joined #RubyOnRails
[15:35:32] xco: has joined #RubyOnRails
[15:38:41] doesntbyte: has joined #RubyOnRails
[15:39:44] spohnz: Hey guys, I have a quick question, What do you use for ruby gem cloning?
[15:40:25] apeiros: what do you consider "gem cloning"?
[15:40:51] spohnz: I have to create a ruby gem clone for local hosting
[15:40:58] spohnz: thats my sprint
[15:41:11] jottr: has joined #RubyOnRails
[15:41:19] spohnz: I will be hosting on AWS
[15:41:24] apeiros: you are not refering to cloning one gem, you're referring to create the service rubygems.org provides?
[15:41:48] apeiros: geminabox was the last I heard about
[15:41:53] spohnz: yes, something like gem server that is secure
[15:42:18] spohnz: Yeah, I was reading that one.. I like it the most
[15:42:33] spohnz: thought I would ask what you guys use if any
[15:48:40] jcarl43: has joined #RubyOnRails
[15:51:42] acovrig: has joined #RubyOnRails
[15:54:46] acovrig: I’m POSTing a JSON object to a rails instance, I can JSON.parse(request.raw_post) but that feels wrong, shouldn’t I be able to access the params object, if I p params, I get a stringified version of my object => “” as a single parameter, how do I fix this?
[15:54:48] [Butch]: has joined #RubyOnRails
[16:04:37] AntiSpamMeta_: has joined #RubyOnRails
[16:05:38] jackhum_: has joined #RubyOnRails
[16:08:00] dionysus69: has joined #RubyOnRails
[16:10:03] HotDogThe2nd: has joined #RubyOnRails
[16:10:53] one_zero: has joined #RubyOnRails
[16:12:24] darkhanb: has joined #RubyOnRails
[16:13:30] guacamole: has joined #RubyOnRails
[16:16:26] timdotrb: has joined #RubyOnRails
[16:17:38] timdotrb: Morning, all
[16:19:18] havenwood: timdotrb: g'mornin'
[16:20:16] cpruitt: has joined #RubyOnRails
[16:20:34] timdotrb: I’m trying to create a catch all for errors (specifically 404), but when I send a json request, I’m getting html. I’ve tried adding format.js and format.json responders to no avail. Any ideas why? https://gist.github.com/willc0de4food/84f86c04411491e3b5ef85bd29528257
[16:27:22] devlaf: has joined #RubyOnRails
[16:29:33] orbyt_: has joined #RubyOnRails
[16:29:34] deathwishdave: has joined #RubyOnRails
[16:30:10] deathwishdave: is there any such thing a as accredition or stamp that states your web application is secure?
[16:30:40] pushcx: has left #RubyOnRails: ()
[17:01:45] duderonomy: has joined #RubyOnRails
[17:05:49] darkhanb: Is there anything equivalent to Django's gettext_noop in Rails? I'm trying to figure out how to do the dynamic translations: https://dpaste.de/atB3/raw
[17:14:39] Yzguy: has joined #RubyOnRails
[17:23:06] schneider: has joined #RubyOnRails
[17:27:59] Linuus: has joined #RubyOnRails
[17:31:21] nickjj: has joined #RubyOnRails
[17:32:11] workmad3: has joined #RubyOnRails
[17:32:23] schneider: has joined #RubyOnRails
[17:39:36] kakekongen: has joined #RubyOnRails
[17:41:45] schneider: has joined #RubyOnRails
[17:51:02] schneider: has joined #RubyOnRails
[17:52:33] eckhardt: has joined #RubyOnRails
[17:56:08] srinidhi: has joined #RubyOnRails
[17:57:48] sameerynho: has joined #RubyOnRails
[17:57:58] jackhum_: has joined #RubyOnRails
[18:00:20] schneider: has joined #RubyOnRails
[18:00:36] jackhum_: has joined #RubyOnRails
[18:02:59] mrtroy32: has joined #RubyOnRails
[18:03:28] jackhum_: has joined #RubyOnRails
[18:06:24] jackhum_: has joined #RubyOnRails
[18:09:40] schneider: has joined #RubyOnRails
[18:09:51] c0lored: has joined #RubyOnRails
[18:10:37] c0lored: Hello, I am getting an error when trying to run "rails s" in the root of my application., well not really my application, an application that was created 5 or 6 years ago.
[18:12:23] c0lored: I brought it up and put it near your desk.
[18:12:37] c0lored: https://pastebin.com/bGtdWr3x
[18:13:03] c0lored: any ideas?
[18:15:07] rfoust: has joined #RubyOnRails
[18:18:46] dionysus69: could be a ruby version problem
[18:19:40] dionysus69: ruby 2.4.1 is recent, while rails 2.3.5 is ancient
[18:21:39] gambl0re: has joined #RubyOnRails
[18:22:51] mrtroy32: agreed. I'd check the .ruby-version file to make sure rvm is running the right version
[18:26:10] c0lored: ruby version is calling 2.4.1, also that is the only version of ruby installed.
[18:26:16] c0lored: i suppose a little back story may help
[18:26:42] c0lored: i have been tasked with updating a server running 3 apps that were written in the ancient time of rails 2.3.5
[18:26:58] tdy: has joined #RubyOnRails
[18:27:01] c0lored: i have been trying to get these apps to run on the newest stack but was not having luck with rails 5.2
[18:27:48] c0lored: so i decided to run rails 2.3.5 on top of the newer ruby, have crushed most bugs that have popped up. there will be more since the apps used the "mysql" gem which is no longer maintained.
[18:27:50] syndikate: When I compare a date object and a time object what happens? I mean how does the conversion and comparison happen?
[18:28:26] c0lored: i have installed and replaced all instances of require 'mysql' with require mysql2
[18:30:41] ellcs: has joined #RubyOnRails
[18:44:05] schneider: has joined #RubyOnRails
[18:48:49] orbyt_: has joined #RubyOnRails
[18:49:02] dionysus70: has joined #RubyOnRails
[18:53:26] schneider: has joined #RubyOnRails
[18:55:10] deathwishdave: has joined #RubyOnRails
[18:58:51] rikkipitt: has joined #RubyOnRails
[19:00:39] rikkipitt: hi folks, i've got a products controller, but i want to have a separate mini form for a subset of fields that cn be updated separately (remote: true)
[19:01:05] rikkipitt: should i create a separate controller? if so, what do you name these sub/related controllers?
[19:01:23] rikkipitt: product_discounts_controller.rb for example?
[19:01:39] rikkipitt: where discount is a field on product
[19:02:44] schneider: has joined #RubyOnRails
[19:08:58] ellcs: has joined #RubyOnRails
[19:09:51] schneider: has joined #RubyOnRails
[19:12:11] deathwishdave: has joined #RubyOnRails
[19:19:16] schneider: has joined #RubyOnRails
[19:21:20] orbyt_: has joined #RubyOnRails
[19:31:08] Linuus: has joined #RubyOnRails
[19:35:23] cagomez_: has joined #RubyOnRails
[19:36:24] timdotrb: has joined #RubyOnRails
[19:36:42] timdotrb: I’m trying to create a catch all for errors (specifically 404), but when I send a json request, I’m getting html. I’ve tried adding format.js and format.json responders to no avail. Any ideas why? https://gist.github.com/willc0de4food/84f86c04411491e3b5ef85bd29528257
[19:42:11] steerio: has joined #RubyOnRails
[19:42:39] steerio: Hi all, I'm working on someone else's Rails project and my knowledge is rusty. Do I have to do any asset precompilation in development mode?
[19:43:16] steerio: Project runs in production mode on Heroku, but fails in dev mode with a Sprockets::FileNotFound on a require line in a css file
[19:43:35] steerio: there are no production or asset groups in the Gemfile.
[19:43:55] steerio: when trying to run assets::precompile in dev mode it fails (on another require)
[19:44:28] steerio: bundle install has been run of course, and I have no idea what else I'd need
[19:45:47] rikkipitt: has joined #RubyOnRails
[19:46:18] steerio: interestingly, it fails on "foundation" and "jquery", obviously as neither foundation-rails nor jquery-rails are even mentioned in the Gemfile - but then how can it run in production?
[19:47:43] steerio: oh.. they are in bower.json
[19:48:51] jerematic: has joined #RubyOnRails
[19:49:06] steerio: jeez, sorry for wasting bandwidth here with this bullshit.
[19:53:46] cagomez_: has joined #RubyOnRails
[19:55:50] deathwishdave: has joined #RubyOnRails
[20:20:27] Linuus: has joined #RubyOnRails
[20:22:13] c0lored: Hello, when trying to run my application via "rails s" I am getting a cannot load such file error. Please see paste bin for excerpts.
[20:22:38] c0lored: https://pastebin.com/qXdQ9m43
[20:23:13] c0lored: how can i create that file or what do i need to do?
[20:30:34] rikkipitt: has joined #RubyOnRails
[20:36:11] Linuus: has joined #RubyOnRails
[20:40:40] dang`r`us: c0lored, when I google for "cannot load such file -- initializer (LoadError)" I get some info
[20:40:45] dang`r`us: have you checked that?
[20:41:41] c0lored: yea, i have gone through all those google results, and can't see to find a solution that will work for me.
[20:47:33] dang`r`us: maybe create a fresh project and take it from there
[20:48:50] Linuus: has joined #RubyOnRails
[20:48:51] eckhardt: has joined #RubyOnRails
[21:06:31] ellcs: has joined #RubyOnRails
[21:27:24] kapil___: has joined #RubyOnRails
[21:28:55] Linuus: has joined #RubyOnRails
[21:32:48] Ergo: has joined #RubyOnRails
[21:33:12] _3dwardsharp: has joined #RubyOnRails
[21:34:13] daveomcd: anyone know why my assets/fonts/*.tff files aren't being loaded to my production server? I've included config.assets.paths << Rails.root.join("app","assets","fonts") to my application.rb - but when i load the page i still get 404 not found. Whereas it loads fine in development server
[21:46:04] alexertech: has joined #RubyOnRails
[21:46:52] ur5us: has joined #RubyOnRails
[21:51:12] rfoust: has joined #RubyOnRails
[21:58:47] orbyt_: has joined #RubyOnRails
[22:01:32] kapil___: How to get all columns of a table? I have not created model for table.
[22:02:45] Yzguy: has joined #RubyOnRails
[22:06:31] Linuus: has joined #RubyOnRails
[22:15:26] schneider: has joined #RubyOnRails
[22:21:38] eckhardt_: has joined #RubyOnRails
[22:22:07] workmad3: has joined #RubyOnRails
[22:27:03] dang`r`us: kapil___, that's database specific
[22:28:08] dang`r`us: \d table_name
[22:28:54] kapil___: but in the rails how can i read it
[22:28:59] dang`r`us: why do you want that?
[22:29:16] tpendragon: has joined #RubyOnRails
[22:29:17] kapil___: because i want to make a generator
[22:29:46] dang`r`us: I'm sure there is one already
[22:29:55] dang`r`us: anyway, this probably helps: https://stackoverflow.com/a/14949277/1708913
[22:30:01] dang`r`us: but search for gems to do this first.
[22:30:42] kapil___: thanks a lot
[22:32:35] alfiemax: has joined #RubyOnRails
[22:42:22] Linuus: has joined #RubyOnRails
[22:45:06] dipnlik: has joined #RubyOnRails
[22:54:44] eckhardt: has joined #RubyOnRails
[22:55:05] LateralO1: has joined #RubyOnRails
[22:55:43] roshanavand: has joined #RubyOnRails
[22:59:12] Technodrome: has joined #RubyOnRails
[23:00:06] rikkipitt: has joined #RubyOnRails
[23:19:50] codepete: has joined #RubyOnRails
[23:20:37] Exagone313: has joined #RubyOnRails
[23:21:36] Linuus: has joined #RubyOnRails
[23:36:50] MrPunkin: has joined #RubyOnRails
[23:59:03] uksio: has joined #RubyOnRails
[23:59:25] Linuus: has joined #RubyOnRails