« Back to channel list

#RubyOnRails - 11 May 2017

« Back 1 day Forward 1 day »
[00:01:07] Pumukel: has joined #RubyOnRails
[00:05:42] dps: has joined #RubyOnRails
[00:07:06] mrgreenfur: has joined #RubyOnRails
[00:11:13] v|sh: has joined #RubyOnRails
[00:22:10] baash05: has joined #RubyOnRails
[00:28:41] quirkycoders: has joined #RubyOnRails
[00:30:27] baash05: Hey people... I've an rspec question
[00:31:42] baash05: I'm trying to handle this expect_any_instance_of(MyUser).to receive(:user_event).with('posted_comment')
[00:32:13] baash05: But MyUser receives a user_event with something before my test.
[00:33:13] baash05: Is there anyway to ignore messages with other data.
[00:35:28] gusrub: has joined #RubyOnRails
[00:38:45] baash05: Noone.. :(
[00:49:00] qmr: has joined #RubyOnRails
[00:49:50] qmr: thinking of going with Intel® Xeon® E5-2687W v4 3.0GHz,30M Cache,9.60GT/s QPI,Turbo,HT,12C/24T (2x) for our new rails servers. anyone have any other suggestions?
[00:59:54] fryguy: qmr: lol do some capacity and load testing and you tell us
[01:05:27] Pumukel: has joined #RubyOnRails
[01:33:46] apparition: has joined #RubyOnRails
[01:35:13] sevenseacat: has joined #RubyOnRails
[01:49:16] brent__: has joined #RubyOnRails
[01:51:23] bronson: has joined #RubyOnRails
[01:56:31] quirkycoders: has joined #RubyOnRails
[02:16:24] irishfromua: has joined #RubyOnRails
[02:17:33] tanuki: has joined #RubyOnRails
[02:18:33] quirkycoders: has joined #RubyOnRails
[02:22:02] brent__: has joined #RubyOnRails
[02:24:11] qmr: fryguy: how2do
[02:24:39] qmr: our current capacity is "over". almost all app servers almost always pegged on CPU
[02:24:44] duderonomy: has joined #RubyOnRails
[02:27:16] Jameser: has joined #RubyOnRails
[02:28:23] fryguy: well what's using the cpu
[02:33:36] Radar: qmr: Hi again.
[02:34:06] Radar: fryguy's right. You should investigate what's using all that CPU.
[02:34:24] qmr: ... ruby. I'm not a ruby guy, so that's about as far as I got
[02:34:25] Radar: Upgrading is all good-and-proper, but realistically you should be investigating CPU performance problems before upgrading the hardware.
[02:34:31] qmr: and our shit is too old for rbtrace
[02:34:40] Radar: I'm sure you can find a consultant who could consult on it.
[02:34:58] qmr: certainly welcome advice for digging in to get more specific
[02:35:25] Radar: qmr: my rate is $150/hr
[02:35:32] Radar: qmr: Where should I send the contract to (email address)?
[02:35:35] qmr: where are you located?
[02:35:42] Radar: Melbourne, AU
[02:35:52] Radar: I only consult remotely.
[02:36:02] qmr: experienced working remote? can you keep western hours as needed?
[02:36:10] Radar: Yes and no.
[02:36:27] Radar: I have availability coming up in July.
[02:37:13] qmr: what time is it there?
[02:39:20] qmr: well if you can do semi western hours for meetings, might work
[02:39:38] Radar: I would advise if that's going to be a problem to find someone in the US who can helpm you.
[02:39:50] qmr: PMd email address
[02:40:59] Radar: You might want to wait about 14 hours for SF to wake up if you want Americans.
[02:41:23] qmr: that's where we are
[02:43:03] Radar: Yeah, but it's 7:40pm there and the people who do this for a dayjob are probably offline right now.
[02:51:04] xall_: has joined #RubyOnRails
[02:56:42] wethu: has joined #RubyOnRails
[03:00:21] sandstrom: has joined #RubyOnRails
[03:04:42] quirkycoders: has joined #RubyOnRails
[03:07:42] Pumukel: has joined #RubyOnRails
[03:11:20] Trynemjoel: has joined #RubyOnRails
[03:15:52] Pumukel: has joined #RubyOnRails
[03:21:12] Pumukel: has joined #RubyOnRails
[03:27:00] Pumukel: has joined #RubyOnRails
[03:32:58] Pumukel: has joined #RubyOnRails
[03:36:56] HydroX|de: has joined #RubyOnRails
[03:38:41] Pumukel: has joined #RubyOnRails
[03:44:21] Pumukel: has joined #RubyOnRails
[03:50:18] Pumukel: has joined #RubyOnRails
[03:52:30] HydroX|de: has left #RubyOnRails: ()
[03:53:02] gusrub: has joined #RubyOnRails
[03:56:05] Pumukel: has joined #RubyOnRails
[04:00:20] quirkycoders: has joined #RubyOnRails
[04:01:56] Pumukel: has joined #RubyOnRails
[04:03:02] AntiSpamMeta_: has joined #RubyOnRails
[04:06:39] Tariq: has joined #RubyOnRails
[04:07:34] Pumukel: has joined #RubyOnRails
[04:07:54] juggler: has joined #RubyOnRails
[04:12:17] Tariq: Can Rails_Admin handle YAML serialization and de-serialization?
[04:12:43] Tariq: Or even any type of serialization? Where you just type in artibrary data and store it in a database?
[04:13:11] gusrub: has joined #RubyOnRails
[04:16:28] urkle: has joined #RubyOnRails
[04:16:56] apparition: has joined #RubyOnRails
[04:18:40] Tariq: How are you doing?
[04:19:50] Radar: Pretty good thanks for asking
[04:20:48] Tariq: You’re welcome.
[04:21:14] Tariq: I’m stuck right now figuring out the best way of dealing with a huge number of data columns that a user wants to type in
[04:21:29] Tariq: I thought about possibly using serialization, except I’m also using Rails_Admin
[04:21:34] Tariq: so I don’t know whether it can handle it
[04:22:16] Tariq: My original plan is to create a column for every single possible row that a user needs to fill in
[04:22:22] Tariq: and then hide those rows that the user doesn’t need to see
[04:22:27] Tariq: but I think that’s a bit excessive and absurd.
[04:22:38] Tariq: I can’t really think of a better solution though.
[04:22:43] Tariq: Do you have a good idea, Ra?
[04:25:23] Pumukel: has joined #RubyOnRails
[04:29:50] Tempesta: has joined #RubyOnRails
[04:30:44] Pumukel: has joined #RubyOnRails
[04:31:55] SteenJobs: has joined #RubyOnRails
[04:36:22] Pumukel: has joined #RubyOnRails
[04:36:30] urkle: has joined #RubyOnRails
[04:39:40] uks: has joined #RubyOnRails
[04:46:36] hndk: has joined #RubyOnRails
[04:47:37] Pumukel: has joined #RubyOnRails
[04:48:01] urkle: has joined #RubyOnRails
[04:54:39] ivanskie: has joined #RubyOnRails
[04:59:08] Pumukel: has joined #RubyOnRails
[05:01:32] urkle: has joined #RubyOnRails
[05:04:44] Pumukel: has joined #RubyOnRails
[05:08:24] PorcoRex: has joined #RubyOnRails
[05:08:30] ivanskie: has left #RubyOnRails: ()
[05:09:13] helpa: Please do not use active_admin, rails_admin or any other gems to build your admin interfaces. Instead, build it yourself. This will lead you to a safe path of understanding of the code, rather than to the Hell that is those gems.
[05:09:58] Radar: I have opinions.
[05:10:16] Tariq: And yeah, they seem pretty justified based on what I’m experiencing right now.
[05:11:30] Radar: What happens is this: 1) person sees rails_admin 2) thinks they have a simple idea which fits the intended use case 3) implements it... 4) but then requires customisations, which rails_admin can't handle 5) they come in here and cry about #4, 6) they end up building their own and they live happily ever after.
[05:12:18] PorcoRex: Tariq, opinions are like opinions that people have. Some people are you and you have opinions and some opinions come from other people with opinions.
[05:12:35] PorcoRex: Tariq, did that resolve your problem?
[05:12:47] hndk: has joined #RubyOnRails
[05:12:53] Tariq: Well, I think it resolves the bigger problem. As for the smaller problem, I do know how to customize rails_admin
[05:12:55] Tariq: but it’s horrible.
[05:13:07] Tariq: Next time, I’m not using Rails_Admin.
[05:13:26] Tariq: Thank you PorcoRex and Ra.
[05:14:12] PorcoRex: Tariq, you're welcome. Hopefully you have an alternative to Rails_Admin?
[05:15:50] Tariq: I don’t really have one right now. My solution will be to write custom javascript to handle all the edge cases.
[05:16:25] Tariq: Rails_Admin does have the ability to render partials based on certain conditions, so if I detect X, I’ll load up a partial that handles that specific condition
[05:17:15] Tariq: It’s just a horrible hacky solution. I’ll try to find an alternative after this project is done.
[05:17:28] PorcoRex: Ok, chill. Why doesn't RailsAdmin or whatever even work or stuff?
[05:18:08] Tariq: Well, it does work.
[05:18:28] PorcoRex: Ohhh. So it DOES work.
[05:18:36] Tariq: I think the main complaint is that it works but it’s hacky.
[05:18:47] PorcoRex: You just need for it to do something slightly different.
[05:18:47] Tariq: As in, I have to do some stuff to customize it.
[05:18:58] Tariq: that seems very convoluted and doesn’t sound like a good use of my time.
[05:19:38] PorcoRex: Do you think a better use of your time would be to write it from scratch? I highly doubt it.
[05:19:49] Tariq: It’s not. That’s why I’m going to wait until after this project.
[05:20:11] Tariq: When I’m done with this project, I’m going to start exploring alternatives so if I get another job involving an admin dashboard, I’m ready.
[05:20:58] PorcoRex: So, do you need any more info right now?
[05:21:06] Tariq: No, I don’t. Thanks for your help.
[05:21:09] Tariq: I really apperciated it!
[05:21:24] Pumukel: has joined #RubyOnRails
[05:21:32] PorcoRex: Tariq, don't thank me, thank the kind people at #RubyOnRails.
[05:21:40] PorcoRex: They are the real heroes.
[05:21:42] Tariq: Oh yeah, er, thank you all as well.
[05:21:49] Tariq: I have to go. Bye.
[05:22:08] Tariq: has left #RubyOnRails: ()
[05:27:22] Pumukel: has joined #RubyOnRails
[05:42:59] brent__: has joined #RubyOnRails
[05:46:14] User458764: has joined #RubyOnRails
[05:46:25] Jameser: has joined #RubyOnRails
[05:53:21] bronson: has joined #RubyOnRails
[06:14:20] laekur: has joined #RubyOnRails
[06:15:33] dionysus69: has joined #RubyOnRails
[06:19:01] cam27: has joined #RubyOnRails
[06:23:11] srinidhi: has joined #RubyOnRails
[06:35:30] patarr: has joined #RubyOnRails
[06:37:58] arBmind: has joined #RubyOnRails
[06:40:31] Jameser: has joined #RubyOnRails
[06:43:57] conta: has joined #RubyOnRails
[07:05:36] wethu: has joined #RubyOnRails
[07:31:52] Arkentias: has joined #RubyOnRails
[07:34:03] sandstrom: has joined #RubyOnRails
[07:36:46] Pumukel: has joined #RubyOnRails
[07:40:15] Macaveli: has joined #RubyOnRails
[07:41:33] marr: has joined #RubyOnRails
[07:43:34] brent__: has joined #RubyOnRails
[07:48:25] tamsuiboy: has joined #RubyOnRails
[07:50:44] arBmind: has joined #RubyOnRails
[07:54:15] bronson: has joined #RubyOnRails
[07:54:39] dionysus69: has joined #RubyOnRails
[07:58:44] User458764: has joined #RubyOnRails
[07:58:52] mikecmpbll: has joined #RubyOnRails
[08:03:44] v|sh: has joined #RubyOnRails
[08:05:43] conta: has joined #RubyOnRails
[08:17:20] mahloun: has joined #RubyOnRails
[08:36:23] patarr: has joined #RubyOnRails
[08:37:44] Pumukel: has joined #RubyOnRails
[08:54:54] v|sh: has joined #RubyOnRails
[08:59:24] Silox|: has joined #RubyOnRails
[09:03:48] ur5us: has joined #RubyOnRails
[09:05:45] lxsameer: has joined #RubyOnRails
[09:09:52] railsForDaiz: has joined #RubyOnRails
[09:15:47] gregf_: has joined #RubyOnRails
[09:23:51] xall_: has joined #RubyOnRails
[09:40:07] Pumukel: has joined #RubyOnRails
[09:43:33] patarr: has joined #RubyOnRails
[09:46:33] railsForDaiz: has joined #RubyOnRails
[09:56:12] bronson: has joined #RubyOnRails
[09:59:57] craysiii: has joined #RubyOnRails
[10:05:27] Pumukel: has joined #RubyOnRails
[10:08:30] harfangk: has joined #RubyOnRails
[10:12:03] shotbug: has joined #RubyOnRails
[10:14:59] v|sh: has joined #RubyOnRails
[10:17:47] ferr: has joined #RubyOnRails
[10:27:43] quirkycoders: has joined #RubyOnRails
[10:28:46] User458764: has joined #RubyOnRails
[10:33:32] pahnin: has joined #RubyOnRails
[10:42:48] mmun: has joined #RubyOnRails
[11:14:15] arBmind: has joined #RubyOnRails
[11:34:28] srinidhi: has joined #RubyOnRails
[11:34:32] HoierM: has joined #RubyOnRails
[11:39:33] User458764: has joined #RubyOnRails
[11:41:16] quirkycoders: has joined #RubyOnRails
[11:46:12] pLaTo0n: has joined #RubyOnRails
[11:56:59] bronson: has joined #RubyOnRails
[12:02:05] Pumukel: has joined #RubyOnRails
[12:09:42] jarr0dsz: has joined #RubyOnRails
[12:10:03] jarr0dsz: hello everyone, does anyone know how I can do a array[index] in a each with index loop?
[12:10:21] jarr0dsz: i want to get elements from array but array[index] seems invalid where array[0], array[1] works?
[12:10:39] waseem_: has joined #RubyOnRails
[12:11:01] matthewd: jarr0dsz: Is it giving you an error that might suggest what's wrong?
[12:11:33] jarr0dsz: no array[0] gives no result no error either
[12:11:40] jarr0dsz: sorry i mean array[index]
[12:11:46] matthewd: (also, why would you want to do that? You already get the value of array[index] in the block.)
[12:14:02] jarr0dsz: has joined #RubyOnRails
[12:14:05] jarr0dsz: like https://gist.github.com/anonymous/d68f1bc028be2b58f89cd224b75601d9
[12:14:28] jarr0dsz: the array[index] yield no output where array[0] works so how could I use the index instead of the integer?
[12:14:48] matthewd: Why aren't you using item?
[12:15:07] jarr0dsz: im not sure matthewd array item?
[12:15:17] matthewd: Something is confused here
[12:15:23] matthewd: What does array_row look like?
[12:16:39] jxf: has joined #RubyOnRails
[12:16:49] quirkycoders: has joined #RubyOnRails
[12:17:12] jarr0dsz: matthewd something like https://gist.github.com/anonymous/186825ff135c47d7b1ad67034c5cde98
[12:17:40] jarr0dsz: if there is a better way, i basically POST data from a frontend grid and then need to read it back in reading the array
[12:17:56] matthewd: Right, so array_row[0] is an array
[12:18:06] jarr0dsz: im building he array like so https://gist.github.com/anonymous/1b00a2d64fc542b33deea0cc64c2e114
[12:18:36] jarr0dsz: yes for each row, starting with 0 and incrementing
[12:18:46] matthewd: That each_with_index usage is wrong too
[12:20:18] cam27: has joined #RubyOnRails
[12:21:26] jarr0dsz: like so https://gist.github.com/anonymous/30717af51c259a3c839077ed9b118b6c ?
[12:22:50] matthewd: Yes, that looks better... though you're not using index, so you could just use regular each
[12:29:23] pupsicle: has joined #RubyOnRails
[12:34:02] jarr0dsz: thank you matthewd would there also be a way to generate a unique id for use in the db? normally id autoincrements
[12:34:17] jarr0dsz: now i need something similar for the id, request_id <= have unique id here
[12:34:25] robotmay: has joined #RubyOnRails
[12:39:48] hashrocket: has joined #RubyOnRails
[12:43:20] chouhoulis: has joined #RubyOnRails
[12:48:43] dnyy: has joined #RubyOnRails
[13:00:09] leslie: has joined #RubyOnRails
[13:02:36] dionysus69: what do I do if I want to use bootstrap without jquery? since 5.1 dropped jquery by default, I want to try rails development without jquery... any suggestions?
[13:07:10] Jameser: has joined #RubyOnRails
[13:12:25] fmcgeough: has joined #RubyOnRails
[13:14:01] nir0: has joined #RubyOnRails
[13:14:23] nir0: hello guys, where can i find method main_app?
[13:14:44] Takumo: has joined #RubyOnRails
[13:14:53] nir0: what should i include to make this helper visible, for example, in console
[13:15:11] nir0: or particullary in cells
[13:15:42] nir0: it is accessible as helper in views and that's it
[13:16:10] bronson: has joined #RubyOnRails
[13:16:48] matthewd: nir0: You can answer the first question with `method(:main_app).source_location` from somewhere that can see it
[13:17:05] nir0: matthewd: thank you!
[13:17:23] matthewd: But I have no idea how cells and engines would interact, sorry
[13:18:23] nir0: it says actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb", 434
[13:19:41] Jameser: has joined #RubyOnRails
[13:20:29] nir0: cannot find it there
[13:20:54] nir0: ActionDispatch::Routing::RouteSet.main_app - no such method
[13:21:31] matthewd: Yeah, that's.. not how methods work
[13:22:14] ome: has joined #RubyOnRails
[13:27:53] rodrigovlds: has joined #RubyOnRails
[13:30:47] DLSteve_: has joined #RubyOnRails
[13:31:34] wethu: has joined #RubyOnRails
[13:33:16] rodrigovlds_: has joined #RubyOnRails
[13:42:07] Jameser: has joined #RubyOnRails
[13:50:15] quirkycoders: has joined #RubyOnRails
[13:55:05] Jameser: has joined #RubyOnRails
[13:55:11] User458764: has joined #RubyOnRails
[13:57:22] kwd: has joined #RubyOnRails
[14:01:26] Jameser: has joined #RubyOnRails
[14:05:28] Pumukel: has joined #RubyOnRails
[14:09:21] ResidentBiscuit: has joined #RubyOnRails
[14:11:04] Rodya_: has joined #RubyOnRails
[14:11:45] loechel: has joined #RubyOnRails
[14:17:13] Jameser: has joined #RubyOnRails
[14:23:29] Jameser: has joined #RubyOnRails
[14:28:28] User458764: has joined #RubyOnRails
[14:33:58] cam27: has joined #RubyOnRails
[14:35:11] Silox|: has joined #RubyOnRails
[14:35:53] xall_: has joined #RubyOnRails
[14:38:00] bronson: has joined #RubyOnRails
[14:49:55] francuz: has joined #RubyOnRails
[14:54:58] pupsicle: has joined #RubyOnRails
[15:00:15] xall_: has joined #RubyOnRails
[15:01:52] Silox|: has joined #RubyOnRails
[15:02:23] irishfromua: has joined #RubyOnRails
[15:11:31] bronson: has joined #RubyOnRails
[15:13:15] Rodya_: has joined #RubyOnRails
[15:14:53] choke: has joined #RubyOnRails
[15:20:05] rodrigovlds_: has joined #RubyOnRails
[15:22:09] cek: has joined #RubyOnRails
[15:22:41] cek: getting ActiveRecord::StatementInvalid: when I Model.where('attr > 123') . When attr taken into backticks, it works. WTF
[15:24:23] irishfromua: has joined #RubyOnRails
[15:24:46] matthewd: cek: Your attribute name is probably a MySQL keyword. But we can't tell, because you chose not to share it.
[15:25:12] cek: yes, indeed. thanks.
[15:28:01] cek: has left #RubyOnRails: ()
[15:31:30] ascarter: has joined #RubyOnRails
[15:38:30] xall_: has joined #RubyOnRails
[15:38:33] duderonomy: has joined #RubyOnRails
[15:43:20] vedu: matthewd: nice catch :)
[15:47:55] dps: has joined #RubyOnRails
[15:51:02] [Butch]: has joined #RubyOnRails
[15:51:15] dps: has joined #RubyOnRails
[15:55:27] quirkycoders: has joined #RubyOnRails
[16:01:04] wsmoak: has joined #RubyOnRails
[16:07:04] bronson: has joined #RubyOnRails
[16:08:52] laekur: has joined #RubyOnRails
[16:10:02] irishfromua: has joined #RubyOnRails
[16:10:29] srinidhi: has joined #RubyOnRails
[16:12:37] soahccc: Can someone please confirm my sanity? What am I missing here? https://gist.github.com/2called-chaos/5ecc8d796bb94a59ca18c9c2cefa964b
[16:14:41] soahccc: what can possibly be wrong with a string that #strip won't strip?
[16:14:56] ovaltine: 0 index instead of 1 index? i think strip only strips on the edges of a string perhaps
[16:14:58] patarr: has joined #RubyOnRails
[16:15:11] soahccc: well 0 index is ""
[16:15:31] soahccc: 0 is before first character
[16:15:43] ovaltine: not in ruby i dont think
[16:15:51] ovaltine: in c or matlab maybe
[16:15:56] soahccc: data.encoding is also utf-8 so I don't understand why the bytes are different
[16:16:19] ovaltine: irb(main):001:0> "hello"[0]
[16:17:37] soahccc: hmm you're right, there's something indeed but it's not showing
[16:17:52] gusrub: has joined #RubyOnRails
[16:18:17] baweaver: Ruby is 0 index start on everything
[16:18:22] baweaver: there's no "before"
[16:18:44] baweaver: and negative indexes just loop back: arr[-1] == arr[arr.size]
[16:18:50] dps: has joined #RubyOnRails
[16:19:17] soahccc: baweaver: I just assumed it because it returned "" but it's a 3-byte something which doesn't show in my terminal
[16:19:24] Papierkorb: arr[-1] == arr[arr.size-1] *
[16:19:38] baweaver: ACTION goes to get coffee
[16:19:38] soahccc: actually when I think about it I knew that is was wrong :< so blame on me
[16:19:43] baweaver: !cookie Papierkorb
[16:19:43] helpa: Congratulations! You have earned a delicious, fresh-made cookie. :)
[16:21:49] soahccc: I'm parsing a file that is so messed up with binary data that I have to find a specific thing and then back/forward seek from there... And there is garbage all over the place so yeah I would like a cookie as well ;)
[16:26:22] dps: has joined #RubyOnRails
[16:53:38] srinidhi: has joined #RubyOnRails
[17:00:13] patarr: has joined #RubyOnRails
[17:00:33] railsForDaiz: has joined #RubyOnRails
[17:01:46] defsdoor: has joined #RubyOnRails
[17:03:38] xco: has joined #RubyOnRails
[17:05:05] xco: hi my routes.rb looks like this https://gist.github.com/siaw23/a4757ed7c98533df85c99d411c7d5af5#file-admin-rb-L5 i just added line 5 but my url looks like this `index_all_admin_similar_object_stats` while other urls just start with ‘admin’, like ‘admin_something” how do i make “index_all” go to the end of the route name?
[17:11:57] User458764: has joined #RubyOnRails
[17:12:59] cagomez: has joined #RubyOnRails
[17:21:38] akshat: has joined #RubyOnRails
[17:23:01] duderonomy: has joined #RubyOnRails
[17:24:32] bronson: has joined #RubyOnRails
[17:26:34] HoierM: has joined #RubyOnRails
[17:27:51] User458764: has joined #RubyOnRails
[17:32:37] fernandomm: has joined #RubyOnRails
[17:33:29] ascarter: has joined #RubyOnRails
[17:41:08] cam27: has joined #RubyOnRails
[17:44:21] fryguy: has joined #RubyOnRails
[17:50:28] quirkycoders: has joined #RubyOnRails
[17:56:18] bronson: has joined #RubyOnRails
[17:59:08] dionysus69: has joined #RubyOnRails
[17:59:19] quirkycoders: has joined #RubyOnRails
[18:11:47] railsForDaiz: has joined #RubyOnRails
[18:13:55] chouhoulis: has joined #RubyOnRails
[18:20:38] sandstrom: has joined #RubyOnRails
[18:25:00] mostlybadfly: has joined #RubyOnRails
[18:27:19] User458764: has joined #RubyOnRails
[18:34:35] amritoit: has joined #RubyOnRails
[18:43:34] ekinmur: has joined #RubyOnRails
[18:44:10] quirkycoders: has joined #RubyOnRails
[18:45:58] cagomez: what is the name of a variable when it is passed to a scope?
[18:47:59] fl4sh_: has joined #RubyOnRails
[18:48:58] hobodave: has joined #RubyOnRails
[18:50:19] das3in: has joined #RubyOnRails
[18:51:02] railsForDaiz: has joined #RubyOnRails
[18:58:55] ascarter: has joined #RubyOnRails
[19:00:45] das3in: I'm having trouble getting my routes together. Here's a gist https://gist.github.com/das3in/1900d27828ed1c47876cf48f03dfd3e0 there's some weird nesting stuff I wnat to do
[19:01:34] pupsicle: has joined #RubyOnRails
[19:06:28] choke: has joined #RubyOnRails
[19:11:25] otherj: has joined #RubyOnRails
[19:12:13] cagomez: has joined #RubyOnRails
[19:14:17] Macaveli: has joined #RubyOnRails
[19:24:20] ekinmur: has joined #RubyOnRails
[19:28:53] laekur: has joined #RubyOnRails
[19:31:43] Alayde: has joined #RubyOnRails
[19:33:11] cagomez: has joined #RubyOnRails
[19:34:28] fernandomm: has joined #RubyOnRails
[19:34:31] lxsameer: has joined #RubyOnRails
[19:37:49] cagomez: has joined #RubyOnRails
[19:39:50] mikecmpbll: has joined #RubyOnRails
[19:39:59] quirkycoders: has joined #RubyOnRails
[19:40:19] quirkycoders: has joined #RubyOnRails
[19:46:31] xco: has joined #RubyOnRails
[19:54:14] patarr: has joined #RubyOnRails
[19:58:05] bronson: has joined #RubyOnRails
[20:01:29] xco: has joined #RubyOnRails
[20:04:05] chouhoulis: has joined #RubyOnRails
[20:06:08] Rodya_: has joined #RubyOnRails
[20:06:21] VeryBewitching: has joined #RubyOnRails
[20:07:33] xco: has joined #RubyOnRails
[20:14:27] quirkycoders: has joined #RubyOnRails
[20:14:56] Jayson_Virissimo: has joined #RubyOnRails
[20:16:47] thecharacterman: has joined #RubyOnRails
[20:17:59] Macaveli: has joined #RubyOnRails
[20:19:34] thecharacterman: I have a question with ActiveRecord
[20:20:34] dionysus69: just ask thecharacterman
[20:21:14] ascarter: has joined #RubyOnRails
[20:21:20] thecharacterman: I have a many to many through relationship
[20:21:52] thecharacterman: i did it good, now i have a very basic question ,how i query it
[20:22:03] thecharacterman: I will give you an example
[20:22:25] thecharacterman: I have a table Groups and another table called Concerts
[20:22:44] railsForDaiz: has joined #RubyOnRails
[20:23:44] thecharacterman: a group/band can play in one o more concerts
[20:23:58] thecharacterman: and concert can be played for one or more band
[20:24:04] thecharacterman: i created a third table
[20:24:39] thecharacterman: groupsxconcerts
[20:25:51] thecharacterman: I want to list all the names and not the ID's in the table groupsxconcerts
[20:26:04] thecharacterman: I don't know how to query it with active record
[20:26:49] dionysus69: just do groupsxconcert.all that returns an active record collection, you can treat it as an array
[20:26:50] beingjohnm: I'm using sidekiq on heroku. Does each sidekiq queue need its own worker dyno?
[20:26:53] thecharacterman: or some website what can teach me that would good
[20:27:41] thecharacterman: yes if i do groupsxconcert.all , obviousliy it will return only de IDS and the band names
[20:27:42] dionysus69: thecharacterman: maybe something like this http://stackoverflow.com/questions/16906922/iterate-over-array-of-objects-and-return-attributes
[20:27:53] thecharacterman: is must be a join i guess
[20:28:11] thecharacterman: it won't return the band and concert names
[20:28:31] dionysus69: you want both band and concert names returned from groupsxconcert?
[20:29:49] dionysus69: groupsxconcert has many concerts and has many groups
[20:30:13] thecharacterman: belongs to concerts and belongs to groups, yes
[20:30:39] dionysus69: groupsxconcert.concerts will return concerts groupsxconcert.groups will return groups, use map array enum in each case and you would just get names for both cases without IDs
[20:31:19] thecharacterman: I'm working with the rails console at the moment
[20:31:23] dionysus69: i dont understand what exactly you are trying to get
[20:31:42] thecharacterman: dionysus69, I think you understood a lot already
[20:32:03] thecharacterman: that's the basic operation wit M:N association
[20:32:12] thecharacterman: I'm sure is has to be basic
[20:32:35] arup_r: has joined #RubyOnRails
[20:33:25] thecharacterman: but I would like to see the result in the rails console
[20:33:26] arup_r: Is there anyway to show the actual html content while using mail_to? Right now the body shows the content with HTML. :) Any help https://gist.github.com/aruprakshit/042763fe99e15866bd4c827a4726be7a ?
[20:35:03] thecharacterman: If i do groupsxconcerts.groups, it says the methos doenst exist
[20:35:19] thecharacterman: that's not the way to call it
[20:35:43] thecharacterman: If I do Groupsxconcerts.all it works fine
[20:35:57] thecharacterman: but im not doing any join here
[20:38:00] dionysus69: ok my bad try this Groupsxconcerts.all.map { |group| group.name }
[20:38:09] dionysus69: havent played with active record in a while xD
[20:38:47] dionysus69: ok that wont work either, you need to just trial and error around something like that
[20:38:54] dionysus69: i am not in a console atm
[20:42:35] Aherin: has joined #RubyOnRails
[20:44:11] gambl0re: has joined #RubyOnRails
[20:58:42] bronson: has joined #RubyOnRails
[21:01:04] ascarter: has joined #RubyOnRails
[21:04:27] choke: has joined #RubyOnRails
[21:07:19] dps: has joined #RubyOnRails
[21:09:30] quazimodo: has joined #RubyOnRails
[21:11:02] thecharacterman: dionysus69, thank you very much anyway
[21:12:06] baweaver: You want pluck
[21:12:20] baweaver: Also probably better to use conventions: GroupConcerts
[21:13:10] baweaver: It should be a join table though
[21:13:18] baweaver: because it's the union of a Group and a Concert
[21:13:40] baweaver: so it should `belong_to` both a Group and a Concert
[21:14:14] baweaver: In which case you may want `select` instead
[21:17:29] thecharacterman: baweaver, GrupoConcets it is join table
[21:17:59] baweaver: and you only want names for.....?
[21:18:34] baweaver: Like all the group names for a concert?
[21:18:40] thecharacterman: i want to list groupconcert table but in onw way i can read, because this table only have ID
[21:18:45] quirkycoders: has joined #RubyOnRails
[21:18:54] thecharacterman: do you undertand what i mean?
[21:19:11] baweaver: GroupConcert would have a group_id and a concert_id, yeah
[21:19:23] baweaver: so you want the concert name and group name from there then?
[21:19:53] thecharacterman: so, how i can see the name of groups/bands who played in one concert?
[21:20:02] quirkycoders: has joined #RubyOnRails
[21:20:11] baweaver: Those are two different questions then
[21:20:16] baweaver: shall we start with the first?
[21:20:35] dps: has joined #RubyOnRails
[21:20:49] thecharacterman: i already migrated everything
[21:21:06] thecharacterman: so my tables are fine to be queried
[21:21:26] baweaver: In the first case you want to use `select` to select those columns from your two joined tables there
[21:21:49] baweaver: In the second case you want to do basically the same
[21:22:29] baweaver: See if I can find a good example of that one
[21:25:18] thecharacterman: it it helps, my association is exactly like this --> http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association
[21:27:23] thecharacterman: the only thing I want is to list all the concerts and groups by name or anything else which are inside GroupsConcert table
[21:28:07] thecharacterman: you understand me if I do GroupConcert.all it list the foregin keys only
[21:28:49] assembledbits: has joined #RubyOnRails
[21:28:54] thecharacterman: with oracle it easy doing a join, but with active record no idea , but im sure it should be easier
[21:29:40] assembledbits: New to Rails.. looking to get values from the Enrollments table into the Order decorator.. help?
[21:31:42] assembledbits: https://pastebin.com/AcTHCsuz
[21:32:02] assembledbits: ^^ That is what I am editing, but I believe I need to define an "enrollment_expiry_date"
[21:52:40] arBmind: has joined #RubyOnRails
[21:59:56] quirkycoders: has joined #RubyOnRails
[22:00:27] quirkycoders: has joined #RubyOnRails
[22:08:46] sandstrom: has joined #RubyOnRails
[22:20:17] tercenya: has joined #RubyOnRails
[22:29:31] jane_booty_doe: has joined #RubyOnRails
[22:30:46] Radar: GOOD MORNING
[22:32:00] Radar: AssembledBits: Where is enrollment being loaded in the controller?
[22:32:11] Radar: AssembledBits: !rule3.1
[22:32:11] helpa: AssembledBits: If you're using an older version of Ruby or Rails, please tell us.
[22:32:20] Radar: ACTION will wake up in about 6 hours
[22:32:27] helpa: Do not use any service that is not Pastie or Gist to post code. Pastebin, for example has a tiny font and it has ads on it which cause the page to load slowly. Other paste services generally look like crap.
[22:33:12] Radar: AssembledBits: put another way: how does an enrollment link to orders, users, or products?
[22:46:13] gusrub: has joined #RubyOnRails
[22:51:08] railsForDaiz: has joined #RubyOnRails
[22:53:26] Wolland: has joined #RubyOnRails
[22:59:24] bronson: has joined #RubyOnRails
[23:01:12] Trynemjoel: has joined #RubyOnRails
[23:07:35] railsForDaiz: has joined #RubyOnRails
[23:13:28] thecharacterman: baweaver, dionysus69 . Actually I found some solution: Group.select('groups.name, concerts.id').joins(:GroupConcerts, :concerts)
[23:14:27] thecharacterman: the only thing if i request concert.tittle instead concerts.id it do not return antyhing, only the group name
[23:15:01] thecharacterman: i think it is beacuse concert_id is the foreign key in GroupoConcert
[23:15:50] HoierM: has joined #RubyOnRails
[23:17:13] HoierM: has joined #RubyOnRails
[23:20:40] SteenJobs: has joined #RubyOnRails
[23:21:37] SteenJobs: has joined #RubyOnRails
[23:23:22] sevenseacat: has joined #RubyOnRails
[23:36:13] fourcolors: has joined #RubyOnRails
[23:38:57] Aeyris: has joined #RubyOnRails
[23:45:51] quirkycoders: has joined #RubyOnRails
[23:49:06] GodFather: has joined #RubyOnRails
[23:53:40] SteenJobs: has joined #RubyOnRails
[23:55:25] DLSteve: has joined #RubyOnRails
[23:58:47] aajjbb: has joined #RubyOnRails