« Back to channel list

#RubyOnRails - 09 April 2019

« Back 1 day Forward 1 day »
[00:01:22] rromanchuk: has joined #RubyOnRails
[00:05:01] rromanchuk: What are the considerations for a mobile client that is interacting with actioncable when i want to unsubscribe and disconnect? I'm seeing a lot of random usage and examples but they dont seem correct
[00:13:35] Momentum: i got any error while trying to rollback migrations of devise, can anyone help?
[00:15:05] Momentum: well, i don't think i'm supposed to rollback devise migrations i guess
[00:16:37] havenwood: Momentum: Does it not work to just?: rails db:rollback
[00:16:55] Momentum: it doesn't, it says irreversible migration
[00:18:11] Momentum: i actually i don't want to reverse the devise migration, i just wanted to reverse some other migration which happened before that
[00:18:22] Momentum: i guess i'll just specify the version?
[00:19:26] havenwood: Momentum: ah, yeah they have a caveat: https://github.com/plataformatec/devise/blob/715192a7709a4c02127afb067e66230061b82cf2/lib/generators/active_record/templates/migration_existing.rb#L23-L24
[00:20:36] havenwood: Momentum: looks like they're suggesting to edit the #down
[00:21:40] Momentum: yeah, i'll just make the devise migration chronologically first, that should save me a lot of headache since i didn't even want to edit the migration
[00:31:40] jottr: has joined #RubyOnRails
[00:33:54] segy: has joined #RubyOnRails
[00:40:57] NeXTSUN: has joined #RubyOnRails
[00:42:45] ariedler: has joined #RubyOnRails
[01:06:07] walidvb: has joined #RubyOnRails
[01:19:58] sevenseacat: has joined #RubyOnRails
[01:28:12] mangold: has joined #RubyOnRails
[01:45:21] Saukk: has joined #RubyOnRails
[01:47:21] segy: has joined #RubyOnRails
[01:54:50] GodFather: has joined #RubyOnRails
[02:08:30] bambanx: has joined #RubyOnRails
[02:09:53] mangold: has joined #RubyOnRails
[02:28:01] pd09041999: has joined #RubyOnRails
[02:31:38] pd09041999: has joined #RubyOnRails
[02:33:06] jottr: has joined #RubyOnRails
[02:39:26] LtHummus: has joined #RubyOnRails
[02:51:38] segy: has joined #RubyOnRails
[02:58:05] ebsen: has joined #RubyOnRails
[03:09:56] braincrash: has joined #RubyOnRails
[03:17:33] wallace_mu: has joined #RubyOnRails
[03:19:56] wallace_mu: Guys, is cache log in rails log file for redis cache or memcache log how do i tell?
[03:49:42] Haydos: has joined #RubyOnRails
[04:01:34] kapil____: has joined #RubyOnRails
[04:04:15] segy: has joined #RubyOnRails
[04:04:41] LtHummus: has joined #RubyOnRails
[04:21:54] mhlei: has joined #RubyOnRails
[04:29:19] mhlei: nobody available?
[04:33:00] mhlei: has joined #RubyOnRails
[04:34:19] jottr: has joined #RubyOnRails
[04:49:59] segy: has joined #RubyOnRails
[04:57:23] bambanx: why the rails community is so friendly?
[04:57:34] sevenseacat: why not? costs nothing
[05:01:55] bambanx: some channels is like you talk with robots
[05:02:25] bambanx: and thw world needs right now people using more right side of the brain than the left
[05:05:16] jottr: has joined #RubyOnRails
[05:09:18] sidx64: has joined #RubyOnRails
[05:17:28] ricekrispie: has joined #RubyOnRails
[05:19:19] segy: has joined #RubyOnRails
[05:23:18] conta: has joined #RubyOnRails
[05:31:59] mhlei: has joined #RubyOnRails
[05:39:12] jottr: has joined #RubyOnRails
[05:45:23] jottr: has joined #RubyOnRails
[06:01:20] MrCrackPotBuilde: has joined #RubyOnRails
[06:11:53] ur5us: has joined #RubyOnRails
[06:16:18] hightower3: has joined #RubyOnRails
[06:16:41] salasrod: has joined #RubyOnRails
[06:17:45] jottr: has joined #RubyOnRails
[06:23:34] cschneid: has joined #RubyOnRails
[06:26:29] pd09041999: has joined #RubyOnRails
[06:29:06] snickers: has joined #RubyOnRails
[06:52:45] Technodrome: has joined #RubyOnRails
[06:55:56] cschneid: has joined #RubyOnRails
[07:00:41] jottr: has joined #RubyOnRails
[07:00:56] DTZUZO: has joined #RubyOnRails
[07:04:03] luioso: has joined #RubyOnRails
[07:04:33] lankanmon: has joined #RubyOnRails
[07:05:47] luioso: Hello. What's the best way to set a navigation menu state in a view partial? It's a navbar and I'd like to reuse it in a few different views. I'd like to mark the currently selected item as "active". Is it better to explicitly pass that information into the partial as a parameter or to check the current path within the partial?
[07:11:58] cschneid: has joined #RubyOnRails
[07:13:20] helpa: has joined #RubyOnRails
[07:14:02] hellekin: has joined #RubyOnRails
[07:14:35] darkphnx480: has joined #RubyOnRails
[07:15:52] sidx64: has joined #RubyOnRails
[07:17:24] Momentum: has joined #RubyOnRails
[07:19:46] tris: has joined #RubyOnRails
[07:22:42] prestorium: has joined #RubyOnRails
[07:23:02] cgfbee: has joined #RubyOnRails
[07:27:28] za1b1tsu: has joined #RubyOnRails
[07:31:12] za1b1tsu_: has joined #RubyOnRails
[07:32:04] jottr: has joined #RubyOnRails
[07:37:02] Ergo: has joined #RubyOnRails
[07:44:04] cschneid: has joined #RubyOnRails
[07:52:01] cschneid: has joined #RubyOnRails
[07:52:44] RiPuk: has joined #RubyOnRails
[07:59:25] kapil____: has joined #RubyOnRails
[08:00:42] SanguineAnomaly: has joined #RubyOnRails
[08:02:12] mhlei: has joined #RubyOnRails
[08:03:30] cschneid: has joined #RubyOnRails
[08:03:54] ur5us: has joined #RubyOnRails
[08:11:16] mhlei: hello everyone, Which IDE is suitable for ROR development?
[08:12:18] mhlei: which is best for recommending?
[08:13:23] sevenseacat: whichever you're already familiar with.
[08:15:22] cschneid: has joined #RubyOnRails
[08:28:21] sidx64: has joined #RubyOnRails
[08:49:09] srinidhi: has joined #RubyOnRails
[09:01:10] yoones: has joined #RubyOnRails
[09:03:42] yoones: Hi! I just opened a PR on rails (https://github.com/rails/rails/pull/35906). The build fails because of a timeout but I fail to understand why. Any help?
[09:05:06] yoones: It looks like git clone timed out, I don't know what I can do about that nor how to relaunch a build
[09:08:10] sevenseacat: don't think there's anything you can do about that
[09:08:20] cschneid: has joined #RubyOnRails
[09:35:32] LtHummus: has joined #RubyOnRails
[09:37:22] jottr: has joined #RubyOnRails
[09:41:33] pd09041999: has joined #RubyOnRails
[09:45:44] sidx64: has joined #RubyOnRails
[09:52:22] mangold: has joined #RubyOnRails
[09:54:20] sidx64: has joined #RubyOnRails
[09:54:50] lxsameer: has joined #RubyOnRails
[09:54:57] Technodrome: has joined #RubyOnRails
[09:59:06] TvL2386: has joined #RubyOnRails
[10:20:27] ariedler: has joined #RubyOnRails
[10:23:33] KeyJoo: has joined #RubyOnRails
[10:26:28] conta: has joined #RubyOnRails
[10:52:14] lankanmon: has joined #RubyOnRails
[10:54:30] xco: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[10:56:03] cschneid: has joined #RubyOnRails
[11:04:42] sidx64: has joined #RubyOnRails
[11:21:16] xco: Hi I need help but don’t even know if this is possible. I think it is
[11:21:19] xco: I have this query
[11:21:20] xco: https://gist.github.com/xcobar/977aa688df3ee173559d49690383bf83
[11:21:37] xco: how do I load all the nested tables, and still select only some columns?
[11:22:30] xco: i’m not interested in loading all the columns as it’ll be slow. so how do i select, say learner.name and question.expiry_date for instance?
[11:22:48] sidx64: has joined #RubyOnRails
[11:28:04] sidx64: has joined #RubyOnRails
[11:30:11] apparition: has joined #RubyOnRails
[11:32:56] bokwoon: has joined #RubyOnRails
[11:49:03] mhlei: has joined #RubyOnRails
[12:04:08] MrCrackPotBuilde: has joined #RubyOnRails
[12:13:53] shenghi: xco, Answer.join(:learners).select('answers.*', 'learners.name'), extend as needed.
[12:18:11] sidx64: has joined #RubyOnRails
[12:31:42] cschneid: has joined #RubyOnRails
[12:34:41] jottr: has joined #RubyOnRails
[12:37:49] xco: shenghi: thanks. this gives me this https://gist.github.com/xcobar/977aa688df3ee173559d49690383bf83 but the problem is getting the nested columns in
[12:37:56] xco: how do i do that?
[12:51:58] jottr: has joined #RubyOnRails
[12:53:31] Technodrome: has joined #RubyOnRails
[13:10:21] jottr: has joined #RubyOnRails
[13:10:29] pd09041999: has joined #RubyOnRails
[13:21:29] jottr: has joined #RubyOnRails
[13:34:18] wallace_mu: has joined #RubyOnRails
[13:53:24] samort7: has joined #RubyOnRails
[14:01:09] krawchyk: has joined #RubyOnRails
[14:01:30] beilabs: has joined #RubyOnRails
[14:08:45] tdy: has joined #RubyOnRails
[14:10:52] beilabs: has joined #RubyOnRails
[14:11:26] cschneid: has joined #RubyOnRails
[14:20:40] duderonomy: has joined #RubyOnRails
[14:25:00] za1b1tsu: has joined #RubyOnRails
[15:01:43] conta: has joined #RubyOnRails
[15:12:32] Sylario: has joined #RubyOnRails
[15:12:59] Sylario: I just saw paperclip is deprecated, and they propose active storage, but I do not use a cloud service, what should I use ?
[15:16:45] Dbugger: has joined #RubyOnRails
[15:33:14] samort7: snk: Good morning snk
[15:34:58] jottr_: has joined #RubyOnRails
[15:36:39] samort7: snk: decided to post my issue to SO: https://stackoverflow.com/questions/55596186/use-a-single-form-with-to-create-and-edit-nested-resources-in-rails
[15:48:32] Saukk: has joined #RubyOnRails
[15:52:56] conta2: has joined #RubyOnRails
[16:03:02] eddof13: has joined #RubyOnRails
[16:09:15] eddof13: has joined #RubyOnRails
[16:28:53] jottr: has joined #RubyOnRails
[16:32:12] brool: has joined #RubyOnRails
[16:33:00] wallace_mu: has joined #RubyOnRails
[16:34:24] orbyt_: has joined #RubyOnRails
[16:39:27] mondz: has joined #RubyOnRails
[16:40:32] IGnorAND: when running irb, what do I need to require to read Rails.application.credentials
[16:41:15] orbyt_: has joined #RubyOnRails
[16:44:22] IGnorAND: it works with rails console though so I'm assuming I need something rails specific
[16:48:18] orbyt_: has joined #RubyOnRails
[17:01:15] nacsurte: has joined #RubyOnRails
[17:02:13] nacsurte: i've got a belongs_to association that has a record associated with it - i can see it in the database - but when i try to see it in the console it shows up as a nil record, all attributes showing nil
[17:02:51] nacsurte: is this something i can turn off?
[17:03:45] dviola: has joined #RubyOnRails
[17:24:05] duderonomy: has joined #RubyOnRails
[17:29:02] defsdoor: has joined #RubyOnRails
[17:31:32] pd09041999: has joined #RubyOnRails
[17:36:24] pd09041999: has joined #RubyOnRails
[17:40:42] mt9znz: has joined #RubyOnRails
[17:43:45] brool: has joined #RubyOnRails
[17:45:20] mt9znz: How can I understand where "new_registration_path" is defined in Devise registrations_controller.rb?
[17:46:15] mt9znz: I'm getting an error when I go to /users/cancel because of a missing key (a special :referral_code I use in other places), but I don't see why this would be used in cancel
[17:46:29] mt9znz: and according to rake routes, there is no "new_registration_path"
[17:46:37] Aherin: has joined #RubyOnRails
[17:55:37] Xiti: has joined #RubyOnRails
[18:01:09] sidx64: has joined #RubyOnRails
[18:03:16] orbyt_: has joined #RubyOnRails
[18:06:25] sidx64_: has joined #RubyOnRails
[18:06:30] duderonomy: has joined #RubyOnRails
[18:09:14] conta: has joined #RubyOnRails
[18:21:17] maambmb: has joined #RubyOnRails
[18:22:13] maambmb: Hey guys, everytime I run a rails migration (using postgres 9.6) it removes an already existing "CREATE EXTENSION plpgsql" from structure.sql. Just want to understand why thats happening
[18:22:19] maambmb: thanks in advance for any insights
[18:27:13] duderonomy: has joined #RubyOnRails
[18:30:40] mt9znz: I have no idea, and I'm new here, but what I just looked up indicated that structure.sql should get appended to during a migration, not overwritten.
[18:30:48] mt9znz: However, I also found this regarding adding extensions:
[18:30:50] mt9znz: https://stackoverflow.com/questions/16611226/how-to-install-postgres-extensions-at-database-creation
[18:31:03] mt9znz: hope that helps. If not, sorry!
[18:33:48] maambmb: Thanks mt9znz
[18:33:51] maambmb: I just figured it out
[18:34:03] maambmb: I have some super old version of pg_dump
[18:34:10] maambmb: sorry for wasting your time :D
[18:35:29] duderonomy: has joined #RubyOnRails
[18:42:46] IGnorAND: nacsurte: can you show what you did in the console with output?
[18:44:40] Fira: has joined #RubyOnRails
[18:45:08] ellcs: has joined #RubyOnRails
[18:49:37] duderonomy: has joined #RubyOnRails
[18:53:57] Technodrome: has joined #RubyOnRails
[18:55:24] orbyt_: has joined #RubyOnRails
[18:55:42] Fira: Hi. Starting with RoR and could use some advice. I'm mildly confused regarding background processing in Rails. I'm trying to consume a third-party website as a background task. I was looking to use ActionJob+Resque for that. But from what i get, jobs are independant, yet i'd need a way to persist login/session info accross jobs.. Can only assume I got the wrong line of thinking there, so could use some help
[19:10:42] duderonomy: has joined #RubyOnRails
[19:21:07] segy: has joined #RubyOnRails
[19:35:51] lxsameer: has joined #RubyOnRails
[19:53:51] segy: has joined #RubyOnRails
[20:00:18] eddof13: has joined #RubyOnRails
[20:01:26] ellcs: has joined #RubyOnRails
[20:23:10] eddof13: has joined #RubyOnRails
[20:25:31] segy: has joined #RubyOnRails
[20:38:57] cxl: has joined #RubyOnRails
[20:39:09] cxl: Hi, is apidocks.com abandonned?
[20:39:25] orbyt_: has joined #RubyOnRails
[20:44:24] xco: i need help converting this to raw sql
[20:44:25] xco: Answer.joins(:learner, possible_answer: [question: [:quiz]])
[20:44:41] xco: in exchange for beer
[20:47:16] orbyt_: has joined #RubyOnRails
[20:48:15] xco: actually i’ll keep my beer
[20:48:23] xco: pasting this in the console converts it to sql
[20:50:11] RiPuk: has joined #RubyOnRails
[20:51:13] hightower2: has joined #RubyOnRails
[20:56:12] uksio: has joined #RubyOnRails
[20:57:01] segy: has joined #RubyOnRails
[20:58:12] RiPuk: has joined #RubyOnRails
[21:03:19] jottr: has joined #RubyOnRails
[21:10:18] duderonomy: has joined #RubyOnRails
[21:28:26] brool: has joined #RubyOnRails
[21:34:45] RiPuk: has joined #RubyOnRails
[21:40:10] jottr: has joined #RubyOnRails
[21:43:08] skryking: has joined #RubyOnRails
[21:44:35] mangold: has joined #RubyOnRails
[21:47:22] tdy: has joined #RubyOnRails
[21:59:01] lxsameer: has joined #RubyOnRails
[22:14:33] Fernando-Basso: has joined #RubyOnRails
[22:19:10] eddof13: has joined #RubyOnRails
[22:19:49] shansen: has joined #RubyOnRails
[22:24:12] Vircung: has joined #RubyOnRails
[22:26:24] havenwood: xco: #to_sql
[22:28:24] xco: havenwood: thanks :)
[22:29:16] wethu: has joined #RubyOnRails
[22:32:07] Haydos: has joined #RubyOnRails
[22:33:27] Technodrome: has joined #RubyOnRails
[22:37:06] orbyt_: has joined #RubyOnRails
[22:38:41] jottr: has joined #RubyOnRails
[23:01:14] duderonomy: has joined #RubyOnRails
[23:02:43] mangold: has joined #RubyOnRails
[23:10:19] andywww: has joined #RubyOnRails
[23:12:28] NeXTSUN: has joined #RubyOnRails
[23:21:10] duderonomy: has joined #RubyOnRails
[23:43:58] bambanx: has joined #RubyOnRails