« Back to channel list

#RubyOnRails - 05 February 2019

« Back 1 day Forward 1 day »
[00:01:22] tdy: has joined #RubyOnRails
[00:31:26] gambl0re: has joined #RubyOnRails
[00:40:00] yoshie902a: has joined #RubyOnRails
[00:40:53] yoshie902a: Need help with a string not matching error during a devise registration. I am using a jsonb field. Issue is here.. https://stackoverflow.com/questions/54526338/devise-registration-string-not-matched-with-jsonb-field
[00:41:13] yoshie902a: any help would be apprecaited.
[00:55:52] quazimodo: has joined #RubyOnRails
[01:04:08] ericboehs: has joined #RubyOnRails
[01:05:48] hahuang6-: has joined #RubyOnRails
[01:09:36] blackmesa: has joined #RubyOnRails
[01:12:53] blackmesa1: has joined #RubyOnRails
[01:14:58] blackmesa: has joined #RubyOnRails
[01:27:26] blackmesa: has joined #RubyOnRails
[02:06:16] mikecmpbll: has joined #RubyOnRails
[02:20:46] cnsvc: has joined #RubyOnRails
[02:20:56] quazimodo: has joined #RubyOnRails
[02:35:29] Croata: has joined #RubyOnRails
[02:45:04] crankharder: has joined #RubyOnRails
[03:02:54] gambl0re: has joined #RubyOnRails
[03:05:39] jgpawletko: has joined #RubyOnRails
[03:05:48] crankharder: has joined #RubyOnRails
[03:08:36] ivanskie: has joined #RubyOnRails
[03:10:04] ericboehs: has joined #RubyOnRails
[03:11:22] quazimodo: has joined #RubyOnRails
[03:14:26] barhum2013: has joined #RubyOnRails
[03:17:45] Saukk: has joined #RubyOnRails
[03:20:14] quazimodo: has joined #RubyOnRails
[03:26:22] crankharder: has joined #RubyOnRails
[03:27:42] ericboehs: has joined #RubyOnRails
[03:33:09] cnsvc: has joined #RubyOnRails
[03:40:49] tdy: has joined #RubyOnRails
[03:46:59] crankharder: has joined #RubyOnRails
[04:02:49] orbyt_: has joined #RubyOnRails
[04:05:22] crankharder: has joined #RubyOnRails
[04:09:49] braincrash: has joined #RubyOnRails
[04:12:59] sevenseacat: has joined #RubyOnRails
[04:19:21] ericboehs: has joined #RubyOnRails
[04:42:22] GodFather: has joined #RubyOnRails
[04:46:09] mangold: has joined #RubyOnRails
[04:56:26] srinidhi: has joined #RubyOnRails
[05:42:59] wethu: has joined #RubyOnRails
[05:50:46] mangold: has joined #RubyOnRails
[06:01:32] srinidhi: has joined #RubyOnRails
[06:10:18] kapil____: has joined #RubyOnRails
[06:18:15] za1b1tsu: has joined #RubyOnRails
[06:19:40] reber: has joined #RubyOnRails
[06:19:56] syndikate: IGnorAND, yes, I am trying to understand more innards of the gem. Still looking into it.
[06:21:17] conta: has joined #RubyOnRails
[06:33:14] funnel: has joined #RubyOnRails
[06:34:32] Technodrome: has joined #RubyOnRails
[06:43:32] jesfre: has joined #RubyOnRails
[06:49:59] za1b1tsu: has joined #RubyOnRails
[07:08:28] dionysus69: has joined #RubyOnRails
[07:25:01] ericboehs: has joined #RubyOnRails
[07:34:00] mangold: has joined #RubyOnRails
[07:36:51] cheeti: has joined #RubyOnRails
[07:38:06] cheeti: hi is this possible to add two step login using active_model_otp gem?
[07:40:19] sevenseacat: sure. you might prefer devise-two-factor though, if you're using devise
[07:40:37] sevenseacat: either way, you're going to be writing a lot of the controller etc. code yourself
[07:42:09] cheeti: sevenseacat we can write devise module to validate otp?
[07:42:30] sevenseacat: check the gem
[07:42:56] cheeti: sevenseacat which gem
[07:43:11] sevenseacat: either active_model_otp or devise-two-factor
[08:01:43] lankanmon: has joined #RubyOnRails
[08:02:49] blackmesa: has joined #RubyOnRails
[08:09:49] gambl0re: has joined #RubyOnRails
[08:14:07] barhum2013: has joined #RubyOnRails
[08:17:32] blackmesa1: has joined #RubyOnRails
[08:28:50] mikecmpbll: has joined #RubyOnRails
[08:30:06] bruce_lee: has joined #RubyOnRails
[08:34:01] za1b1tsu: has joined #RubyOnRails
[08:49:45] ellcs: has joined #RubyOnRails
[09:11:40] mikecmpbll: has joined #RubyOnRails
[09:15:05] kapil____: has joined #RubyOnRails
[09:20:54] alexhartley: has joined #RubyOnRails
[09:29:12] mikecmpb_: has joined #RubyOnRails
[09:31:19] conta: has joined #RubyOnRails
[09:34:59] duderonomy: has joined #RubyOnRails
[09:35:05] Guest16678: has joined #RubyOnRails
[09:40:29] Sylario: has joined #RubyOnRails
[10:06:35] sevenseacat: has joined #RubyOnRails
[10:09:26] Jervis_: has joined #RubyOnRails
[10:23:40] apparition: has joined #RubyOnRails
[10:36:21] gambl0r3: has joined #RubyOnRails
[10:41:28] za1b1tsu: has joined #RubyOnRails
[11:03:08] tdy: has joined #RubyOnRails
[11:04:10] conta: has joined #RubyOnRails
[11:07:01] roshanavand: has joined #RubyOnRails
[11:12:31] GodFather: has joined #RubyOnRails
[11:13:35] v01d4lph4: has joined #RubyOnRails
[11:14:39] IsBennani: has joined #RubyOnRails
[11:16:18] conta: has joined #RubyOnRails
[11:31:24] conta: has joined #RubyOnRails
[11:36:05] conta: has joined #RubyOnRails
[11:41:29] conta: has joined #RubyOnRails
[11:43:47] Ergo: has joined #RubyOnRails
[11:50:08] za1b1tsu: has joined #RubyOnRails
[11:52:57] lankanmon: has joined #RubyOnRails
[11:55:25] ariedler: has joined #RubyOnRails
[11:56:57] ariedler: has joined #RubyOnRails
[11:58:36] catbusters: has joined #RubyOnRails
[12:04:34] roshanavand: has joined #RubyOnRails
[12:07:13] conta1: has joined #RubyOnRails
[12:08:20] mangold: has joined #RubyOnRails
[12:09:31] roshanavand: has joined #RubyOnRails
[12:13:26] srinidhi: has joined #RubyOnRails
[12:14:49] tdy1: has joined #RubyOnRails
[12:21:45] _aeris_: has joined #RubyOnRails
[12:31:00] catphish: has joined #RubyOnRails
[12:36:05] oddie: has joined #RubyOnRails
[12:42:25] roshanavand: has joined #RubyOnRails
[13:08:41] MrCrackPotBuilde: has joined #RubyOnRails
[13:09:46] MrCrackPotBuilde: im trying to update an app but im getting an error with ruby 2.6 same as here https://github.com/plataformatec/devise/issues/4703 is there a workaround for ruby 2.6
[13:11:11] tbuehlmann: sure, fix the code
[13:13:18] MrCrackPotBuilde: as it works fine with 2.5
[13:14:16] tdy1: has joined #RubyOnRails
[13:15:27] tbuehlmann: have you read the thread? when following the trail, you'll get to this: https://github.com/plataformatec/devise/commit/1009096172f2cbc86bcd54d053c89a09be67fb9f
[13:44:23] uksio: has joined #RubyOnRails
[13:46:28] MrCrackPotBuilde: tbuehlmann ty my devise gem wouldnt update so had to add the git master branch now its gone
[13:49:00] Sylario: I cannot find where *_url methods are defined in rails. I want to know what params it can take
[13:58:47] sebuba: has joined #RubyOnRails
[14:04:18] v01d4lph4: has joined #RubyOnRails
[14:05:05] MrCrackPotBuilde: do you mean url_for ?? sylario
[14:06:20] Sylario: no I mean when you do photo_url(@photo)
[14:06:42] MrCrackPotBuilde: https://api.rubyonrails.org/
[14:07:08] Sylario: I did not find where it is
[14:11:03] catphish: has left #RubyOnRails: ("Leaving")
[14:32:05] Guest16678: has joined #RubyOnRails
[14:57:59] Sylario: Ok so I tried to add subdomain: 'content' to a *_url, and it works, it was a shot in the dark
[14:58:20] Sylario: I still do not know what toher options may be available
[14:59:32] kapil____: has joined #RubyOnRails
[15:01:48] _aeris_: has joined #RubyOnRails
[15:12:11] Guest16678: has joined #RubyOnRails
[15:20:52] sebuba: has joined #RubyOnRails
[15:37:22] alexhartley: has joined #RubyOnRails
[15:39:44] gambl0r3: has joined #RubyOnRails
[15:40:40] orbyt_: has joined #RubyOnRails
[16:00:26] conta1: has joined #RubyOnRails
[16:06:25] SteenJobs: has joined #RubyOnRails
[16:13:32] tdy1: has joined #RubyOnRails
[16:15:31] beholders_eye: has joined #RubyOnRails
[16:15:49] v01d4lph4: has joined #RubyOnRails
[16:16:48] loincloth: has joined #RubyOnRails
[16:21:28] MrCrackPotBuilde: has joined #RubyOnRails
[16:22:37] loincloth: Hi all. Rails is loading SQLite3 in development even though I've said to use PG. I can't see what I'm missing. This is my config: https://dpaste.de/WDO2
[16:22:41] Saukk: has joined #RubyOnRails
[16:24:49] roshanavand: has joined #RubyOnRails
[16:37:35] MrCrackPotBuilde: loincloth is it a brand new app ??
[16:41:09] loincloth: Is it possible some "corruption" of the gem bundle could account for this?
[16:42:30] loincloth: I don't know exactly what that would mean... just grasping at straws, I guess. I must have missed something along the way, but I'm just staring at that exact config... trying only to load the Rails console... and seeing it interacting with sqlite3 after console loads...
[16:45:46] MrCrackPotBuilde: do you have postgresql installed along with pg gem
[16:46:02] MrCrackPotBuilde: have you set your pg_hba.conf to trust
[16:48:42] loincloth: I haven't touched any PG conf files and can't imagine why I would need to do so. It was working and then suddenly stopped recently.
[16:49:07] loincloth: I was switching between some branches and ran into sudden issues with it trying to load SQLite. :\
[16:49:16] MrCrackPotBuilde: https://pastebin.com/raw/M13bngXZ
[16:49:23] loincloth: I know how this sounds... I've tried to identify what changed, but can't sort it out...
[16:51:17] loincloth: Even if it's not a "new" app, it's new to me that I could have the config I have and not have it load the adapter I asked for...
[16:51:19] MrCrackPotBuilde: loincloth check with that config see if it is the same
[16:51:54] MrCrackPotBuilde: then if all else fails id check your pg_hba.conf to see if your able to accept connections
[16:53:53] loincloth: SQLite again w/ that config
[16:54:08] Dbugger: has joined #RubyOnRails
[16:54:12] MrCrackPotBuilde: can i see your gemfile
[16:54:31] GodFather: has joined #RubyOnRails
[16:55:11] loincloth: hmm i think something is wrong with my psql install
[16:55:24] loincloth: went to load shell to issue command to show me hba file and it can't even load shell
[16:55:49] loincloth: so i guess that led me in the right direction after all... just not sure what would have messed with this
[16:56:11] loincloth: anyway seems i have a lead... thx MrCrackPotBuilde
[16:57:14] loincloth: It is not a helpful default to assume a different database system than the one I specified, though.
[16:57:36] loincloth: Maybe tell me about the issues with Postgres, Rails, instead of trying to be so "clever".
[16:58:45] jottr: has joined #RubyOnRails
[17:00:50] MrCrackPotBuilde: you cant view pg_hba.conf from console i believe you have to do something like nano /etc/postgresql/10/main/pg_hba.conf
[17:01:00] loincloth: Or I don't actually know how to invoke `psql`... ffs... having a bad morning :(
[17:01:12] roshanavand: has joined #RubyOnRails
[17:01:24] MrCrackPotBuilde: or postgres psql
[17:01:29] MrCrackPotBuilde: from the command line
[17:01:43] MrCrackPotBuilde: but if you already had it running your should already know how to use psql
[17:01:59] loincloth: Yeah, I thought it was broken because I just said `psql` and it assumed a database named after my user, I guess.
[17:02:30] MrCrackPotBuilde: you need to create a role then give it permissions to make db's
[17:02:48] MrCrackPotBuilde: then you input the username into your config db
[17:02:54] MrCrackPotBuilde: along with the password
[17:03:14] MrCrackPotBuilde: but you should be using either secrets or credentials depending on your rails version
[17:04:26] MrCrackPotBuilde: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04
[17:05:11] loincloth: I was running just fine without any user specified.
[17:05:32] MrCrackPotBuilde: thats not a very good way to do things
[17:05:41] loincloth: I didn't ask for
[17:05:42] MrCrackPotBuilde: especially if your working on multiple apps
[17:05:45] loincloth: that kind of feedback
[17:05:53] MrCrackPotBuilde: that could be your problem though
[17:06:13] MrCrackPotBuilde: no need to be pissy when someone is trying to help
[17:06:13] jottr: has joined #RubyOnRails
[17:06:16] loincloth: Now we're on "could" and your value judgments
[17:06:20] loincloth: Thanks, sweetie
[17:12:14] tdy1: has joined #RubyOnRails
[17:15:35] pLaTo0n: has joined #RubyOnRails
[17:20:53] srinidhi: has joined #RubyOnRails
[17:20:59] GodFather: has joined #RubyOnRails
[17:31:38] [Butch]: has joined #RubyOnRails
[17:37:31] jottr: has joined #RubyOnRails
[17:39:48] jottr: has joined #RubyOnRails
[17:43:14] srinidhi: has joined #RubyOnRails
[17:43:25] jottr_: has joined #RubyOnRails
[17:43:35] orbyt_: has joined #RubyOnRails
[17:52:21] Guest16678: has joined #RubyOnRails
[17:57:38] DTZUZO: has joined #RubyOnRails
[17:58:32] platoon23: has joined #RubyOnRails
[18:00:46] mikecmpbll: has joined #RubyOnRails
[18:13:05] scrptktty: has joined #RubyOnRails
[18:14:35] Aherin: has joined #RubyOnRails
[18:18:17] baweaver: MrCrackPotBuilde / loincloth: cool it.
[18:20:13] MrCrackPotBuilde: baweaver hes gone already i no idea what his problem was though ran through the error check i perform when i have an error
[18:20:47] baweaver: If they show back up I'll mention that their behavior was inappropriate.
[18:20:56] _bet0n: has joined #RubyOnRails
[18:21:25] MrCrackPotBuilde: no worries i do appologise for the asshat remark thats more the CNY beer talking \
[18:22:07] _bet0n: Hello folks
[18:22:09] baweaver: Eh, happens.
[18:23:22] MrCrackPotBuilde: seems he didn't read my comments very clearly as ive no idea what he meant by different db system as i mentioned only pg
[18:23:33] MrCrackPotBuilde: anyway GONG XI FA CAI
[18:25:56] baweaver: Happy new years to you as well.
[18:28:30] orbyt_: has joined #RubyOnRails
[18:28:48] _bet0n: has left #RubyOnRails: ()
[18:34:02] orbyt_: has joined #RubyOnRails
[18:50:50] lxsameer: has joined #RubyOnRails
[18:57:24] timwis: Hey folks, I'm new to rails and using OmniAuth for authentication. It doesn't seem to add an authenticate_user! method on its own, which I assume devise does. Is it expected that I'll write this manually? Or should I really be using devise too?
[19:00:24] orbyt_: has joined #RubyOnRails
[19:02:45] Terens: has joined #RubyOnRails
[19:03:53] Terens: when developing a service/something that involves calling other libraries should I catch and raise custom errors?
[19:04:25] agent_white: has joined #RubyOnRails
[19:04:59] Terens: For example when developing an API wrapper that makes some calls using Oauth. Should I catch the specific oauth error and raise mine
[19:05:45] jottr_: has joined #RubyOnRails
[19:08:11] loincloth: has joined #RubyOnRails
[19:09:09] loincloth: If anybody was following along with my problems earlier where SQLite was being loaded in Rails console despite Postgres being specified in configs: it turned out to be related to Spring somehow. `spring stop` got my subsequent console sessions to behave correctly.
[19:09:37] loincloth: I confirmed that my configs and database setup were fine partly via finally trying `rails dbconsole` which correctly went into a psql shell.
[19:09:46] segy: has joined #RubyOnRails
[19:09:58] loincloth: This old, possibly related issue led me down the proper debugging path: https://github.com/rails/rails/issues/19256
[19:10:25] loincloth: tl; dr: t(-.-t) to Spring
[19:11:04] loincloth: and one more t(-.-t) to MrCrackPotBuilde just for good measure :-*
[19:11:05] defsdoor: has joined #RubyOnRails
[19:15:59] duderonomy: has joined #RubyOnRails
[19:21:28] reber: has joined #RubyOnRails
[19:23:53] alexhartley: has joined #RubyOnRails
[19:25:06] ivanskie: has joined #RubyOnRails
[19:26:48] Technodrome: has joined #RubyOnRails
[19:44:31] cnsvc: has joined #RubyOnRails
[19:45:55] jottr_: has joined #RubyOnRails
[19:52:12] jottr_: has joined #RubyOnRails
[19:53:58] ivanskie: anyone running docker-passenger image in ECS?
[19:54:14] ivanskie: or a rails app in ECS with passenger?
[19:56:22] jottr_: has joined #RubyOnRails
[19:58:04] jottr_: has joined #RubyOnRails
[20:13:11] jottr: has joined #RubyOnRails
[20:16:15] jottr_: has joined #RubyOnRails
[20:16:51] tdy: has joined #RubyOnRails
[20:18:18] gambl0r3: has joined #RubyOnRails
[20:27:54] timwis: If I'm installing devise but only intend to use OmniAuth authentication, is there a way to skip all the views and database authentication settings and such since they won't be relevant?
[20:31:50] ur5us: has joined #RubyOnRails
[20:35:06] jesfre: has joined #RubyOnRails
[20:42:15] jesfre: has joined #RubyOnRails
[20:44:59] phaul: has joined #RubyOnRails
[20:45:24] orbyt_: has joined #RubyOnRails
[20:58:42] orbyt_: has joined #RubyOnRails
[21:08:26] Fernando-Basso: has joined #RubyOnRails
[21:14:22] dviola: has joined #RubyOnRails
[21:16:11] gambl0r3: has joined #RubyOnRails
[21:19:46] dviola: has joined #RubyOnRails
[21:31:15] orbyt_: has joined #RubyOnRails
[21:46:58] tdy: has joined #RubyOnRails
[22:10:49] lexileo: has joined #RubyOnRails
[22:18:15] agent_white: has joined #RubyOnRails
[22:54:13] quazimodo: has joined #RubyOnRails
[23:09:08] Technodrome: has joined #RubyOnRails
[23:12:50] yoshie902a: has joined #RubyOnRails
[23:13:12] yoshie902a: Looking to join content_tags for custom form builder. Any help is apprecaited. https://stackoverflow.com/questions/54544427/joining-blocks-of-content-tag-form-builder
[23:14:20] Radar: consider rendering a view instead.
[23:14:29] Radar: a partial, I mean
[23:18:14] yoshie902a: Radar: you know a ton more than me, I know that, but I have a lot of partials and would prefer to keep this included in my form builder. any suggestions?
[23:21:54] Radar: yoshie902a: in the past when I have attempted to do this, I have found putting that code inside a view not only reduces the duplication, but also makes it much, much easier to read.
[23:22:51] yoshie902a: I have a lot of differing input types that I need, are you suggesting, I make partial views for all of them?
[23:23:54] yoshie902a: So if I have a 50 field form, I should render 50 partials? do you think that would slow it down vs the form builder?
[23:24:12] Radar: how long does it take to render a single partial
[23:25:39] yoshie902a: not sure, but it just feels dirty to make partials for each input type. Maybe it’s a better way though.
[23:26:07] yoshie902a: Nonetheless, for the sake of my sanity, I would like to figure out what I did wrong on my code to learn.
[23:26:25] yoshie902a: thank you for your advice
[23:26:49] Radar: Probably a bracketing issue
[23:26:50] Radar: @template.label(@object_name, label)+
[23:26:50] Radar: @template.content_tag :div, class: "input-group" do
[23:27:09] Radar: the content_tag here doesn't have brackets around its arguments. Ruby is probably having a hard time parsing where the content_tag starts + ends.
[23:27:13] Radar: Same goes for the one beneath that too.
[23:27:51] yoshie902a: that fixed it!
[23:36:10] ellcs: has joined #RubyOnRails
[23:57:13] SteenJobs: has joined #RubyOnRails