« Back to channel list

#RubyOnRails - 06 August 2019

« Back 1 day Forward 1 day »
[00:06:32] skryking__: has joined #RubyOnRails
[00:09:23] hammer065: has joined #RubyOnRails
[00:28:36] Tempesta: has joined #RubyOnRails
[00:32:04] Tempesta: has joined #RubyOnRails
[01:36:31] funnel: has joined #RubyOnRails
[02:00:25] arielserafini: has joined #RubyOnRails
[02:21:33] Saukk: has joined #RubyOnRails
[02:54:21] duderonomy: has joined #RubyOnRails
[03:11:09] hellekin: has joined #RubyOnRails
[03:12:00] Exuma: has joined #RubyOnRails
[03:22:31] GoldenBear_: has joined #RubyOnRails
[04:13:34] byteflam1: has joined #RubyOnRails
[04:35:58] quazimodo: has joined #RubyOnRails
[04:57:55] Exuma: has joined #RubyOnRails
[05:04:34] srinidhi: has joined #RubyOnRails
[05:33:39] za1b1tsu: has joined #RubyOnRails
[06:06:26] alxgsv: has joined #RubyOnRails
[06:23:01] srinidhi: has joined #RubyOnRails
[06:26:00] Exuma: has joined #RubyOnRails
[06:46:47] deepredsky: has joined #RubyOnRails
[06:50:52] lxsameer: has joined #RubyOnRails
[07:06:24] corellian: has joined #RubyOnRails
[07:13:12] duderonomy: has joined #RubyOnRails
[07:15:07] prestorium: has joined #RubyOnRails
[07:22:05] Sylario: has joined #RubyOnRails
[07:30:38] Ergo: has joined #RubyOnRails
[07:48:33] deepredsky: has joined #RubyOnRails
[07:49:38] kapilp: has joined #RubyOnRails
[07:55:54] mikecmpbll: has joined #RubyOnRails
[08:12:07] deepredsky: has joined #RubyOnRails
[08:16:10] za1b1tsu: has joined #RubyOnRails
[08:19:55] deepredsky: has joined #RubyOnRails
[08:36:40] deepredsky: has joined #RubyOnRails
[10:00:26] skryking: has joined #RubyOnRails
[11:02:11] za1b1tsu: has joined #RubyOnRails
[11:14:04] lankanmon: has joined #RubyOnRails
[11:18:58] tmm88: has joined #RubyOnRails
[12:05:54] prestorium: has joined #RubyOnRails
[12:43:04] GodFather: has joined #RubyOnRails
[12:44:16] GodFather_: has joined #RubyOnRails
[12:50:09] frewsxcv: has joined #RubyOnRails
[12:50:29] frewsxcv: what are all the types that can be returned from indexing into a ActionController::Parameters?
[13:03:15] dviola: has joined #RubyOnRails
[13:42:42] quazimodo: has joined #RubyOnRails
[13:50:44] beingjohnm: I'm trying to write my first integration tests and having an issue. Getting a "can't modify frozen String" error on a line that simply reads "visit "/"": https://gist.github.com/global001/608daee57dc9bbec39a498f725e7908b
[13:56:10] beingjohnm: I'm not familar with rspec or capybara but there is not a lot of code here to inspect. I was wondering if there was possibly a traceback missing due to this and that the error is somewhere else. On Ruby 2.4.4 if it matters.
[14:16:58] duderonomy: has joined #RubyOnRails
[14:23:19] conta1: has joined #RubyOnRails
[14:24:12] tdy: has joined #RubyOnRails
[14:28:27] srinidhi: has joined #RubyOnRails
[14:29:06] tmm88: has joined #RubyOnRails
[14:40:49] haxx0r: has joined #RubyOnRails
[14:43:12] Frem: has joined #RubyOnRails
[15:09:05] Ryctolagus: has joined #RubyOnRails
[15:20:34] Saukk: has joined #RubyOnRails
[15:57:39] deepredsky: has joined #RubyOnRails
[16:06:15] srinidhi: has joined #RubyOnRails
[16:44:17] byteflam1: has joined #RubyOnRails
[16:58:44] byteflam1: has joined #RubyOnRails
[16:59:34] Exuma: has joined #RubyOnRails
[17:01:52] conta1: has joined #RubyOnRails
[17:15:30] s2013: has joined #RubyOnRails
[17:20:36] ariedler: has joined #RubyOnRails
[17:36:00] alxgsv: has joined #RubyOnRails
[17:37:28] byteflam1: has joined #RubyOnRails
[17:38:02] snk: has joined #RubyOnRails
[17:41:59] srinidhi: has joined #RubyOnRails
[17:53:48] byteflam1: has joined #RubyOnRails
[18:08:12] s2013: has joined #RubyOnRails
[18:16:10] s00pcan: has joined #RubyOnRails
[18:29:34] byteflam1: has joined #RubyOnRails
[18:48:42] dviola: has joined #RubyOnRails
[19:04:23] byteflam1: has joined #RubyOnRails
[19:09:54] defsdoor: has joined #RubyOnRails
[19:27:53] duderonomy: has joined #RubyOnRails
[19:32:37] sameerynho: has joined #RubyOnRails
[19:45:32] CaptainBlackton: has joined #RubyOnRails
[19:49:10] CaptainBlackton: I'm trying to learn rails and am having trouble passing a parameter to a partial. It's an element of a nested array, so what I'm passing is also an array, but inside my partial, it keeps giving errors no matter how I format it. For example, it says, "undefined method `each' for :pages:Symbol"
[19:49:25] CaptainBlackton: Any idea why it won't let me run a for loop on my array here?
[19:50:10] CaptainBlackton: It seems like it's not recognizing it as an array once it gets inside of the partial, but I'm not sure why...
[19:52:11] Linell: Based off of the error it looks like you're actually passing a symbol, not an array
[19:52:40] Linell: https://github.com/pry/pry <- you can use this project to help figure it out pretty easily
[19:52:48] Linell: you just put a `binding.pry` where you want a breakpoint
[19:53:04] Linell: and then you have access to all of the variables you'd have when normally writing code
[19:53:15] CaptainBlackton: OK, I'll look at that. I was also about to send a little more information.
[19:53:24] Linell: What else do you have?
[19:54:02] CaptainBlackton: Well, I was just going to say that I create that array in my controller with a loop like this: @subjects.each_with_index do |subject, i|
[19:54:02] CaptainBlackton: @pages[i] = Page.where(:subject_id => subject.id).order(:position => :asc)
[19:55:08] CaptainBlackton: And in my most recent attempt, I am calling the partial in a loop like this: <% @subjects.each_with_index do |subject, i| %>
[19:55:09] CaptainBlackton: <%= link_to subject.name, { :controller => :form, :action => :_dropdown, locals: {:pages => @pages[i]} }, :remote => true %>
[19:56:08] CaptainBlackton: Then inside of my partial I am getting that error when I try to loop through that pages array on this line: <% :pages.each do |page| %>
[19:56:42] Linell: try to drop the colon from the .each call
[19:56:52] Linell: when you're passing it in, you're using that as a key to the has
[19:57:02] CaptainBlackton: Yes, I've tried without a colon, and many other way...
[19:57:11] Linell: what about @pages?
[19:57:28] CaptainBlackton: ":pages", "@pages", "pages", "#pages", etc.
[19:57:29] Linell: If that didn't/doesn't work, then a binding.pry should make it easy to debug.
[19:57:38] Linell: You can just do `ls` and it'll show all available vars
[19:58:03] CaptainBlackton: You mean do ls from terminal?
[19:58:13] Linell: from inside of the resulting breakpoint
[19:58:18] CaptainBlackton: BTW, I'm in Linux Mint running this in Firefox
[19:58:18] Linell: it's a pry command
[19:58:35] Linell: afaik that shouldn't matter too much
[19:59:00] CaptainBlackton: OK, I've never used a pry command. You mean I put that "binding.pry" line into my code right before the crash?
[20:00:12] CaptainBlackton: Oh, sorry, I just realized that was the link you sent above.
[20:00:17] CaptainBlackton: Let me look at that
[20:02:43] CaptainBlackton: Is that what they call a "Gem?" I'm just starting with Rails, and have never added anything to it before...
[20:03:20] CaptainBlackton: BTW, anyone here coming to FOSSCON this year?
[20:05:44] Linell: Yep, it's a gem!
[20:09:47] s2013: has joined #RubyOnRails
[20:18:15] Xiti: has joined #RubyOnRails
[20:47:45] mlt-: has joined #RubyOnRails
[20:48:04] gheegh: Hey all.. question. I have a problem where my sidekiq processes just seem to grow and grow and grow.. I've spent a week or so profiling, and i think the problem boils down to that we do retrievals, and when we get several big ones at once, the ruby process consumes more memory. .and never releases it. So, i'm wondering, has anyone ever FORKED in the middle of a sidekiq process (to wrap the retriever part), so i can then
[20:48:04] gheegh: reclaim that ram? Does that even make sense?
[20:57:13] byteflam1: has joined #RubyOnRails
[20:59:57] fryguy: has joined #RubyOnRails
[20:59:59] ascarter: has joined #RubyOnRails
[21:01:05] duderonomy: has joined #RubyOnRails
[21:08:04] GodFather: has joined #RubyOnRails
[21:08:08] GodFather_: has joined #RubyOnRails
[21:14:07] ascarter: has joined #RubyOnRails
[21:19:38] hive-mind: has joined #RubyOnRails
[21:22:05] ariedler: has joined #RubyOnRails
[22:03:45] ellcs: has joined #RubyOnRails
[22:04:43] ellcs: has joined #RubyOnRails
[22:39:14] gambl0re: has joined #RubyOnRails
[22:39:21] Exuma: has joined #RubyOnRails
[22:55:46] CaptainBlackton: Actually, before I get too embroiled in trying to see why my array isn't working, maybe I should take a step back and make sure I'm even doing what I want to...in general I'm trying to find out how to CRUD portions of my loaded page without having to reload the page each time. Is using partials even the way to do this or should I be trying in a different direction?
[22:57:24] CaptainBlackton: For example, I would like the user to be able to click on an "Add Content" link and have a text area appear in its place without having to reload everything on the page.
[23:15:39] Exuma: has joined #RubyOnRails