« Back to channel list

#RubyOnRails - 06 April 2018

« Back 1 day Forward 1 day »
[00:02:45] WalterPeck: does anyone here use develop using a docker container as their database server?
[00:12:57] duderonomy: has joined #RubyOnRails
[00:13:23] workmad3: has joined #RubyOnRails
[00:18:07] dgsan: has joined #RubyOnRails
[00:18:44] dgsan: My url helpers seem to have stopped working and are giving "undefined method `empty?' for nil:NilClass" messages.
[00:21:31] duderono_: has joined #RubyOnRails
[00:24:49] dgsan: Figured out my problem, seems esoteric. Probably misunderstanding what default_url_options in routes does.
[00:26:19] cagomez: has joined #RubyOnRails
[00:32:35] cagomez: has joined #RubyOnRails
[00:51:20] duderonomy: has joined #RubyOnRails
[01:18:48] cjohnson: WalterPeck: yes. I run the rails app in one container and the db in another
[01:19:07] orbyt_: has joined #RubyOnRails
[01:26:47] darkhanb: has joined #RubyOnRails
[01:33:50] Dimik: has joined #RubyOnRails
[01:37:03] mheld: has joined #RubyOnRails
[02:03:42] tdy: has joined #RubyOnRails
[02:12:58] workmad3: has joined #RubyOnRails
[02:13:47] schneider: has joined #RubyOnRails
[02:14:42] sevenseacat: has joined #RubyOnRails
[02:36:58] emers2n: has joined #RubyOnRails
[02:38:46] emers2n: If I wanted to be able to call a Javascript file in my Rails app externally, where would I place the Javascript file to make this possible? For example, if I wanted to be able to call my JS file using a URL like https://calm-retreat-XXX.herokuapp.com/javascripts/script.js
[02:39:53] sevenseacat: if it doesnt need any kind of precompilation, put it in public/ somewhere
[02:41:22] emers2n: That worked beautifully, appreciate it @sevenseacat
[02:44:43] bdnelson: has joined #RubyOnRails
[02:47:37] orbyt_: has joined #RubyOnRails
[02:50:42] fcser_: Is there some way to have a ‘virtual object’ ? For example there is a “Reservation” model that has a field vehicle_location that belongs_to a Location model. I also want to include an option within collection_select for “No Vehicle”. If a Location is chosen I want to validate it, if No Vehicle is chosen I want to let the model proceed with creation… But just have one select list instead of a separate virtual attribute check box for ‘No
[02:50:42] fcser_: vehicle’…
[02:51:44] Saukk: has joined #RubyOnRails
[02:52:15] cagomez: has joined #RubyOnRails
[02:59:44] MonicleLewinsky: has left #RubyOnRails: ("Byee")
[03:14:57] wethu: has joined #RubyOnRails
[03:26:17] fcser_: ok well figured out a way it may not be right but it works - to create a real object with a special attribute to make it ‘inactive’ so it doesn’t appear with other options - there must be a better way
[03:28:01] schneider: has joined #RubyOnRails
[03:28:10] fcser_: or I’m not understanding
[03:28:15] fcser_: mosts likely
[03:28:31] cagomez: has joined #RubyOnRails
[03:32:00] cagomez: has joined #RubyOnRails
[03:35:37] jcarl43: has joined #RubyOnRails
[04:12:31] workmad3: has joined #RubyOnRails
[04:16:32] rev_strangehope: has joined #RubyOnRails
[04:16:55] cschneid_: has joined #RubyOnRails
[04:21:18] ur5us: has joined #RubyOnRails
[04:22:36] ur5us: has joined #RubyOnRails
[05:01:02] _aeris_: has joined #RubyOnRails
[05:09:47] reber: has joined #RubyOnRails
[05:12:30] srinidhi: has joined #RubyOnRails
[05:23:25] G: has joined #RubyOnRails
[05:25:34] kapil___: has joined #RubyOnRails
[05:27:45] russt: has joined #RubyOnRails
[05:30:11] conta: has joined #RubyOnRails
[05:31:08] sevenseacat: has joined #RubyOnRails
[05:35:27] newton: has joined #RubyOnRails
[05:38:34] Liothen: has joined #RubyOnRails
[05:38:37] dmarr: has joined #RubyOnRails
[05:39:57] cschneid_: has joined #RubyOnRails
[06:04:51] apeiros: has joined #RubyOnRails
[06:12:04] workmad3: has joined #RubyOnRails
[06:23:49] cschneid_: has joined #RubyOnRails
[06:32:13] bijan_: has joined #RubyOnRails
[06:33:25] roshanavand: has joined #RubyOnRails
[06:48:08] DrYockel: has joined #RubyOnRails
[06:51:08] srinidhi: has joined #RubyOnRails
[06:55:22] loveablelobster: has joined #RubyOnRails
[06:59:09] cschneid_: has joined #RubyOnRails
[07:09:17] bijan_: has joined #RubyOnRails
[07:13:43] trautwein: has joined #RubyOnRails
[07:22:45] schneider: has joined #RubyOnRails
[07:29:40] dminuoso: Neat. This looks cleanly written https://github.com/tjchambers/paper_trail_scrapbook =)
[07:30:03] dminuoso: Just needs a touch of polishing with i18n and it goes very nicely along paper_trail
[07:31:15] sevenseacat: nice. that would have been useful to me once
[07:31:19] uksio: has joined #RubyOnRails
[07:43:49] rikkipitt: has joined #RubyOnRails
[07:46:28] cschneid_: has joined #RubyOnRails
[07:53:36] defsdoor: has joined #RubyOnRails
[08:05:54] srinidhi: has joined #RubyOnRails
[08:11:37] workmad3: has joined #RubyOnRails
[08:26:37] Ergo: has joined #RubyOnRails
[08:27:39] loveablelobster: has joined #RubyOnRails
[08:29:46] nertzy: has joined #RubyOnRails
[08:30:40] jnollette: has joined #RubyOnRails
[08:33:33] alfiemax: has joined #RubyOnRails
[08:34:20] bijan_: has joined #RubyOnRails
[08:35:06] drale2k_: has joined #RubyOnRails
[08:35:46] schneider: has joined #RubyOnRails
[08:59:47] schneider: has joined #RubyOnRails
[09:00:32] marr: has joined #RubyOnRails
[09:06:46] mikecmpbll: has joined #RubyOnRails
[09:10:32] ur5us: has joined #RubyOnRails
[09:11:20] elcms: has joined #RubyOnRails
[09:16:10] cschneid_: has joined #RubyOnRails
[09:22:34] mtkd: has joined #RubyOnRails
[09:35:04] alfiemax: has joined #RubyOnRails
[09:37:12] Fernando-Basso: has joined #RubyOnRails
[09:37:47] schneider: has joined #RubyOnRails
[09:40:49] ellcs: has joined #RubyOnRails
[09:41:33] G: has joined #RubyOnRails
[09:42:10] drale2k_: has joined #RubyOnRails
[09:50:39] dionysus69: has joined #RubyOnRails
[09:55:47] schneider: has joined #RubyOnRails
[10:01:45] drale2k_: has joined #RubyOnRails
[10:03:28] pavelz: hi i wonder if I can move csrf token check to be performed after validation of a logged in user
[10:03:53] workmad3: has joined #RubyOnRails
[10:04:55] schneider: has joined #RubyOnRails
[10:08:32] apeiros: has joined #RubyOnRails
[10:12:12] ephemer0l: has joined #RubyOnRails
[10:13:17] dminuoso: pavelz: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html
[10:13:22] dminuoso: pavelz: Check the :prepend option
[10:14:04] schneider: has joined #RubyOnRails
[10:23:16] schneider: has joined #RubyOnRails
[10:25:28] ma5ter: has joined #RubyOnRails
[10:31:35] KeyJoo: has joined #RubyOnRails
[10:31:40] cschneid_: has joined #RubyOnRails
[10:32:26] schneider: has joined #RubyOnRails
[10:32:36] KeyJoo: has joined #RubyOnRails
[10:36:45] elcms: has joined #RubyOnRails
[10:36:45] pavelz: dminuoso: thanks.
[10:41:33] schneider: has joined #RubyOnRails
[10:50:40] schneider: has joined #RubyOnRails
[10:58:06] drale2k_: has joined #RubyOnRails
[10:59:39] schneider: has joined #RubyOnRails
[11:27:17] mtkd: has joined #RubyOnRails
[11:31:50] ferr: has joined #RubyOnRails
[11:32:37] ferr: has left #RubyOnRails: ()
[11:33:56] schneider: has joined #RubyOnRails
[11:34:25] Cavallari: has joined #RubyOnRails
[11:42:59] schneider: has joined #RubyOnRails
[11:46:54] ellcs: has joined #RubyOnRails
[11:48:48] cschneid_: has joined #RubyOnRails
[11:52:03] schneider: has joined #RubyOnRails
[11:58:35] srinidhi: has joined #RubyOnRails
[12:01:11] schneider: has joined #RubyOnRails
[12:04:39] pavelz: dminuoso: unfortunately i have rails 4.2
[12:04:49] pavelz: says feature available since 5
[12:04:57] duderonomy: has joined #RubyOnRails
[12:07:36] rfoust: has joined #RubyOnRails
[12:09:16] schneider: has joined #RubyOnRails
[12:12:00] jnollette: has joined #RubyOnRails
[12:18:26] schneider: has joined #RubyOnRails
[12:23:39] Saukk: has joined #RubyOnRails
[12:25:15] phaed: has joined #RubyOnRails
[12:32:49] schneider: has joined #RubyOnRails
[12:40:19] rikkipitt: has joined #RubyOnRails
[12:41:57] schneider: has joined #RubyOnRails
[12:51:04] schneider: has joined #RubyOnRails
[13:00:11] schneider: has joined #RubyOnRails
[13:05:50] spohnz: has joined #RubyOnRails
[13:07:29] defsdoor: has joined #RubyOnRails
[13:09:15] schneider: has joined #RubyOnRails
[13:11:07] drale2k_: has joined #RubyOnRails
[13:18:20] schneider: has joined #RubyOnRails
[13:27:19] duderonomy: has joined #RubyOnRails
[13:27:30] schneider: has joined #RubyOnRails
[13:28:51] spohnz: has joined #RubyOnRails
[13:34:15] tcopeland: has joined #RubyOnRails
[13:36:44] schneider: has joined #RubyOnRails
[13:44:18] schneider: has joined #RubyOnRails
[13:49:21] cschneid_: has joined #RubyOnRails
[13:52:09] schneider: has joined #RubyOnRails
[13:52:39] tpendragon: has joined #RubyOnRails
[13:55:24] cseder: has joined #RubyOnRails
[13:58:40] Cavallari1: has joined #RubyOnRails
[14:14:08] woohoou: has joined #RubyOnRails
[14:19:17] WalterPeck: has joined #RubyOnRails
[14:30:52] chouhoulis: has joined #RubyOnRails
[14:40:49] mtkd: has joined #RubyOnRails
[14:55:09] cschneid_: has joined #RubyOnRails
[14:55:14] LateralOctober: has joined #RubyOnRails
[14:56:32] workmad3_: has joined #RubyOnRails
[14:58:05] istrasci: For a has_one/has_many with conditions, what are the pros/cons of putting the conditions directly on the association vs. making a scope on the associated class and using that?
[15:00:43] drale2k_: has joined #RubyOnRails
[15:11:03] cschneid_: has joined #RubyOnRails
[15:12:03] Inside: has joined #RubyOnRails
[15:13:00] Inside: Hey guys - working on a RoR application to store manufacturing test results in a database (currently stored as... paper). There are a few dozen different tests w/ different parameters recorded by each person.
[15:13:13] Inside: Should I do 1 table w/ a K:V column, or 1 table per test?
[15:13:43] Inside: K:V column would be good since I can store the user who did the test and then see everything that someone has ever worked on
[15:14:00] Inside: but deserializing the data for an SPC run chart would be a bit hader
[15:20:21] apparition: has joined #RubyOnRails
[15:22:40] ElFerna: has joined #RubyOnRails
[15:26:27] schneider: has joined #RubyOnRails
[15:34:58] jcarl43: has joined #RubyOnRails
[15:40:31] schneider: has joined #RubyOnRails
[15:49:35] schneider: has joined #RubyOnRails
[15:58:39] schneider: has joined #RubyOnRails
[15:59:55] workmad3: has joined #RubyOnRails
[16:00:20] jackhum: has joined #RubyOnRails
[16:00:56] npgm: has joined #RubyOnRails
[16:07:47] schneider: has joined #RubyOnRails
[16:10:19] rikkipit1: has joined #RubyOnRails
[16:13:19] duderonomy: has joined #RubyOnRails
[16:15:01] one_zero: has joined #RubyOnRails
[16:15:24] rikkipitt: has joined #RubyOnRails
[16:16:54] schneider: has joined #RubyOnRails
[16:26:02] schneider: has joined #RubyOnRails
[16:27:13] thomasfedb: Inside: probably need to know more detail to make a really informed decision, both options have trade-offs, but I would probably tend towards a key value column
[16:28:10] darkhanb: has joined #RubyOnRails
[16:30:06] dgsan: I can't imagine a scenario where you want unique tables for every instance of similar data/unique tables per test. I can imagine that you need multiple tables with relationships to each other to keep track of your tests if they vary in dimensionality or arity.
[16:35:05] schneider: has joined #RubyOnRails
[16:38:27] mtkd: has joined #RubyOnRails
[16:41:48] Torrone: has joined #RubyOnRails
[16:44:12] schneider: has joined #RubyOnRails
[16:44:53] Cavallari: has joined #RubyOnRails
[16:46:24] Torrone: hello, I'm trying to use http://api.rubyonrails.org/classes/ActiveRecord/ModelSchema/ClassMethods.html#method-i-ignored_columns-3D but it's not working for me, the columns don't get ignored, has this happened to you?
[16:49:23] thomasfedb: Torrone: what's not working? Can you gist your code and an example of what's going wrong?
[16:49:34] apeiros__: has joined #RubyOnRails
[16:51:11] Torrone: thomasfedb, basically I wrote a concern that I use a lot that has a method 'average_rating', since I'm working on a long going project, one of the models that includes the concern has a column named 'average_rating'
[16:51:24] Torrone: and I didn't know!
[16:52:03] Torrone: so what I'm trying to do is to ignore that column since it's not really used anymore and trying not to delete it for safety
[16:52:40] Torrone: the error occurs whenever I call the method 'average_rating'
[16:53:17] schneider: has joined #RubyOnRails
[16:53:57] Torrone: that's because I check if has_attribute?(:average_rating) and it still returns true
[16:54:07] Torrone: even if I don't fetch the column
[16:55:24] Torrone: but actually I found that if I use ignored_columns combined with commenting out the line with attribute :average_rating I get the correct value
[16:55:37] Torrone: so thank you very much for letting me explain this to you
[17:02:03] orbyt_: has joined #RubyOnRails
[17:02:23] schneider: has joined #RubyOnRails
[17:05:56] Torrone: has left #RubyOnRails: ("Leaving")
[17:06:35] Inside: thomasfedb: Sure. Each record represents a test run on a single component. A component is uniquely identified by a serial number string. Each test captures a small number of parameters (ie: voltage reading, pressure readout, etc). Each type of test has different parameters that it captures and there are also different components so not every test can be run on every component, etc.
[17:07:19] Inside: So for example: "a drink module test" captures 4 readouts and the test result code that comes from a PLC.
[17:07:40] Inside: a "power supply test" would capture the readouts on different rails
[17:11:54] schneider: has joined #RubyOnRails
[17:20:59] schneider: has joined #RubyOnRails
[17:27:43] apeiros: has joined #RubyOnRails
[17:30:16] schneider: has joined #RubyOnRails
[17:32:45] alfiemax: has joined #RubyOnRails
[17:34:27] workmad3: has joined #RubyOnRails
[17:39:22] schneider: has joined #RubyOnRails
[17:47:47] schneider: has joined #RubyOnRails
[17:56:54] schneider: has joined #RubyOnRails
[17:56:58] LateralOctober: has joined #RubyOnRails
[18:00:50] ElFerna: has joined #RubyOnRails
[18:05:01] alfiemax: has joined #RubyOnRails
[18:06:00] schneider: has joined #RubyOnRails
[18:08:33] VeryBewitching: has joined #RubyOnRails
[18:15:07] schneider: has joined #RubyOnRails
[18:20:46] sameerynho: has joined #RubyOnRails
[18:24:12] schneider: has joined #RubyOnRails
[18:30:37] schneider: has joined #RubyOnRails
[18:36:50] mroutis: has joined #RubyOnRails
[18:39:45] schneider: has joined #RubyOnRails
[18:40:57] mroutis: has left #RubyOnRails: ()
[18:43:03] mtkd: has joined #RubyOnRails
[18:43:59] alfiemax: has joined #RubyOnRails
[18:44:28] kapil___: has joined #RubyOnRails
[18:48:51] schneider: has joined #RubyOnRails
[18:57:55] schneider: has joined #RubyOnRails
[19:07:04] schneider: has joined #RubyOnRails
[19:10:30] jackhum: has joined #RubyOnRails
[19:16:18] schneider: has joined #RubyOnRails
[19:24:20] trautwein: has joined #RubyOnRails
[19:25:25] schneider: has joined #RubyOnRails
[19:28:51] srinidhi: has joined #RubyOnRails
[19:30:52] trautwein: has joined #RubyOnRails
[19:32:03] trautwein: has joined #RubyOnRails
[19:33:27] trautwein: has joined #RubyOnRails
[19:34:17] trautwein: has joined #RubyOnRails
[19:34:30] schneider: has joined #RubyOnRails
[19:36:02] trautwein: has joined #RubyOnRails
[19:37:40] safetypin: has joined #RubyOnRails
[19:43:23] workmad3: has joined #RubyOnRails
[19:43:34] schneider: has joined #RubyOnRails
[19:45:25] trautwein: has joined #RubyOnRails
[19:52:42] schneider: has joined #RubyOnRails
[19:53:53] fryguy: has joined #RubyOnRails
[20:01:48] schneider: has joined #RubyOnRails
[20:10:05] HoierM: has joined #RubyOnRails
[20:10:59] schneider: has joined #RubyOnRails
[20:19:58] schneider: has joined #RubyOnRails
[20:29:08] schneider: has joined #RubyOnRails
[20:30:06] weaksauce: has joined #RubyOnRails
[20:31:13] DTZUZO: has joined #RubyOnRails
[20:38:12] schneider: has joined #RubyOnRails
[20:41:41] gambl0re: has joined #RubyOnRails
[20:47:24] schneider: has joined #RubyOnRails
[20:52:55] schneider: has joined #RubyOnRails
[21:02:28] schneider: has joined #RubyOnRails
[21:09:51] tdy: has joined #RubyOnRails
[21:12:23] trautwein: has joined #RubyOnRails
[21:32:43] schneider: has joined #RubyOnRails
[21:35:13] rikkipitt: has joined #RubyOnRails
[21:39:00] schneider: has joined #RubyOnRails
[21:42:54] workmad3: has joined #RubyOnRails
[21:44:48] DTZUZO: has joined #RubyOnRails
[21:51:32] schneider: has joined #RubyOnRails
[22:02:30] schneider: has joined #RubyOnRails
[22:03:04] chouhoulis: has joined #RubyOnRails
[22:05:43] gambl0re: has joined #RubyOnRails
[22:11:39] schneider: has joined #RubyOnRails
[22:13:14] tcopeland: has joined #RubyOnRails
[22:20:38] istrasci: has left #RubyOnRails: ("PART #rspec :PING 1523053238")
[22:22:35] schneider: has joined #RubyOnRails
[22:25:40] LateralOctober: has joined #RubyOnRails
[22:31:45] schneider: has joined #RubyOnRails
[22:39:35] darkhanb: has joined #RubyOnRails
[22:42:40] schneider: has joined #RubyOnRails
[22:51:59] schneider: has joined #RubyOnRails
[22:57:39] blitz: has joined #RubyOnRails
[22:57:56] orbyt_: has joined #RubyOnRails
[23:02:49] schneider: has joined #RubyOnRails
[23:11:57] schneider: has joined #RubyOnRails
[23:12:46] mikecmpbll: has joined #RubyOnRails
[23:16:04] harrycs: has joined #RubyOnRails
[23:19:54] harryv: has joined #RubyOnRails
[23:22:57] schneider: has joined #RubyOnRails
[23:24:20] cstls: has joined #RubyOnRails
[23:30:47] kurko_: has joined #RubyOnRails
[23:32:05] schneider: has joined #RubyOnRails
[23:37:06] conceivably: has joined #RubyOnRails
[23:37:40] conceivably: Hi. Why does 'find_each' log 'BEGIN' 'COMMIT', even if no changes to a record are made?
[23:42:28] workmad3: has joined #RubyOnRails
[23:43:17] schneider: has joined #RubyOnRails
[23:54:23] schneider: has joined #RubyOnRails