« Back to channel list

#RubyOnRails - 16 April 2018

« Back 1 day Forward 1 day »
[00:06:08] schneider: has joined #RubyOnRails
[00:06:59] ResidentBiscuit: has joined #RubyOnRails
[00:15:14] schneider: has joined #RubyOnRails
[00:24:21] schneider: has joined #RubyOnRails
[00:33:32] schneider: has joined #RubyOnRails
[00:36:46] chouhoulis: has joined #RubyOnRails
[00:42:41] schneider: has joined #RubyOnRails
[00:51:47] schneider: has joined #RubyOnRails
[01:00:52] schneider: has joined #RubyOnRails
[01:05:01] alfiemax: has joined #RubyOnRails
[01:10:07] schneider: has joined #RubyOnRails
[01:15:00] zacts: has joined #RubyOnRails
[01:19:12] schneider: has joined #RubyOnRails
[01:28:18] schneider: has joined #RubyOnRails
[01:33:51] fragamus: has joined #RubyOnRails
[01:34:08] sameerynho: has joined #RubyOnRails
[01:37:10] roshanavand: has joined #RubyOnRails
[01:37:25] schneider: has joined #RubyOnRails
[01:37:53] kurko_: has joined #RubyOnRails
[01:39:39] alfiemax: has joined #RubyOnRails
[01:46:38] schneider: has joined #RubyOnRails
[01:55:44] schneider: has joined #RubyOnRails
[02:00:44] Yzguy: has joined #RubyOnRails
[02:04:51] schneider: has joined #RubyOnRails
[02:12:40] rfoust: has joined #RubyOnRails
[02:13:56] schneider: has joined #RubyOnRails
[02:19:27] roshanavand: has joined #RubyOnRails
[02:22:33] thomasfedb: has joined #RubyOnRails
[02:23:09] schneider: has joined #RubyOnRails
[02:23:18] roshanavand: has joined #RubyOnRails
[02:26:55] fragamus: has joined #RubyOnRails
[02:26:58] roshanavand: has joined #RubyOnRails
[02:28:52] roshanavand: has joined #RubyOnRails
[02:32:16] schneider: has joined #RubyOnRails
[02:33:19] roshanavand: has joined #RubyOnRails
[02:36:34] roshanavand: has joined #RubyOnRails
[02:38:02] duderonomy: has joined #RubyOnRails
[02:40:25] mjolnird: has joined #RubyOnRails
[02:41:25] schneider: has joined #RubyOnRails
[02:44:00] roshanavand: has joined #RubyOnRails
[02:49:14] Yzguy: has joined #RubyOnRails
[02:50:29] schneider: has joined #RubyOnRails
[02:59:41] schneider: has joined #RubyOnRails
[03:01:42] wethu: has joined #RubyOnRails
[03:05:34] Dimik: has joined #RubyOnRails
[03:08:47] schneider: has joined #RubyOnRails
[03:17:57] schneider: has joined #RubyOnRails
[03:23:30] segy: has joined #RubyOnRails
[03:27:04] schneider: has joined #RubyOnRails
[03:36:09] schneider: has joined #RubyOnRails
[03:41:45] Dimik: has joined #RubyOnRails
[03:45:19] schneider: has joined #RubyOnRails
[03:54:27] schneider: has joined #RubyOnRails
[03:56:41] alfiemax: has joined #RubyOnRails
[04:03:31] schneider: has joined #RubyOnRails
[04:12:42] schneider: has joined #RubyOnRails
[04:21:50] schneider: has joined #RubyOnRails
[04:30:57] schneider: has joined #RubyOnRails
[04:34:56] tejasmanohar: has joined #RubyOnRails
[04:40:09] schneider: has joined #RubyOnRails
[04:40:28] joycepao: has joined #RubyOnRails
[04:49:16] schneider: has joined #RubyOnRails
[04:56:53] one_zero: has joined #RubyOnRails
[04:58:25] schneider: has joined #RubyOnRails
[05:07:31] schneider: has joined #RubyOnRails
[05:09:31] MrCrackPotBuilde: has joined #RubyOnRails
[05:11:54] hfp_work: has joined #RubyOnRails
[05:15:57] reber: has joined #RubyOnRails
[05:16:42] schneider: has joined #RubyOnRails
[05:18:18] alfiemax: has joined #RubyOnRails
[05:25:36] sidx64: has joined #RubyOnRails
[05:25:47] schneider: has joined #RubyOnRails
[05:34:54] schneider: has joined #RubyOnRails
[05:41:39] schneider: has joined #RubyOnRails
[05:42:13] fragamus: has joined #RubyOnRails
[05:46:15] darkhanb: has joined #RubyOnRails
[05:50:54] schneider: has joined #RubyOnRails
[05:55:31] mtkd: has joined #RubyOnRails
[05:59:57] schneider: has joined #RubyOnRails
[06:09:06] schneider: has joined #RubyOnRails
[06:15:10] kies: has joined #RubyOnRails
[06:16:04] kapil___: has joined #RubyOnRails
[06:18:13] schneider: has joined #RubyOnRails
[06:27:20] schneider: has joined #RubyOnRails
[06:31:54] duderonomy: has joined #RubyOnRails
[06:36:26] schneider: has joined #RubyOnRails
[06:40:09] sidx64_: has joined #RubyOnRails
[06:44:25] sidx64: has joined #RubyOnRails
[06:45:36] schneider: has joined #RubyOnRails
[06:54:46] schneider: has joined #RubyOnRails
[07:01:53] srinidhi: has joined #RubyOnRails
[07:03:53] schneider: has joined #RubyOnRails
[07:05:55] dionysus69: has joined #RubyOnRails
[07:09:09] Ergo: has joined #RubyOnRails
[07:13:02] schneider: has joined #RubyOnRails
[07:13:27] defsdoor: has joined #RubyOnRails
[07:16:59] mikecmpbll: has joined #RubyOnRails
[07:22:00] uksio: has joined #RubyOnRails
[07:22:12] schneider: has joined #RubyOnRails
[07:31:19] schneider: has joined #RubyOnRails
[07:40:13] ariejan: has joined #RubyOnRails
[07:40:24] schneider: has joined #RubyOnRails
[07:49:30] schneider: has joined #RubyOnRails
[07:50:31] srinidhi: has joined #RubyOnRails
[07:55:11] dionysus69: has joined #RubyOnRails
[07:55:39] mikecmpbll: has joined #RubyOnRails
[07:58:38] schneider: has joined #RubyOnRails
[08:07:48] schneider: has joined #RubyOnRails
[08:16:57] schneider: has joined #RubyOnRails
[08:17:54] DrYockel: has joined #RubyOnRails
[08:25:09] marr: has joined #RubyOnRails
[08:26:04] schneider: has joined #RubyOnRails
[08:33:28] mikecmpb_: has joined #RubyOnRails
[08:35:14] schneider: has joined #RubyOnRails
[08:43:14] shtirlic: has joined #RubyOnRails
[08:44:23] schneider: has joined #RubyOnRails
[08:55:26] schneider: has joined #RubyOnRails
[09:02:03] reber: has joined #RubyOnRails
[09:04:29] schneider: has joined #RubyOnRails
[09:08:43] dminuoso: matthewd: Are you around?
[09:13:38] schneider: has joined #RubyOnRails
[09:22:49] schneider: has joined #RubyOnRails
[09:23:27] elcms: has joined #RubyOnRails
[09:25:13] dminuoso: Or maybe someone here has an idea. I have an AR transaction block followed by a redirect.
[09:26:12] dminuoso: Something involving the redirect randomly takes 20-30s to complete.
[09:26:38] dminuoso: Giving me some:
[09:26:40] dminuoso: I, [2018-04-16T11:04:54.368068 #51135] INFO -- : Completed 302 Found in 23340ms (ActiveRecord: 62.1ms
[09:27:23] dminuoso: Rails logging is annoying. :(
[09:31:13] _aeris_: has joined #RubyOnRails
[09:31:56] schneider: has joined #RubyOnRails
[09:37:01] arBmind: has joined #RubyOnRails
[09:41:01] schneider: has joined #RubyOnRails
[09:48:33] elcms: has joined #RubyOnRails
[09:50:11] schneider: has joined #RubyOnRails
[09:59:22] schneider: has joined #RubyOnRails
[09:59:43] wethu: has joined #RubyOnRails
[10:02:00] apeiros: has joined #RubyOnRails
[10:08:28] schneider: has joined #RubyOnRails
[10:17:33] schneider: has joined #RubyOnRails
[10:20:59] GodFather: has joined #RubyOnRails
[10:21:43] Charliebr73: has joined #RubyOnRails
[10:31:58] schneider: has joined #RubyOnRails
[10:33:59] mikecmpbll: has joined #RubyOnRails
[10:41:06] schneider: has joined #RubyOnRails
[10:46:31] kapil___: has joined #RubyOnRails
[10:50:13] schneider: has joined #RubyOnRails
[10:58:02] kurko_: has joined #RubyOnRails
[11:04:06] ellcs: has joined #RubyOnRails
[11:04:17] schneider: has joined #RubyOnRails
[11:13:17] jonno112: has joined #RubyOnRails
[11:13:27] schneider: has joined #RubyOnRails
[11:22:14] apparition: has joined #RubyOnRails
[11:22:34] schneider: has joined #RubyOnRails
[11:22:58] srinidhi: has joined #RubyOnRails
[11:28:09] srinidhi: has joined #RubyOnRails
[11:31:41] schneider: has joined #RubyOnRails
[11:39:41] sidx64: has joined #RubyOnRails
[11:40:55] schneider: has joined #RubyOnRails
[11:41:36] pavelz: accessing Models from controllers wrapped in a module seems problematic
[11:44:20] dminuoso: So I think 20s is lost in the transaction block at the end.
[11:47:55] jonno112: has joined #RubyOnRails
[11:49:34] DrYockel: has joined #RubyOnRails
[11:49:52] wethu: has joined #RubyOnRails
[11:50:08] schneider: has joined #RubyOnRails
[11:56:58] pavelz: or that typing more attentively helps
[11:57:48] elcms: has joined #RubyOnRails
[11:59:12] schneider: has joined #RubyOnRails
[12:04:16] srinidhi: has joined #RubyOnRails
[12:06:17] duderonomy: has joined #RubyOnRails
[12:08:22] schneider: has joined #RubyOnRails
[12:10:37] cabotto: has joined #RubyOnRails
[12:14:37] darkhanb: has joined #RubyOnRails
[12:17:28] schneider: has joined #RubyOnRails
[12:20:28] roshanavand: has joined #RubyOnRails
[12:26:26] jonno112: has joined #RubyOnRails
[12:26:38] schneider: has joined #RubyOnRails
[12:27:54] reber: has joined #RubyOnRails
[12:35:46] schneider: has joined #RubyOnRails
[12:38:45] Cavallari: has joined #RubyOnRails
[12:44:53] schneider: has joined #RubyOnRails
[12:48:36] srinidhi: has joined #RubyOnRails
[12:50:12] skw: has joined #RubyOnRails
[12:54:03] schneider: has joined #RubyOnRails
[12:54:54] sidx64: has joined #RubyOnRails
[12:55:05] workmad3: has joined #RubyOnRails
[12:55:19] darkhanb: has joined #RubyOnRails
[12:55:53] skw: has joined #RubyOnRails
[12:56:43] rfoust: has joined #RubyOnRails
[13:02:18] duderonomy: has joined #RubyOnRails
[13:03:08] schneider: has joined #RubyOnRails
[13:06:11] tcopeland: has joined #RubyOnRails
[13:11:35] Aherin: has joined #RubyOnRails
[13:12:17] schneider: has joined #RubyOnRails
[13:21:27] schneider: has joined #RubyOnRails
[13:26:23] ellcs: has joined #RubyOnRails
[13:26:49] cabotto: has joined #RubyOnRails
[13:27:42] Trevoke`: has joined #RubyOnRails
[13:28:07] duderonomy: has joined #RubyOnRails
[13:28:35] spohnz: has joined #RubyOnRails
[13:30:32] schneider: has joined #RubyOnRails
[13:39:41] schneider: has joined #RubyOnRails
[13:48:47] jerematic: has joined #RubyOnRails
[13:49:23] dminuoso: ./bin/webpack:26:in `exec': No such file or directory
[13:50:13] dminuoso: ACTION sighs
[13:50:19] dminuoso: https://github.com/rails/webpacker/issues/810
[13:50:21] dminuoso: This is a bad joke.
[13:50:42] duderonomy: has joined #RubyOnRails
[13:50:42] schneider: has joined #RubyOnRails
[13:57:25] kurko__: has joined #RubyOnRails
[13:59:52] schneider: has joined #RubyOnRails
[14:03:52] skroon: has joined #RubyOnRails
[14:04:24] skroon: I would like to upgrade a gem to the latest possible, should I modify the Gemfile with that specific version and call bundle, or is there a bunlder way of doing this?
[14:04:44] skroon: running bunlde update mygem doesn't upgrade it to the latest, i'm wondering what is preventing it
[14:09:01] schneider: has joined #RubyOnRails
[14:17:19] dminuoso: info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[14:17:26] dminuoso: yarn install stderr: error fsevents@1.1.3: The platform "linux" is incompatible with this module.
[14:17:28] dminuoso: error Found incompatible module
[14:17:40] dminuoso: Professional JavaScript software. I can tell.
[14:18:12] schneider: has joined #RubyOnRails
[14:20:15] Dimik: has joined #RubyOnRails
[14:23:59] rfoust: has joined #RubyOnRails
[14:25:58] tcopeland: has joined #RubyOnRails
[14:27:50] chouhoulis: has joined #RubyOnRails
[14:30:50] chouhoulis: has joined #RubyOnRails
[14:39:21] MrCrackPotBuilde: has joined #RubyOnRails
[14:43:43] Sirecote: has joined #RubyOnRails
[14:51:39] duderonomy: has joined #RubyOnRails
[15:05:05] apeiros: has joined #RubyOnRails
[15:16:03] theunraveler: has joined #RubyOnRails
[15:16:21] fragamus: has joined #RubyOnRails
[15:22:53] jcarl43: has joined #RubyOnRails
[15:24:26] ellcs: has joined #RubyOnRails
[15:28:57] apeiros: has joined #RubyOnRails
[15:34:55] DrYockel: has joined #RubyOnRails
[15:35:39] troys: has joined #RubyOnRails
[15:56:37] kurko_: has joined #RubyOnRails
[16:00:14] cagomez: has joined #RubyOnRails
[16:10:48] [Butch]: has joined #RubyOnRails
[16:12:41] darkhanb: has joined #RubyOnRails
[16:14:36] one_zero: has joined #RubyOnRails
[16:15:41] jerematic: has joined #RubyOnRails
[16:17:20] jerematic: has joined #RubyOnRails
[16:27:48] Trevoke`: has joined #RubyOnRails
[16:29:54] Linuus: has joined #RubyOnRails
[16:34:16] dionysus69: has joined #RubyOnRails
[16:40:15] Trevoke`: has joined #RubyOnRails
[16:40:38] timdotrb: has joined #RubyOnRails
[16:48:55] jerematic: has joined #RubyOnRails
[16:56:15] Trevoke`: has joined #RubyOnRails
[17:02:23] Trevoke`: has joined #RubyOnRails
[17:08:06] op84: has joined #RubyOnRails
[17:12:14] Saukk: has joined #RubyOnRails
[17:19:31] mtkd: has joined #RubyOnRails
[17:54:03] harrycs: has joined #RubyOnRails
[17:58:43] alfiemax: has joined #RubyOnRails
[18:02:04] jamesst20: has joined #RubyOnRails
[18:02:45] jamesst20: Hi, would someone kindly explain me why on the array b there is 2 elements ? https://i.imgur.com/9l2QvlY.png
[18:03:01] jamesst20: As if the array would not be persisted
[18:15:00] ariejan: has joined #RubyOnRails
[18:19:30] orbyt_: has joined #RubyOnRails
[18:20:02] timdotrb_: has joined #RubyOnRails
[18:20:49] DrYockel: has joined #RubyOnRails
[18:36:35] sameerynho: has joined #RubyOnRails
[18:38:09] srinidhi: has joined #RubyOnRails
[18:53:54] Linuus: has joined #RubyOnRails
[18:55:12] LyndsySimon: has joined #RubyOnRails
[18:56:44] chouhoulis: has joined #RubyOnRails
[18:57:18] orbyt_: has joined #RubyOnRails
[19:01:05] duderonomy: has joined #RubyOnRails
[19:02:40] schneider: has joined #RubyOnRails
[19:02:51] darkhanb: has joined #RubyOnRails
[19:12:00] schneider: has joined #RubyOnRails
[19:12:56] FernandoBasso: has joined #RubyOnRails
[19:21:18] schneider: has joined #RubyOnRails
[19:22:33] mr-spoon: has joined #RubyOnRails
[19:30:38] schneider: has joined #RubyOnRails
[19:35:13] amperry: has joined #RubyOnRails
[19:37:04] amperry: hi folks, I fear the answer is "no, you've got to roll your own", but can someone confirm that you cannot do transitive (i.e., `:has_many :through`) associations when using cocoon's `link_to_add_association` helper? Gist here: https://gist.github.com/amp108/b18acf50ac9395af19324aac55c49257
[19:37:18] schneider: has joined #RubyOnRails
[19:40:59] Sylario: In active Model Serializer, when you have defined key in the serialization, do you have to translate back to the initial value manually? It seems ams deserialization ignore keys
[19:43:00] amperry: afk, going to look up nested forms using jquery, et al; I really think there's no way to get cocoon to do it.
[19:44:01] GodFather: has joined #RubyOnRails
[19:47:53] workmad3: has joined #RubyOnRails
[19:49:25] mtkd: has joined #RubyOnRails
[20:00:54] tcopeland: has joined #RubyOnRails
[20:01:38] schneider: has joined #RubyOnRails
[20:10:14] orbyt_: has joined #RubyOnRails
[20:19:27] ryandv: has joined #RubyOnRails
[20:22:09] weaksauce: has joined #RubyOnRails
[20:41:32] glassresistor: has joined #RubyOnRails
[21:07:01] roshanavand: has joined #RubyOnRails
[21:29:00] amperry: so if I have a method, placements#sign_lease, how do I create a link_to it? I've tried this:
[21:29:03] amperry: <td><%= link_to 'Move In', :sign_lease , method: :post, id: r.id %></td>
[21:29:43] amperry: but the link that creates doesn't include the id, and therefore neither does the resulting params hash.
[21:34:47] lxsameer: has joined #RubyOnRails
[21:42:16] orbyt_: has joined #RubyOnRails
[21:47:07] workmad3: has joined #RubyOnRails
[21:54:12] _3dwardsharp: has joined #RubyOnRails
[21:57:15] samort7: has joined #RubyOnRails
[21:59:38] roshanavand: has joined #RubyOnRails
[22:01:08] amperry: anyone here at the moment?
[22:02:42] amperry: curious: I've got a method, placements#sign_lease, and a link that goes to http://localhost:3000/sign_lease/71, but I seem to be sidestepping placements#sign_lease.
[22:03:07] amperry: also, a route: POST /sign_lease/:id(.:format) placements#sign_lease
[22:03:41] samort7: Are you getting an error and/or is it sending you somewhere else/
[22:03:41] amperry: but I have byebug in the definition of sign_lease, and I'm not hitting it; instead, I'm redirecting to the home page
[22:04:39] amperry: are there common reasons why this would be?
[22:05:36] samort7: views are all correct I take it?
[22:06:13] ur5us: has joined #RubyOnRails
[22:06:16] amperry: I'm not 100% on that, but I *think* so.
[22:06:34] amperry: I mean, the view where the link is created looks okay (now).
[22:06:46] samort7: How big is this app?
[22:06:54] samort7: Very involved, or on the simpler side?
[22:07:11] amperry: And I would expect rails to halt inside 'def sign_lease' before it complained about missing templates or something.
[22:07:44] amperry: hard to say; relatively small, but there are definite oddities about it due to how weird the legacy data is.
[22:11:43] samort7: What's your sign_lease method look like?
[22:13:28] amperry: samort7: https://gist.github.com/amp108/e5b7ab5792d3f89788afab1b8f3028b3
[22:14:11] amperry: I know there's some silliness in the '@lease = @placement.build_lease' and such
[22:14:42] wethu: has joined #RubyOnRails
[22:15:52] samort7: I'm still pretty new to rails, but do you need a respond_to block in there?
[22:16:27] amperry: I might. This is a pretty nascent method right now, I was just wondering why I couldn't actually get to it.
[22:16:33] mikecmpbll: has joined #RubyOnRails
[22:17:19] samort7: yea, or a redirect_to that would send you to another path or something
[22:17:34] amperry: and now, with some fiddling, I think I've got it, but still have no real indication of what was wrong in the first place.
[22:17:44] samort7: ah, well at least its working :)
[22:18:21] amperry: samort7: thanks for being a sounding board, anyhow
[22:18:36] samort7: Yea, always helps to have a rubber duck
[22:18:38] samort7: ACTION quakcs
[22:19:25] samort7: My wife has inadvertently learned to program from me talking through code with her to help me figure it out
[22:19:39] amperry: okay, here's weirdness:
[22:20:33] amperry: the link_to call specifies 'method: :post', but if I remove "get '/sign_lease/:id'" from routes.rb, it doesn't go to the right place.
[22:22:10] amperry: so if params[:method] = "post", has it really been posted?
[22:25:22] MrPunkin: has joined #RubyOnRails
[22:28:13] MrPunkin: Anyone here use Mocha with testing? Trying to figure out how I can fake a return the first time a method is called in a loop, but allow the second+ times to run as normal. Anyone have any info?
[22:30:56] samort7: amperry: that is weird. I'm not really sure
[22:32:42] samort7: amperry: Try `rake routes` to see what's going on
[22:33:16] samort7: Unrelated, but I just found the best cheatsheet: https://devhints.io/rails-models
[22:35:16] amperry: samort7: googling and seeing something about jquery and turbolinks, so that could be something. Won't be the first time Rails' magic was a little too little David Copperfield and a little too much David Blaine.
[22:36:37] cagomez: I messed up a migration. is it ok to delete the row from `schema_migrations` table?
[22:36:46] samort7: amperry: good info here that might help https://stackoverflow.com/questions/778385/rails-post-put-get
[22:37:27] samort7: cagomez: did you try doing a rollback?
[22:37:38] amperry: samort7: thx
[22:38:30] cagomez: samort7: I tried db:migrate:down which is failing
[22:39:08] samort7: you could try a step rollback too
[22:39:19] samort7: cagomez: take a look at this page https://stackoverflow.com/questions/3647685/how-to-rollback-a-specific-migration
[22:39:49] samort7: specifying a particular version might be the way to go
[22:40:05] samort7: run `rake db:migrate:status` to see the version of all migrations
[22:50:23] Isa_: has joined #RubyOnRails
[23:04:02] ellcs: has joined #RubyOnRails
[23:08:58] amperry: has joined #RubyOnRails
[23:13:08] tcopeland: has joined #RubyOnRails
[23:14:05] orbyt_: has joined #RubyOnRails
[23:17:49] ResidentBiscuit: has joined #RubyOnRails
[23:23:58] ResidentBiscuit: has left #RubyOnRails: ()
[23:33:24] cagomez: what is the default command run when doing bundle exec rake db:migrate? is it a shorthand for bundle exec rake db:migrate:up?
[23:35:07] kies^: has joined #RubyOnRails
[23:40:29] duderonomy: has joined #RubyOnRails
[23:46:18] workmad3: has joined #RubyOnRails
[23:55:14] amperry: has joined #RubyOnRails
[23:55:42] ArTiSTiX: has joined #RubyOnRails