« Back to channel list

#RubyOnRails - 03 May 2019

« Back 1 day Forward 1 day »
[00:04:04] orbyt_: has joined #RubyOnRails
[00:12:53] zacts: has joined #RubyOnRails
[00:29:48] violentE: has joined #RubyOnRails
[00:45:43] greengriminal: has joined #RubyOnRails
[00:51:18] weteamsteve1: has joined #RubyOnRails
[01:07:35] Technodrome: has joined #RubyOnRails
[01:12:19] duderonomy: has joined #RubyOnRails
[01:27:05] duderono_: has joined #RubyOnRails
[01:35:54] weteamsteve: has joined #RubyOnRails
[01:36:09] quazimodo: has joined #RubyOnRails
[01:52:44] orbyt_: has joined #RubyOnRails
[01:59:57] duderonomy: has joined #RubyOnRails
[02:05:10] zacts: has joined #RubyOnRails
[02:06:51] weteamsteve: hey is anybody online right now ? i'm having some weird problem with my development postgres db
[02:12:04] Fenhl: has joined #RubyOnRails
[02:16:54] tdy1: has joined #RubyOnRails
[02:19:29] dviola: has joined #RubyOnRails
[02:23:25] masquino: has joined #RubyOnRails
[02:24:29] masquino: hi everyone! noob question.. how does one define a project wide enum? I need to define a Currency enum (possibly a class too) that I can use in many models and maps to an integer in the database
[02:25:18] ariedler: has joined #RubyOnRails
[02:34:56] gambl0re: has joined #RubyOnRails
[02:40:41] havenwood: masquino: The enum bit sounds like a good fit for a model concern in models/concerns/
[02:41:38] havenwood: masquino: https://gist.github.com/havenwood/c10b1bd474ac2186749c04bd03b1e330
[02:41:58] havenwood: https://api.rubyonrails.org/classes/ActiveSupport/Concern.html
[02:42:26] havenwood: weteamsteve: what kind of problem?
[02:59:34] zacts: has joined #RubyOnRails
[03:11:16] braincrash: has joined #RubyOnRails
[03:14:31] Saukk: has joined #RubyOnRails
[03:35:31] s00pcan: has joined #RubyOnRails
[04:18:19] orbyt_: has joined #RubyOnRails
[04:21:31] lupine: has joined #RubyOnRails
[04:26:40] ariedler: has joined #RubyOnRails
[04:28:47] gambl0re: how can i use list comprehension to create an array like ['_','_','_','_','_'] for each letter in a word
[04:34:49] havenwood: 'gambl0re'.each_char.map { '_' }
[04:35:37] havenwood: 'gambl0re'.then { |name| Array.new name.size, '_' }
[04:37:39] havenwood: 'gambl0re'.chars.fill('_')
[04:37:54] havenwood: #=> ["_", "_", "_", "_", "_", "_", "_", "_"]
[04:38:49] havenwood: gambl0re: Do you mean with a list comprehension in coffeescript?
[04:39:28] gambl0re: i though this was python channel. sorry
[04:51:52] quazimodo: has joined #RubyOnRails
[05:01:56] srinidhi: has joined #RubyOnRails
[05:02:13] orbyt_: has joined #RubyOnRails
[05:04:06] Matrix9180: has joined #RubyOnRails
[05:20:07] conta: has joined #RubyOnRails
[05:34:15] conta: has joined #RubyOnRails
[05:37:27] cnsvc: has joined #RubyOnRails
[05:37:56] dionysus69: has joined #RubyOnRails
[05:41:47] haengma: has joined #RubyOnRails
[05:56:31] pd09041999: has joined #RubyOnRails
[06:17:52] cnsvc: I have both bundler v1 and v2 installed, when i run 'bundle install' in rails project, why does it always use v1 instead of v2?
[06:18:45] cnsvc: has joined #RubyOnRails
[06:21:49] cnsvc: i have tried bundler v2 upgrade guides and troubleshooting wiki page, still don't get it
[06:23:39] havenwood: cnsvc: what do you get for?: gem which bundler
[06:25:08] cnsvc: havenwood: $HOME/.rbenv/versions/2.6.2/lib/ruby/2.6.0/bundler.rb
[06:25:31] cnsvc: i have ruby 2.6.2 it seems right
[06:26:04] cnsvc: but in project when i run 'bundler version' it show 1.17.2
[06:26:50] cnsvc: and bundle install writes Gemfile.lock with v1 too
[06:27:22] havenwood: cnsvc: is `which bundle` then in?: $HOME/.rbenv/versions/2.6.2/bin/bundle
[06:27:34] ariedler: has joined #RubyOnRails
[06:27:45] havenwood: cnsvc: what's its shebang line?: head -n1 "$(which bundle)"
[06:28:21] cnsvc: /home/mike/.rbenv/shims/bundle
[06:29:03] havenwood: cnsvc: have you already done a?: rbenv rehash
[06:29:53] cnsvc: yes rbenv rehash has been done
[06:31:04] havenwood: cnsvc: how about?: bundle _2.0.1_ -v
[06:31:52] cnsvc: Bundler version 1.17.2
[06:31:59] cnsvc: it says v1
[06:33:04] havenwood: even with the _2.0.1_? hrmm
[06:33:30] havenwood: cnsvc: do you see both versions with?: gem list bundler
[06:34:07] cnsvc: i see both versions when i gem list
[06:36:23] cnsvc: when i run 'gem list' outside of project, it doesn't show v1.17.2.. and i checked gems files in .rbenv there is only 2.0.1 and 1.17.3 bundlers
[06:36:38] cnsvc: does there any cache in rails project for bundler?
[06:37:14] havenwood: if you're vendoring - check?: bundle config
[06:37:42] havenwood: cnsvc: maybe try clearing the tmp?: rails tmp:clear
[06:38:06] havenwood: cnsvc: bootsnap caches
[06:42:20] cnsvc: havenwood: I cleared tmp/cache/* and checked not .bundle folder under project and vendor. Still no luck.
[06:43:51] havenwood: cnsvc: what's? rbenv which bundle
[06:44:24] havenwood: cnsvc: also, what's? rbenv whence bundle
[06:45:17] cnsvc: em.. /home/mike/.rbenv/versions/2.6.2/bin/bundle
[06:45:26] cnsvc: when i -v it shows 1.17.2
[06:45:38] cnsvc: that's the problem?
[06:45:46] havenwood: cnsvc: seems `rbenv rehash` isn't working?
[06:46:41] cnsvc: havenwood: it seems so, let me check this. thanks a lot!
[06:56:46] tdy: has joined #RubyOnRails
[07:00:54] lxsameer: has joined #RubyOnRails
[07:01:21] conta: has joined #RubyOnRails
[07:16:48] Dbugger: has joined #RubyOnRails
[07:17:48] cnsvc: has joined #RubyOnRails
[07:21:59] Sylario: has joined #RubyOnRails
[07:28:56] jefffrails35: has joined #RubyOnRails
[07:50:53] mikecmpbll: has joined #RubyOnRails
[08:21:47] hightower3: has joined #RubyOnRails
[08:28:10] ariedler: has joined #RubyOnRails
[08:29:23] Squeeeez: has joined #RubyOnRails
[08:50:44] gregf_: has joined #RubyOnRails
[09:10:40] MrCrackPotBuilde: has joined #RubyOnRails
[09:31:38] pd09041999: has joined #RubyOnRails
[09:39:08] tdy: has joined #RubyOnRails
[09:40:04] timkaechele: has joined #RubyOnRails
[09:40:38] Fernando-Basso: has joined #RubyOnRails
[09:51:22] conta: has joined #RubyOnRails
[10:16:23] crankharder: has joined #RubyOnRails
[10:18:32] pd09041999: has joined #RubyOnRails
[10:18:49] srinidhi: has joined #RubyOnRails
[10:29:12] ariedler: has joined #RubyOnRails
[10:55:06] lankanmon: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[11:02:11] tdy: has joined #RubyOnRails
[11:03:06] dslegends: has joined #RubyOnRails
[11:15:44] srinidhi: has joined #RubyOnRails
[11:21:58] pd09041999: has joined #RubyOnRails
[11:38:08] conta: has joined #RubyOnRails
[11:46:39] Technodrome: has joined #RubyOnRails
[12:01:25] crankharder: has joined #RubyOnRails
[12:12:37] srinidhi: has joined #RubyOnRails
[12:14:25] uks: has joined #RubyOnRails
[12:33:35] MrCrackPot: has joined #RubyOnRails
[12:39:54] crankharder: has joined #RubyOnRails
[13:12:06] srinidhi: has joined #RubyOnRails
[13:32:11] m_antis: has joined #RubyOnRails
[13:40:26] Fernando-Basso: has joined #RubyOnRails
[13:41:06] jelera: has joined #RubyOnRails
[13:43:18] weird_error: has joined #RubyOnRails
[13:43:52] jelera: has joined #RubyOnRails
[13:44:24] greengriminal: has joined #RubyOnRails
[13:56:13] tdy: has joined #RubyOnRails
[14:03:53] jelera: has joined #RubyOnRails
[14:11:57] frewsxcv: has joined #RubyOnRails
[14:12:42] frewsxcv: if i have a activerecord instance and want to preload all the associations for it, is there a better and more stable way than ActiveRecord::Associations::Preloader ?
[14:20:25] schneider: has joined #RubyOnRails
[14:21:36] zacts: has joined #RubyOnRails
[14:37:22] agent_white: has joined #RubyOnRails
[14:38:25] zephiro: has joined #RubyOnRails
[14:42:17] Dbugger: has joined #RubyOnRails
[14:50:53] greengriminal: has joined #RubyOnRails
[14:53:05] jelera: has joined #RubyOnRails
[14:53:50] jelera: has joined #RubyOnRails
[14:54:36] jelera: has joined #RubyOnRails
[14:55:32] jelera: has joined #RubyOnRails
[14:56:15] jelera: has joined #RubyOnRails
[14:56:54] weteamsteve: has joined #RubyOnRails
[15:29:40] jeremycw: has joined #RubyOnRails
[15:30:24] jottr: has joined #RubyOnRails
[15:31:45] jeremycw: Is there a tool for viewing API changes? I'm imagining something like git diff for swagger
[15:41:44] brendan-: has joined #RubyOnRails
[16:11:24] zacts: has joined #RubyOnRails
[16:17:49] zacts: has joined #RubyOnRails
[16:23:37] orbyt_: has joined #RubyOnRails
[16:37:34] jottr: has joined #RubyOnRails
[16:39:12] mikecmpbll: has joined #RubyOnRails
[16:43:35] pd09041999: has joined #RubyOnRails
[16:47:28] haengma: has joined #RubyOnRails
[16:53:55] duderonomy: has joined #RubyOnRails
[16:55:42] jottr: has joined #RubyOnRails
[17:00:20] OneNeptune: has joined #RubyOnRails
[17:05:57] jottr: has joined #RubyOnRails
[17:06:05] Xiti: has joined #RubyOnRails
[17:07:42] gambl0re: has joined #RubyOnRails
[17:16:12] jottr: has joined #RubyOnRails
[17:18:14] Saukk: has joined #RubyOnRails
[17:20:04] OneNeptune: has joined #RubyOnRails
[17:39:23] jottr: has joined #RubyOnRails
[17:44:28] duderonomy: has joined #RubyOnRails
[17:49:36] jottr: has joined #RubyOnRails
[17:59:49] jottr: has joined #RubyOnRails
[18:10:01] jottr: has joined #RubyOnRails
[18:20:14] jottr: has joined #RubyOnRails
[18:24:43] Fernando-Basso: has joined #RubyOnRails
[18:27:21] sameerynho: has joined #RubyOnRails
[18:28:10] nOgAnOo: has joined #RubyOnRails
[18:30:29] jottr: has joined #RubyOnRails
[18:37:17] al-damiri: has joined #RubyOnRails
[18:40:43] jottr: has joined #RubyOnRails
[18:59:37] phaul: has joined #RubyOnRails
[19:03:57] jottr: has joined #RubyOnRails
[19:05:00] orbyt_: has joined #RubyOnRails
[19:14:09] jottr: has joined #RubyOnRails
[19:24:24] jottr: has joined #RubyOnRails
[19:28:22] amperry: has joined #RubyOnRails
[19:31:31] amperry: hey folks, if a controller method is reached and the console claims to have rendered a page, but the previous page still displays, are there any common causes for this?
[19:34:36] jottr: has joined #RubyOnRails
[19:38:29] pd09041999: has joined #RubyOnRails
[19:44:50] jottr: has joined #RubyOnRails
[19:47:49] OneNeptune: has joined #RubyOnRails
[19:48:32] orbyt_: has joined #RubyOnRails
[19:53:22] cnsvc: has joined #RubyOnRails
[19:55:03] jottr: has joined #RubyOnRails
[20:05:16] jottr: has joined #RubyOnRails
[20:12:52] mikecmpbll: has joined #RubyOnRails
[20:15:30] jottr: has joined #RubyOnRails
[20:31:40] orbyt_: has joined #RubyOnRails
[20:49:28] jottr: has joined #RubyOnRails
[20:51:53] wallace_mu: has joined #RubyOnRails
[20:59:40] jottr: has joined #RubyOnRails
[21:09:54] jottr: has joined #RubyOnRails
[21:20:07] jottr: has joined #RubyOnRails
[21:30:20] jottr: has joined #RubyOnRails
[21:34:56] OneNeptune: has joined #RubyOnRails
[21:37:05] za1b1tsu: has joined #RubyOnRails
[21:37:32] ur5us: has joined #RubyOnRails
[21:49:04] arthurnn: has joined #RubyOnRails
[21:50:45] jottr: has joined #RubyOnRails
[21:51:53] tdy: has joined #RubyOnRails
[21:52:01] timdotrb: has joined #RubyOnRails
[21:59:09] haengma: has joined #RubyOnRails
[22:06:33] jottr: has joined #RubyOnRails
[22:06:46] RiPuk: has joined #RubyOnRails
[22:07:26] mattwc: has joined #RubyOnRails
[22:07:30] ppl: has joined #RubyOnRails
[22:07:55] kanzure: has joined #RubyOnRails
[22:07:57] Fire-Dragon-DoL: has joined #RubyOnRails
[22:08:01] oddie: has joined #RubyOnRails
[22:08:05] Mutsuhito: has joined #RubyOnRails
[22:08:07] fowlduck: has joined #RubyOnRails
[22:08:12] pro777: has joined #RubyOnRails
[22:08:14] KevinSjoberg: has joined #RubyOnRails
[22:08:18] Momentum: has joined #RubyOnRails
[22:08:19] lunarkitty7: has joined #RubyOnRails
[22:08:23] uranoss: has joined #RubyOnRails
[22:08:27] Linuus: has joined #RubyOnRails
[22:08:28] keden: has joined #RubyOnRails
[22:08:34] JJonah_: has joined #RubyOnRails
[22:08:55] argoneus: has joined #RubyOnRails
[22:09:29] piroko: has joined #RubyOnRails
[22:11:56] szulak: has joined #RubyOnRails
[22:16:46] jottr: has joined #RubyOnRails
[22:18:10] Xiti: has joined #RubyOnRails
[22:20:40] gambl0re: has joined #RubyOnRails
[22:24:25] ziyadb_: has joined #RubyOnRails
[22:26:59] jottr: has joined #RubyOnRails
[22:27:19] haengma: has joined #RubyOnRails
[22:33:33] haengma: has joined #RubyOnRails
[22:37:26] jottr: has joined #RubyOnRails
[22:46:56] crankharder: has joined #RubyOnRails
[22:47:36] jottr: has joined #RubyOnRails
[22:57:49] jottr: has joined #RubyOnRails
[23:11:28] jottr: has joined #RubyOnRails
[23:11:37] weird_error: has joined #RubyOnRails
[23:12:50] masquino: has joined #RubyOnRails
[23:21:40] jottr: has joined #RubyOnRails
[23:23:29] uksio: has joined #RubyOnRails
[23:23:58] orbyt_: has joined #RubyOnRails
[23:25:17] GodFather: has joined #RubyOnRails
[23:32:16] za1b1tsu: has joined #RubyOnRails
[23:38:15] jottr: has joined #RubyOnRails
[23:40:34] uks: has joined #RubyOnRails
[23:42:00] c0san0stra: has joined #RubyOnRails
[23:44:28] Francute: has joined #RubyOnRails
[23:45:26] Francute: Is there something like eager_load for ActiveResource?
[23:48:30] jottr: has joined #RubyOnRails
[23:58:44] jottr: has joined #RubyOnRails