#RubyOnRails - 09 April 2019
« Back 1 day Forward 1 day »
[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: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: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: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
[03:19:56] wallace_mu: Guys, is cache log in rails log file for redis cache or memcache log how do i tell?
[05:02:25] bambanx: and thw world needs right now people using more right side of the brain than the left
[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?
[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
[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?
[12:13:53] shenghi: xco, Answer.join(:learners).select('answers.*', 'learners.name'), extend as needed.
[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
[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: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
[16:40:32] IGnorAND: when running irb, what do I need to require to read Rails.application.credentials
[16:44:22] IGnorAND: it works with rails console though so I'm assuming I need something rails specific
[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: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
[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: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:50] mt9znz: https://stackoverflow.com/questions/16611226/how-to-install-postgres-extensions-at-database-creation
[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