« Back to channel list

#RubyOnRails - 28 June 2018

« Back 1 day Forward 1 day »
[00:05:01] fragamus: has joined #RubyOnRails
[00:14:21] jhack: has joined #RubyOnRails
[00:18:26] workmad3: has joined #RubyOnRails
[00:34:14] cagomez: has joined #RubyOnRails
[00:52:30] orbyt_: has joined #RubyOnRails
[00:55:34] planigan: has joined #RubyOnRails
[00:59:21] jhack: has joined #RubyOnRails
[01:09:10] Venomen: has joined #RubyOnRails
[01:37:47] jottr: has joined #RubyOnRails
[01:50:00] Technodrome: has joined #RubyOnRails
[01:55:02] sevenseacat: has joined #RubyOnRails
[02:04:42] cagomez: has joined #RubyOnRails
[02:18:40] workmad3: has joined #RubyOnRails
[02:27:39] guillec: has joined #RubyOnRails
[03:10:47] braincrash: has joined #RubyOnRails
[03:17:49] arkaros: has joined #RubyOnRails
[03:38:39] jottr: has joined #RubyOnRails
[03:39:01] cagomez: has joined #RubyOnRails
[04:18:49] workmad3: has joined #RubyOnRails
[04:25:36] darkhanb: has joined #RubyOnRails
[04:26:14] tdy: has joined #RubyOnRails
[04:26:55] fragamus: has joined #RubyOnRails
[04:31:24] srinidhi: has joined #RubyOnRails
[04:45:33] Venomen: has joined #RubyOnRails
[04:45:36] orbyt_: has joined #RubyOnRails
[04:51:15] benlieb: has joined #RubyOnRails
[04:52:30] barhum2013: has joined #RubyOnRails
[05:06:13] Venomen: has joined #RubyOnRails
[05:07:15] barhum2013: has joined #RubyOnRails
[05:15:51] Technodrome: has joined #RubyOnRails
[05:18:51] arkaros: has joined #RubyOnRails
[05:30:39] barhum2013: has joined #RubyOnRails
[05:39:32] jottr: has joined #RubyOnRails
[05:43:37] segy: has joined #RubyOnRails
[06:00:44] dionysus69: has joined #RubyOnRails
[06:08:02] planigan: has joined #RubyOnRails
[06:14:27] planigan: has joined #RubyOnRails
[06:15:31] psychoslave: has joined #RubyOnRails
[06:16:58] arkaros: has joined #RubyOnRails
[06:19:01] workmad3: has joined #RubyOnRails
[06:30:24] arkaros: has left #RubyOnRails: ()
[06:40:01] apeiros: has joined #RubyOnRails
[06:58:22] apeiros_: has joined #RubyOnRails
[06:58:37] DTZUZO: has joined #RubyOnRails
[07:00:47] apeiros_: has joined #RubyOnRails
[07:02:43] sandstrom: has joined #RubyOnRails
[07:05:50] dionysus69: has joined #RubyOnRails
[07:09:53] noob_on_rails: has joined #RubyOnRails
[07:11:43] apeiros_: has joined #RubyOnRails
[07:31:27] Technodrome: has joined #RubyOnRails
[07:40:25] jottr: has joined #RubyOnRails
[07:40:46] Dbugger: has joined #RubyOnRails
[07:47:47] Sylario: has joined #RubyOnRails
[08:03:16] moei: has joined #RubyOnRails
[08:13:38] superflit_: has joined #RubyOnRails
[08:19:20] workmad3: has joined #RubyOnRails
[08:24:38] atrius: has joined #RubyOnRails
[08:33:07] bijan_: has joined #RubyOnRails
[08:36:35] ellcs: has joined #RubyOnRails
[08:41:17] workmad3: has joined #RubyOnRails
[08:48:12] cschneid: has joined #RubyOnRails
[08:55:42] jottr: has joined #RubyOnRails
[09:05:01] bijan_: has joined #RubyOnRails
[09:09:21] bijan__: has joined #RubyOnRails
[09:21:57] FernandoBasso: has joined #RubyOnRails
[09:23:32] bijan_: has joined #RubyOnRails
[09:56:22] apeiros: has joined #RubyOnRails
[09:57:26] desperek: has joined #RubyOnRails
[09:57:48] jottr: has joined #RubyOnRails
[10:03:04] apparition47: has joined #RubyOnRails
[10:03:59] Ergo: has joined #RubyOnRails
[10:09:38] roamingdog: has joined #RubyOnRails
[10:14:30] koichirose: has joined #RubyOnRails
[10:16:40] koichirose: Hello! I’ve been looking around for a while now, but I couldn’t find how to get the YAML key for a db connection. i.e. I do “establish_connection ‘my_db_yaml_key’” and I’d like something that returns “my_db_yaml_key”
[10:20:31] workmad3: has joined #RubyOnRails
[10:21:43] jlebrech: has joined #RubyOnRails
[10:21:58] bijan_: has joined #RubyOnRails
[10:22:16] jlebrech: is there a shorthand to deploy the currently checked-out branch on capistrano?
[10:23:00] hfp_work: has joined #RubyOnRails
[10:31:54] lupine: https://blog.acolyer.org/2018/06/28/how-_not_-to-structure-your-database-backed-web-applications-a-study-of-performance-bugs-in-the-wild/ innit
[10:42:15] mrbubbles: has joined #RubyOnRails
[10:51:16] deathwishdave: has joined #RubyOnRails
[10:53:20] Lauer: lupine: nice article
[10:56:59] psychoslave_: has joined #RubyOnRails
[11:17:40] jottr: has joined #RubyOnRails
[11:24:21] fragamus: has joined #RubyOnRails
[11:27:36] arooni: has joined #RubyOnRails
[11:29:31] ldnunes: has joined #RubyOnRails
[11:43:12] koichirose: has joined #RubyOnRails
[11:49:32] psychoslave_: has joined #RubyOnRails
[11:54:03] psychoslave_: has joined #RubyOnRails
[11:56:50] conta: has joined #RubyOnRails
[12:04:15] deathwishdave: has joined #RubyOnRails
[12:24:55] vedu_: has joined #RubyOnRails
[12:30:38] fragamus: has joined #RubyOnRails
[12:32:44] barhum2013: has joined #RubyOnRails
[12:33:10] guillec: has joined #RubyOnRails
[12:37:59] jottr: has joined #RubyOnRails
[12:39:20] deathwishdave: has joined #RubyOnRails
[12:41:38] sandstrom: has joined #RubyOnRails
[12:43:41] dionysus69: so I am thinking about combining rails settings cached gem with rails credentials, so instead of initializing rails settings cached constants from an app.yml file, I would like to do it from rails credentials. What is the best place to do that, create an initializer perhaps?
[12:45:02] LightStalker: has joined #RubyOnRails
[12:50:37] sandstrom: has joined #RubyOnRails
[12:54:54] Venomen: has joined #RubyOnRails
[12:55:13] Ergo: has joined #RubyOnRails
[13:05:07] LightStalker: has joined #RubyOnRails
[13:08:42] bijan_: has joined #RubyOnRails
[13:10:32] jottr: has joined #RubyOnRails
[13:39:13] jraavis: has joined #RubyOnRails
[13:43:03] jottr: has joined #RubyOnRails
[13:47:26] deathwishdave: has joined #RubyOnRails
[13:51:25] dblessing: has joined #RubyOnRails
[14:18:54] DrYockel: has joined #RubyOnRails
[14:26:31] benlieb: has joined #RubyOnRails
[14:30:02] vedu_: has joined #RubyOnRails
[14:35:13] Venomen: has joined #RubyOnRails
[14:35:33] reber: has joined #RubyOnRails
[14:40:53] chouhoulis: has joined #RubyOnRails
[14:46:35] Technodrome: has joined #RubyOnRails
[15:05:54] cschneid: has joined #RubyOnRails
[15:17:12] kristofferR: has joined #RubyOnRails
[15:28:01] orbyt_: has joined #RubyOnRails
[15:34:03] Ergo: has joined #RubyOnRails
[15:36:30] jottr: has joined #RubyOnRails
[15:38:20] barhum2013: has joined #RubyOnRails
[15:39:11] lxsameer: has joined #RubyOnRails
[15:40:30] Technodrome: has joined #RubyOnRails
[15:45:25] fragamus: has joined #RubyOnRails
[15:45:27] orbyt_: has joined #RubyOnRails
[15:45:44] nogic: has joined #RubyOnRails
[15:50:44] tdy: has joined #RubyOnRails
[16:04:49] roamingdog: has joined #RubyOnRails
[16:18:34] jcarl43: has joined #RubyOnRails
[16:23:28] Andr3as: hello all.. i want to change my puma port for the staging env.. i found the puma.rb "config" and saw a "ENV.fetch("PORT")" in it.. so i thought i change the port in my environment/staging.rb
[16:23:47] Andr3as: however, i am not quite sure how..
[16:23:51] Andr3as: anyone a hint?
[16:25:39] orbyt_: has joined #RubyOnRails
[16:26:21] deathwishdave: has joined #RubyOnRails
[16:31:08] jhill__: has joined #RubyOnRails
[16:32:00] Andr3as: another example of how the answer appears in google only after you've asked for it in an IRC channel
[16:32:16] Andr3as: see "default_options"
[16:34:43] FLeiXiuS: has joined #RubyOnRails
[16:36:53] FLeiXiuS: I have a table Country and another table System. I want System to have 2 (has many) associations Country_A and Country B. Is this possible through polymorphism? Or has_many conditions?
[16:37:26] lxsameer: has joined #RubyOnRails
[16:37:47] FLeiXiuS: I was trying to get away by having a country_system table with country_id, system_id, type (a/b)
[16:38:16] FLeiXiuS: Then define a has_many system_b, has_many system_a
[16:38:40] FLeiXiuS: How do I get rails to recognize the type as A or B?
[16:41:15] ellcs1: has joined #RubyOnRails
[16:43:22] eckhardt: has joined #RubyOnRails
[16:45:06] Andr3as: another q - i've googled a lot this time.. i get an error with puma.. it does an initializer file out of a completely different project??
[16:45:14] Andr3as: here's a log snippet https://gist.github.com/awunder/f3668d6493004bc4bd018d2bfac3ea4c#file-puma-error-L15
[16:46:10] Andr3as: FLeiXiuS: i am not getting it..
[16:46:35] Andr3as: do you try to have some kind of a STI?
[16:46:49] Andr3as: where countra_a is a little different than country_b?
[16:46:54] Andr3as: *country_a
[16:47:15] lxsameer: has joined #RubyOnRails
[16:47:24] FLeiXiuS: They're exactly the same. Except I want to instantiate them differently, via a type.
[16:47:56] FLeiXiuS: Technically, I could do 2 tables, one for each type. The use a has_many to iterate them.
[16:48:15] FLeiXiuS: I was wondering if theres a singular way of doing this with 1 table. Then have a field distinguish the two.
[16:49:59] FLeiXiuS: I was trying to do something like this has_many :system_a, through: :country_system, source: :system, -> (where: type: 'a')
[16:50:40] FLeiXiuS: That scopes the type column under System and not the join country_system. :-(
[16:51:18] Andr3as: you might wanna research on sti (single table inheritance)
[16:51:37] Andr3as: it has a "type" filed in tha database table to distinguish the 2 (or more)
[16:52:38] Andr3as: havent read it entirely but while scanning through it looked good https://medium.com/@dcordz/single-table-inheritance-using-rails-5-02-6738bdd5101a
[16:52:46] Andr3as: ...as a primer
[16:52:59] FLeiXiuS: Awesome - yah I'll give it a research
[16:53:15] FLeiXiuS: Just trying to avoid 1000 of models if I can handle this singularly.
[16:53:42] [Butch]: has joined #RubyOnRails
[16:54:04] Andr3as: yeah.. it would be a perfect match... made for things that are the same or almost the same.. but it can bite you later.. so you better be sure they stay the same
[16:55:12] Andr3as: anyone an idea why my puma tries to load a file from another app?
[16:57:24] lxsameer: has joined #RubyOnRails
[16:59:26] Venomen: has joined #RubyOnRails
[17:07:16] lxsameer: has joined #RubyOnRails
[17:07:57] vedu_: has joined #RubyOnRails
[17:09:21] spokrandt: has joined #RubyOnRails
[17:09:41] spokrandt: going to start a new rails project. what is the current best versions of ruby/rails/bootstrap etc.. to use that is stable and not to cutting edge but has all the new toys?
[17:10:54] fryguy: go to ruby-lang.org and rubyonrails.org and see what's published/available
[17:12:19] ynonp: has joined #RubyOnRails
[17:17:21] lxsameer: has joined #RubyOnRails
[17:21:01] FLeiXiuS: Andr3as, I decided to just add 2 fields in the join table. system_a_id, system_b_id. Using has_many system_b, source: system in the model.
[17:21:09] FLeiXiuS: It's not the prettiest, but it definitely works.
[17:23:27] DrYockel: has joined #RubyOnRails
[17:27:26] lxsameer: has joined #RubyOnRails
[17:29:47] apeiros_: has joined #RubyOnRails
[17:31:28] guillec: has joined #RubyOnRails
[17:36:25] guillec: has joined #RubyOnRails
[17:37:23] lxsameer: has joined #RubyOnRails
[17:44:54] sandstrom: has joined #RubyOnRails
[17:45:44] jottr: has joined #RubyOnRails
[17:47:17] lxsameer: has joined #RubyOnRails
[17:55:22] Andr3as: if you stick with just 2 systems, it works i guess
[17:55:28] Andr3as: but it aint pretty for sure
[17:55:57] Andr3as: anyone an idea why it doest execute my "before_action"?
[17:55:58] Andr3as: https://gist.github.com/awunder/34a1069b703c68b69be9029f63fddad1
[17:56:19] Andr3as: it doesnt even fail
[17:57:11] lxsameer: has joined #RubyOnRails
[18:05:08] FLeiXiuS: Andr3as, with about def terminate; raise 'failed', end
[18:05:30] FLeiXiuS: Try that as a before_filter.
[18:05:34] Andr3as: that fail usually works just fine.. but only was a temp thing
[18:05:44] Andr3as: i need it to auth via basic auth
[18:05:50] FLeiXiuS: When it doubt - restart the dev server.
[18:05:55] Andr3as: the exact same logic works in a different app
[18:06:01] Andr3as: i did that already
[18:07:21] lxsameer: has joined #RubyOnRails
[18:11:41] desperek: has joined #RubyOnRails
[18:14:51] sameerynho: has joined #RubyOnRails
[18:16:28] ynonp: has joined #RubyOnRails
[18:17:24] lxsameer: has joined #RubyOnRails
[18:18:42] arup_r: has joined #RubyOnRails
[18:25:10] GodFather: has joined #RubyOnRails
[18:27:15] lxsameer: has joined #RubyOnRails
[18:35:19] Venomen: has joined #RubyOnRails
[18:37:18] lxsameer: has joined #RubyOnRails
[18:41:36] jottr: has joined #RubyOnRails
[18:41:59] orbyt_: has joined #RubyOnRails
[18:47:17] lxsameer: has joined #RubyOnRails
[18:57:19] lxsameer: has joined #RubyOnRails
[18:58:01] cagomez: has joined #RubyOnRails
[19:01:03] psychoslave: has joined #RubyOnRails
[19:07:13] lxsameer: has joined #RubyOnRails
[19:11:30] boxmein: has joined #RubyOnRails
[19:17:15] lxsameer: has joined #RubyOnRails
[19:18:42] dtzuzu: has joined #RubyOnRails
[19:27:14] lxsameer: has joined #RubyOnRails
[19:29:50] fragamus: has joined #RubyOnRails
[19:37:22] lxsameer: has joined #RubyOnRails
[19:47:20] lxsameer: has joined #RubyOnRails
[19:53:26] workmad3: has joined #RubyOnRails
[19:55:31] orbyt_: has joined #RubyOnRails
[19:57:17] lxsameer: has joined #RubyOnRails
[20:00:18] HeyoRockbreaker: has joined #RubyOnRails
[20:00:33] HeyoRockbreaker: Hey guys! I have a quick Newbie question if anyone can help
[20:01:53] havenwood: HeyoRockbreaker: Ask away.
[20:03:48] HeyoRockbreaker: I'm developing an app with postgres in development. I know that I can't commit any sensative keys in .env or the decryption key used to store secrets if I put them there instead, but can I commit my database configuration in database.yml?
[20:03:56] HeyoRockbreaker: It has some credentials, but they're just local
[20:04:08] HeyoRockbreaker: Or should I just add them to that secrets thing I need to read more about.
[20:04:39] havenwood: HeyoRockbreaker: https://www.engineyard.com/blog/rails-encrypted-credentials-on-rails-5.2
[20:05:08] havenwood: HeyoRockbreaker: "Rails 5.2 replaces both secrets with encrypted credentials. You cannot use plain text credentials. There's only credentials.yml.enc."
[20:05:59] HeyoRockbreaker: Yeah, yeah. I forgot what the reverted change was in 5.2, but should I import all sensitive credentials from that file? I'm a bit unsure about how it works
[20:07:22] lxsameer: has joined #RubyOnRails
[20:16:02] bijan_: has joined #RubyOnRails
[20:17:22] lxsameer: has joined #RubyOnRails
[20:17:35] guillec: has joined #RubyOnRails
[20:19:20] dviola: has joined #RubyOnRails
[20:20:03] vedu_: has joined #RubyOnRails
[20:22:16] jottr: has joined #RubyOnRails
[20:22:32] guillec: has joined #RubyOnRails
[20:27:24] lxsameer: has joined #RubyOnRails
[20:27:52] Venomen: has joined #RubyOnRails
[20:37:13] lxsameer: has joined #RubyOnRails
[20:40:39] skryking: has joined #RubyOnRails
[20:40:47] MrCrackPotBuilde: has joined #RubyOnRails
[20:47:23] lxsameer: has joined #RubyOnRails
[20:57:14] lxsameer: has joined #RubyOnRails
[21:02:57] jottr: has joined #RubyOnRails
[21:07:25] lxsameer: has joined #RubyOnRails
[21:10:34] HeyoRockbreaker: By the way, I want to apologize for asking the stupid question earlier. Should have read the rules
[21:12:09] vedu_: has joined #RubyOnRails
[21:17:09] lxsameer: has joined #RubyOnRails
[21:18:39] npgm: has joined #RubyOnRails
[21:26:10] andywww: has joined #RubyOnRails
[21:32:18] lxsameer: has joined #RubyOnRails
[21:35:09] Fuzai: has joined #RubyOnRails
[21:36:51] Fuzai: https://hastebin.com/oqolovikem.rb I'm trying to (re) understand ActiveModel and relations. When I create a user I get an error that Player must exist, however the player table is supposed to be a list of users associated with a game. What am I doing wrong with these associations?
[21:40:03] bradleyprice: has joined #RubyOnRails
[21:42:22] lxsameer: has joined #RubyOnRails
[21:47:17] FernandoBasso: has joined #RubyOnRails
[21:49:12] apeiros_: has joined #RubyOnRails
[21:49:48] fcser__: has joined #RubyOnRails
[21:50:35] drale2k_: has joined #RubyOnRails
[21:53:37] workmad3: has joined #RubyOnRails
[21:56:53] fragamus: has joined #RubyOnRails
[22:10:10] jmay: has joined #RubyOnRails
[22:10:57] bradleyprice: has joined #RubyOnRails
[22:12:01] vedu_: has joined #RubyOnRails
[22:28:43] jhack: has joined #RubyOnRails
[22:29:21] boxmein: has left #RubyOnRails: ("WeeChat 2.1")
[22:34:47] GodFather: has joined #RubyOnRails
[22:36:46] fragamus: has joined #RubyOnRails
[22:47:20] lxsameer: has joined #RubyOnRails
[22:49:12] cagomez: has joined #RubyOnRails
[22:51:40] vedu_: has joined #RubyOnRails
[23:02:37] Radar: GOOD MORNING
[23:03:06] Radar: Fuzai: an example of how you're creating the user would be a good start.
[23:03:47] jottr: has joined #RubyOnRails
[23:04:16] npgm: has joined #RubyOnRails
[23:11:32] dgsan: has joined #RubyOnRails
[23:15:46] chouhoulis: has joined #RubyOnRails
[23:27:13] lxsameer: has joined #RubyOnRails
[23:27:41] barhum2013: has joined #RubyOnRails
[23:31:59] eckhardt: has joined #RubyOnRails
[23:37:31] jhack: has joined #RubyOnRails
[23:39:41] cagomez: has joined #RubyOnRails
[23:42:19] lxsameer: has joined #RubyOnRails
[23:53:52] workmad3: has joined #RubyOnRails
[23:54:08] dblessing: has joined #RubyOnRails
[23:57:58] jmaya: has joined #RubyOnRails