« Back to channel list

#RubyOnRails - 04 January 2018

« Back 1 day Forward 1 day »
[00:00:24] Radar: A -> BLACK BOX -> B
[00:00:28] Radar: mmmmm yess
[00:05:34] prometheus_falli: has joined #RubyOnRails
[00:07:03] mtkd: has joined #RubyOnRails
[00:11:36] prometheus_falli: has joined #RubyOnRails
[00:16:17] ResidentBiscuit: has joined #RubyOnRails
[00:21:50] kies: has joined #RubyOnRails
[00:43:02] bronson: has joined #RubyOnRails
[00:47:40] orbyt_: has joined #RubyOnRails
[00:50:28] hive-mind: has joined #RubyOnRails
[01:10:23] helpa: has joined #RubyOnRails
[01:15:16] CustosLimen: has joined #RubyOnRails
[01:17:03] Barrt: has joined #RubyOnRails
[01:18:46] Alchemical: has joined #RubyOnRails
[01:20:06] boxmein: has joined #RubyOnRails
[01:20:26] ResidentBiscuit: has joined #RubyOnRails
[01:23:31] cagomez: has joined #RubyOnRails
[01:29:18] hive-mind: has joined #RubyOnRails
[01:37:47] alfiemax: has joined #RubyOnRails
[01:43:34] bronson: has joined #RubyOnRails
[01:45:23] amperry: anyone have experience getting puma to work with apache?
[01:45:59] havenwood: amperry: reverse proxy to puma's socket
[01:47:44] amperry: havenwood: please tell me that's one line :P
[01:53:24] havenwood: amperry: look at ProxyPass and ProxyPassReverse
[01:56:00] hive-mind: has joined #RubyOnRails
[01:57:28] kapil___: has joined #RubyOnRails
[01:57:36] amperry: havenwood: it looks like I should add, say 'ProxyPass / http://<my ip>:3000' and the reverse, to my .config file?
[01:58:27] amperry: and do I need to change any configuration on the puma end?
[01:59:50] havenwood: amperry: you don't *need* to, you can reverse proxy to a port if you'd like
[01:59:56] havenwood: amperry: or a socket
[02:00:15] havenwood: amperry: see if you can find examples googling for apache reverse proxy to puma
[02:00:22] havenwood: amperry: it might be easier to find nginx ones
[02:00:42] havenwood: yeah, looks that way
[02:00:50] amperry: apache's the only option, alas.
[02:02:48] amperry: I'll see what I can do. I'm not at all interested at the moment in becoming a server admin, I'm on a CentOS with a WHM/cPanel interface, and half of the normal config files start with "Any changes you make here will be lost", so it's a trick finding what I need to edit :(
[02:02:54] havenwood: amperry: TL;DR, inside virtualHost: ProxyPass / http://127.0.0.1:3000/; ProxyPassReverse / http://127.0.0.1:3000/
[02:03:27] amperry: havenwood: literally 127.0.0.1, or the ip address I'm using?
[02:03:37] havenwood: amperry: i don't see any shining examples with a quick look at google, but: http://www.concept47.com/austin_web_developer_blog/devops/how-to-try-out-puma-with-apache-proxy-right-now/
[02:03:53] havenwood: amperry: literally
[02:04:12] havenwood: amperry: "loopback"
[02:04:22] amperry: cool. I'll give it a try. Thanks!
[02:05:13] amperry: (I do know that much. Just didn't know from whose POV that loopback address is coming from, if you get what I mean.)
[02:09:36] amperry: havenwood: progress! Do you know if I can set a path to my ssl keys and certs in that virtualhost, or should they go somewhere else? (Like I say, the layout of this thing is weird.)
[02:25:55] MrCrackPotBuilde: has joined #RubyOnRails
[02:26:14] hive-mind: has joined #RubyOnRails
[02:44:04] orbyt_: has joined #RubyOnRails
[02:45:09] bronson: has joined #RubyOnRails
[02:46:55] amperry: havenwood: do you know how to test whether apache and puma are actually talking to each other? I can hit the login page of my app, which the rails log/production.log file shows, but /etc/httpd/logs/access_log has a single entry, from May.
[02:52:14] fryguy: amperry: well, what port is puma listening on, what port is apache listening on, and which port are you connecting to?
[02:56:11] amperry: lsof -i tcp:3000 gives me one entry, for ruby (which I presume is puma).
[02:57:24] amperry: aaand I don't know how to check what port apache is *really* listening on. I'd hoped it would be 3000 as well.
[02:57:35] fryguy: it's almost certainly not going to be 3000
[02:58:31] amperry: tried fuser 443/tcp, don't see anything there
[02:59:05] fryguy: is apache even running?
[02:59:25] amperry: but ps auwwx | grep http gives me several entries
[02:59:59] fryguy: what port are you connecting to your app on? 3000?
[03:00:31] fryguy: then you aren't connecting to apache
[03:00:34] fryguy: since puma is listening there
[03:01:51] amperry: shoul I change port to (443? something else?) in config/puma.rb?
[03:02:20] warreng_: has joined #RubyOnRails
[03:05:55] alfiemax: has joined #RubyOnRails
[03:08:11] darkhanb: has joined #RubyOnRails
[03:13:21] Saukk: has joined #RubyOnRails
[03:24:38] orbyt_: has joined #RubyOnRails
[03:25:28] hive-mind: has joined #RubyOnRails
[03:29:49] quazimodo: has joined #RubyOnRails
[03:33:30] powrtoch: has joined #RubyOnRails
[03:46:01] bronson: has joined #RubyOnRails
[03:46:09] ur5us: has joined #RubyOnRails
[04:01:09] alfiemax: has joined #RubyOnRails
[04:11:42] juggler: has joined #RubyOnRails
[04:36:57] alfiemax: has joined #RubyOnRails
[04:37:08] tdy: has joined #RubyOnRails
[04:40:30] tdy: has joined #RubyOnRails
[04:47:02] bronson: has joined #RubyOnRails
[04:58:27] zacts: has joined #RubyOnRails
[05:14:48] JusticeFries: has joined #RubyOnRails
[05:21:59] zwliew: has joined #RubyOnRails
[05:30:15] za1b1tsu: has joined #RubyOnRails
[05:31:07] za1b1tsu: I have a table with a big decimal column, I retrieve it, do some calculations and then updating it
[05:31:52] za1b1tsu: ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near ":" LINE 2: (#<BigDecimal:344f3b8,
[05:32:11] za1b1tsu: but apparently is not that simple. Can I convert it somehow
[05:45:08] hd1: has joined #RubyOnRails
[05:46:44] ur5us: has joined #RubyOnRails
[05:47:46] bronson: has joined #RubyOnRails
[05:50:56] za1b1tsu: I can't even type in the console #<BigDecimal:567dcc8,'0.0',9(18)>
[05:59:09] Exuma: has joined #RubyOnRails
[06:02:31] KeyJoo: has joined #RubyOnRails
[06:17:04] darkhanb: has joined #RubyOnRails
[06:27:08] mtkd: has joined #RubyOnRails
[06:36:37] darkhanb: has joined #RubyOnRails
[06:37:38] xpl0iter: has joined #RubyOnRails
[06:41:13] srinidhi: has joined #RubyOnRails
[06:43:29] AnotherOne: has joined #RubyOnRails
[06:48:24] bronson: has joined #RubyOnRails
[06:58:40] darkhanb: has joined #RubyOnRails
[07:20:52] AzaToth: has joined #RubyOnRails
[07:34:16] conta: has joined #RubyOnRails
[07:42:20] za1b1tsu: If anyone is using postgresql https://gist.github.com/bbtdev/93d7a8f343bb02be8c00c797b64dbcc7 , I wish I could use only one case, but I can't find a proper solution when updating multiple columns at once
[07:49:36] bronson: has joined #RubyOnRails
[07:51:46] tfitts: has joined #RubyOnRails
[07:52:14] arup_r: has joined #RubyOnRails
[07:55:15] tfitts: I'm trying to use modules for namespacing and inherit from a class. I have module Marketplace, under Marketplace I have module Feed and in Feed I have class Base and class Product. I'm trying to make Product < Base so that it inherits the Base class methods. Do I need to change Base from a class to a module and include Base in each type of feed or is there a way to inherit Base as a class?
[08:14:34] dminuoso: tfitts: I do not understand what you are asking for. Can you make an example of what you tried or trying to do?
[08:15:26] tfitts: It seems like it's working now, but I don't know what changed. (the worst kind of fix) Basically simple class inheritance within a sub-module wasn't working like I expected and now it is.
[08:15:30] dionysus69: has joined #RubyOnRails
[08:16:09] dminuoso: tfitts: really there's no such thing as "sub-modules"
[08:16:16] dminuoso: tfitts: In the end a module is just a module.
[08:16:18] tfitts: right, but it was a module within a module
[08:16:23] dminuoso: Something like Foo::Bar consists of _two_ things.
[08:16:24] tfitts: namespaced that way
[08:16:42] dminuoso: First the _constant_ named Foo::Bar, and an object of class Module or Class that the constant points at.
[08:17:05] dminuoso: tfitts: The first part is just relevant for lookup, for inheritance/ancestory its just the second.
[08:17:18] dminuoso: Dont mix those two.
[08:17:35] dminuoso: tfitts: So its not the "module" thats namespaces, its the constant.
[08:24:40] dminuoso: class Bar < (Object.const_get(:Array)); end
[08:25:00] dminuoso: Is kind of equivalent to: Bar = Class.new(Object.const_get(:Array))
[08:25:27] dminuoso: So as you can see, it really doesn't matter _how_ you get that super class, it doesn't matter whether the constant is nested, namespaced or obtained dynamically.
[08:37:18] ahrs: has joined #RubyOnRails
[08:50:25] bronson: has joined #RubyOnRails
[08:51:59] marr: has joined #RubyOnRails
[08:53:44] ur5us: has joined #RubyOnRails
[08:56:56] arBmind: has joined #RubyOnRails
[09:04:05] quazimodo: has joined #RubyOnRails
[09:09:45] mikecmpbll: has joined #RubyOnRails
[09:49:44] lbrugero: has joined #RubyOnRails
[09:51:25] bronson: has joined #RubyOnRails
[09:53:02] lbrugero: Hello dude, I have a model contact with fields, and some field are defined by "ContactField" which are a model with field in database, that's functionnal but when I want to read test, I have problem because my ContactField are empty, whereas I create 20 contactfields in before(:each) with rspec, so I go an error like: "NoMethodError: undefined method `email_changed?' for #<Contact:0x007fa7cc158bc0>" because "email" is an line
[09:53:11] lbrugero: seems empty when the model is load during the test......
[09:53:30] lbrugero: someone have any idea? thank you
[09:53:51] helpa: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[09:56:55] lbrugero: https://gist.github.com/LucBRG/39b2de8c146c9823b324882aecda1a80
[09:58:13] dminuoso: lbrugero: Edit your gist and also include the full stacktrace. You can use `rspec path/to/your/spec.rb --backtrace`
[09:59:09] dminuoso: lbrugero: Also include your GeneratePopulateGlobalObjects.contact_fields
[09:59:33] lbrugero: thanks i'll
[10:04:05] lbrugero: I updated. I hope it's good
[10:07:08] Aherin: has joined #RubyOnRails
[10:08:17] Aherin_: has joined #RubyOnRails
[10:10:20] xpl0iter: has joined #RubyOnRails
[10:20:43] S007: has joined #RubyOnRails
[10:21:08] mikecmpbll: has joined #RubyOnRails
[10:25:33] lbrugero: dminuoso: so do you have any idea?
[10:28:41] Cavallari: has joined #RubyOnRails
[10:39:40] blackmesa1: has joined #RubyOnRails
[10:43:14] zwliew: has joined #RubyOnRails
[10:43:14] kies: has joined #RubyOnRails
[10:52:02] bronson: has joined #RubyOnRails
[10:53:19] stefanmayerpopp: has joined #RubyOnRails
[10:58:39] defsdoor: has joined #RubyOnRails
[11:00:23] ferr: has joined #RubyOnRails
[11:00:32] ferr: has left #RubyOnRails: ()
[11:10:25] Cavallari1: has joined #RubyOnRails
[11:30:06] mikecmpbll: has joined #RubyOnRails
[11:32:46] Torrone: has joined #RubyOnRails
[11:36:35] Torrone: hello guys, struggling pretty hard with Rspec ( is this the right place to ask? ) I'm trying to test a user registration but I'm getting errors from Rails complaining that Mysql is not connected but in the logs the relevant code is shown to be executed, can you check please? I'll show you my code and results: https://gist.github.com/Torrone5000/bfba280f66b6add506ac106c6781979a
[11:37:34] dminuoso: Torrone: Gist the output of `rspec path/to/your/spec.rb --backtrace`, and include your rails_helper.rb as well as spec_helper.rb
[11:38:12] Torrone: dminuoso, spec_helper is included in rails_helper
[11:38:24] dminuoso: Torrone: Precisely, thats why I want to see both as well.
[11:38:31] dminuoso: Torrone: I want to know how rspec is configured.
[11:38:52] dminuoso: Torrone: rails_helper conventially contains rails specific rspec configurations, while spec_helper contains the base rspec configuration.
[11:40:06] dminuoso: Torrone: Oh by "include" I meant in the gist. ;-)
[11:40:29] Torrone: yeah, got it, I'm updating :-)
[11:41:12] Torrone: https://gist.github.com/Torrone5000/bfba280f66b6add506ac106c6781979a
[11:42:22] dminuoso: Torrone: Id say its a mysql configuration issue.
[11:42:33] Torrone: has worked fine so far
[11:42:37] dminuoso: Torrone: https://dev.mysql.com/doc/refman/5.7/en/gone-away.html
[11:43:10] dminuoso: Torrone: Though Im wondering whether the rack mini profiler might be involved.
[11:43:41] Torrone: hm, I'll try to exclude it
[11:44:51] Torrone: good call but it still gives the error
[11:45:46] Torrone: the logs show that the user is being created btw, as well as the email being sent and request redirected
[11:46:21] matthewd: has joined #RubyOnRails
[11:49:17] fschuindt: has joined #RubyOnRails
[11:52:59] bronson: has joined #RubyOnRails
[12:01:58] uks: has joined #RubyOnRails
[12:08:40] Torrone: in fact if I run the code within a single 'it' statement and test everything at once the test passes, but I don't want that, I need to test everything independently
[12:14:14] arup_r: has joined #RubyOnRails
[12:14:16] arup_r: Can anyone help me in this very basic searchkick question https://www.reddit.com/r/rails/comments/7nupu5/basic_searckick_question/ ? I am not good yet in ES. I explained what I want and what I am getting in the thread itself.
[12:18:52] ur5us: has joined #RubyOnRails
[12:22:05] ltd: has joined #RubyOnRails
[12:35:26] ltd: has joined #RubyOnRails
[12:38:49] IanMalcolm: has joined #RubyOnRails
[12:40:12] srinidhi: has joined #RubyOnRails
[12:53:48] bronson: has joined #RubyOnRails
[13:02:22] beanish: has joined #RubyOnRails
[13:09:10] lxsameer: has joined #RubyOnRails
[13:09:56] Torrone: has joined #RubyOnRails
[13:14:04] Ergo: has joined #RubyOnRails
[13:15:18] dviola: has joined #RubyOnRails
[13:16:11] beanish: has joined #RubyOnRails
[13:21:41] conta1: has joined #RubyOnRails
[13:22:45] MrCrackPotBuilde: has joined #RubyOnRails
[13:28:20] IanMalcolm: has joined #RubyOnRails
[13:33:47] mtkd: has joined #RubyOnRails
[13:35:26] crova: has joined #RubyOnRails
[13:35:46] jnollette: has joined #RubyOnRails
[13:36:01] prometheus_falli: has joined #RubyOnRails
[13:39:35] _aeris_: has joined #RubyOnRails
[13:43:31] Saukk: has joined #RubyOnRails
[13:45:04] crst: has joined #RubyOnRails
[13:45:10] crova: Greetings everyone! I have a fetch routine that is not evaluating the field "date" and ends up creating a new record every time instead of updating the existing one: https://gist.github.com/crova/50fd35dca1045fef9e78eb0abbddbace Anyone has any insights on where I messed up here? Cheers
[13:48:59] dionysus69: has joined #RubyOnRails
[13:52:59] ahrs: has joined #RubyOnRails
[13:55:01] bronson: has joined #RubyOnRails
[14:09:19] _aeris_: has joined #RubyOnRails
[14:19:28] ur5us: has joined #RubyOnRails
[14:25:05] conta1: has joined #RubyOnRails
[14:26:06] _aeris_: has joined #RubyOnRails
[14:34:46] jobewan: has joined #RubyOnRails
[14:37:24] alfiemax: has joined #RubyOnRails
[14:39:51] AzaToth: has joined #RubyOnRails
[14:55:41] bronson: has joined #RubyOnRails
[14:58:23] daveomcd: I've upgraded my bundler and redeployed my app using capistrano and everything appears to go well - except I get this error: Could not find acts-as-taggable-on-4.0.0 in any of the sources (Bundler::GemNotFound)
[14:59:17] daveomcd: I've tried doing a bundle install on the server as well as redeploying my code and neither get rid of this error - while still executing everything just fine
[15:03:40] beanish: has joined #RubyOnRails
[15:09:36] _ritchie_: has joined #RubyOnRails
[15:17:30] safetypin: has joined #RubyOnRails
[15:38:03] zwliew: has joined #RubyOnRails
[15:39:59] DaniG2k: has joined #RubyOnRails
[15:41:22] DaniG2k: hello all. I am working with a Rails 4 app that has reached the limit of ids that Postgres can assign to a table (about 2*10^9) and I am thinking I should convert the ID field to a bigint
[15:41:29] DaniG2k: that part shouldn't be too hard
[15:41:38] DaniG2k: I think the hard part will be trying to change the foreign keys as well
[15:41:41] [Butch]: has joined #RubyOnRails
[15:41:43] DaniG2k: I'm not sure how to go about this
[15:41:54] DaniG2k: what should I look for in the schema so that I don't miss anything?
[15:42:11] DaniG2k: should I just change the entries with `add_foreign_key`
[15:42:32] DaniG2k: or should I also change ones with `add_index` ?
[15:50:24] DaniG2k: ah nevermind I got it
[15:51:37] IanMalcolm: has joined #RubyOnRails
[15:53:49] srinidhi: has joined #RubyOnRails
[15:56:27] bronson: has joined #RubyOnRails
[16:03:33] arBmind: has joined #RubyOnRails
[16:08:37] r00twrh: has joined #RubyOnRails
[16:10:19] r00twrh: Hi folks... When rendering json I can do something like... "render json: @items, :methods => :extra_method_on_item" .... That works. Question is: how do I call multiple methods when rendering?
[16:14:55] troys: has joined #RubyOnRails
[16:15:18] jaffachief: has joined #RubyOnRails
[16:19:50] ams__: has joined #RubyOnRails
[16:20:15] ur5us: has joined #RubyOnRails
[16:21:09] GodFather: has joined #RubyOnRails
[16:22:34] roshanavand: has joined #RubyOnRails
[16:29:38] fschuindt: has joined #RubyOnRails
[16:42:33] mtkd: has joined #RubyOnRails
[16:48:01] orbyt_: has joined #RubyOnRails
[16:48:49] daveomcd: if i wanted to disable action cable code from my app for testing something is there some code i could just comment out that wouldn't initiate any connections?
[16:50:18] cagomez: has joined #RubyOnRails
[16:55:59] srinidhi: has joined #RubyOnRails
[16:57:22] bronson: has joined #RubyOnRails
[17:04:15] thomasfedb: has joined #RubyOnRails
[17:04:53] quirkycoders: has joined #RubyOnRails
[17:13:47] one_zero: has joined #RubyOnRails
[17:19:37] morantron: has joined #RubyOnRails
[17:20:08] darkhanb: has joined #RubyOnRails
[17:22:05] morantron: hi! i'm trying to do a query that involves nested joins and filtering by one field of the joined table. The main gotcha is that my models are namespaced so I'd like to avoid writing the table name in it. Any pointers?
[17:24:00] dancecity: has joined #RubyOnRails
[17:32:32] dancecity: is there a really good bootstrap sass tutorial out there\?
[17:35:27] quirkycoders: has joined #RubyOnRails
[17:37:22] orbyt_: has joined #RubyOnRails
[17:53:10] alfiemax: has joined #RubyOnRails
[17:53:12] daveomcd: if I do not set my "config.action_cable_allowed_request_origins" option what issues would i have? I've noticed when I try to set it my website becomes unresponsive and won't load up
[17:57:48] sameerynho: has joined #RubyOnRails
[17:58:17] bronson: has joined #RubyOnRails
[18:02:35] roshanavand: has joined #RubyOnRails
[18:09:13] tcopeland: has joined #RubyOnRails
[18:11:48] JusticeFries: has joined #RubyOnRails
[18:16:33] workmad3: has joined #RubyOnRails
[18:18:38] ur5us: has joined #RubyOnRails
[18:23:38] jottr: has joined #RubyOnRails
[18:24:09] IanMalcolm: has joined #RubyOnRails
[18:32:20] JusticeFries: has joined #RubyOnRails
[18:32:30] orbyt_: has joined #RubyOnRails
[18:36:14] safetypin: has joined #RubyOnRails
[18:45:50] safetypin: has joined #RubyOnRails
[18:46:16] mtkd: has joined #RubyOnRails
[18:48:16] davic: has joined #RubyOnRails
[18:50:26] orbyt_: has joined #RubyOnRails
[18:59:10] bronson: has joined #RubyOnRails
[19:08:14] mikecmpbll: has joined #RubyOnRails
[19:16:50] jottr: has joined #RubyOnRails
[19:18:30] IanMalcolm: has joined #RubyOnRails
[19:19:35] Dimik: has joined #RubyOnRails
[19:22:42] _ritchie_: has joined #RubyOnRails
[19:33:08] daveomcd: Anyone know how i can remove ActionCable from Rails temporarily? for debugging?
[19:41:41] dionysus69: has joined #RubyOnRails
[20:00:28] romeoh: has joined #RubyOnRails
[20:01:01] chouhoulis: has joined #RubyOnRails
[20:02:35] workmad3: has joined #RubyOnRails
[20:13:32] Dreamer3: has joined #RubyOnRails
[20:13:50] desperek: has joined #RubyOnRails
[20:18:57] my123: has joined #RubyOnRails
[20:28:16] defsdoor: has joined #RubyOnRails
[20:41:28] mostlybadfly: has joined #RubyOnRails
[20:45:07] gambl0re: has joined #RubyOnRails
[20:45:48] cagomez: has joined #RubyOnRails
[20:48:11] tcopeland: has joined #RubyOnRails
[20:50:04] orbyt_: has joined #RubyOnRails
[20:50:52] mtkd: has joined #RubyOnRails
[20:56:11] cagomez: has joined #RubyOnRails
[21:00:23] bronson: has joined #RubyOnRails
[21:01:27] amperry: has joined #RubyOnRails
[21:02:55] cjohnson: Are find_by_foo things being deprecated?
[21:03:08] cjohnson: find_by_my_field_name(x) vs find_by(my_field_name: x)
[21:03:55] cjohnson: So the suggestion is to always use find_by()
[21:04:08] cjohnson: I'm in rails 4 but I want to be friendly to 5
[21:04:10] cjohnson: thanks wmoxam
[21:05:43] tdy: has joined #RubyOnRails
[21:10:14] cjohnson: One more quesiton, I have a list of fields that I want to map from one hash to another, with a difference in field name
[21:10:39] cjohnson: so %w(name email title etc) and I want to map from hash["user_" + field] to newthing[field]
[21:11:09] cjohnson: I've got r = {} fields.each do |f| r[f] = input["user_" + f] end
[21:11:16] cjohnson: But that seems funky, is there a better way
[21:11:39] arBmind: has joined #RubyOnRails
[21:15:08] Olipro: has joined #RubyOnRails
[21:18:05] romeoh: has joined #RubyOnRails
[21:26:24] NoGodDamnIdea: has joined #RubyOnRails
[21:27:39] wmoxam: cjohnson: you could do `r = Hash.new {|hash, key| hash[key] = input["user_" + key] }`
[21:27:42] wmoxam: when you lookup a value, the hash will calculate and store it on the fly
[21:28:00] wmoxam: tbh I think your original way is fine
[21:28:31] borodin: has joined #RubyOnRails
[21:29:10] wmoxam: fields.map{ |x| [x, input["user_" + x]] }.to_h would work too
[21:34:00] cjohnson: I like the Hash.new because I'm really just turning around and returning r, so this avoids r = {} as well as return r
[21:35:03] gambl0re: has joined #RubyOnRails
[21:35:18] cjohnson: wmoxam: Oh wait, how do I get the list of keys with Hash.new
[21:37:08] cjohnson: Oh wow I guess if I take a breath and read I would see your latest solution solves both things nicely
[21:37:11] cjohnson: thanks again wmoxam
[21:39:40] wmoxam: the first one does it on the fly
[21:39:55] cjohnson: Where do you reference fields in the first one
[21:40:00] wmoxam: so `input` would have to be in scope
[21:40:08] wmoxam: I don't, it's done on the fly :D
[21:40:11] cjohnson: ohhh you assume all the fields on input are being mapped
[21:40:17] cjohnson: In my case I'm only pulling some
[21:40:17] wmoxam: no, not at all
[21:40:30] cjohnson: So I don't understand where it's specified which fields should be mapped
[21:40:43] wmoxam: when you do r['user'], it would be calculated then
[21:40:50] wmoxam: for 'user'
[21:41:01] cjohnson: Ohhh like a lazy load thing
[21:41:06] wmoxam: yes exactly
[21:41:07] cjohnson: Very interesting
[21:43:43] nopolitica: has joined #RubyOnRails
[21:47:47] cjohnson: That seems like a js closure
[21:48:41] wmoxam: cjohnson: see: https://netinlet.com/blog/2014/01/01/fun-with-ruby-hashes/
[21:56:05] Gizmokid2005: has joined #RubyOnRails
[22:01:08] bronson: has joined #RubyOnRails
[22:02:39] lupine: the world is a VERY different place without JS
[22:02:53] lupine: all those emails are hidden by cloudflare and it refuses to show them unless you enable JS
[22:03:24] workmad3: has joined #RubyOnRails
[22:21:27] KeyJoo: has joined #RubyOnRails
[22:22:31] my123: has joined #RubyOnRails
[22:30:03] orbyt_: has joined #RubyOnRails
[22:38:55] chouhoulis: has joined #RubyOnRails
[22:45:27] dviola: has joined #RubyOnRails
[22:56:03] mtkd: has joined #RubyOnRails
[22:57:50] nso95: has joined #RubyOnRails
[23:01:57] bronson: has joined #RubyOnRails
[23:03:30] alfiemax: has joined #RubyOnRails
[23:17:46] MrCrackPotBuilde: has joined #RubyOnRails
[23:34:39] orbyt_: has joined #RubyOnRails
[23:45:41] alfiemax: has joined #RubyOnRails
[23:57:02] alfiemax: has joined #RubyOnRails