« Back to channel list

#RubyOnRails - 27 May 2016

« Back 1 day Forward 1 day »
[00:00:41] Darmani: choke: lol
[00:00:53] Darmani: You are literally speaking Chinese right now.
[00:01:01] Darmani: Like... That's what I got out of what you wrote =p lol
[00:02:40] darwingr: has joined #RubyOnRails
[00:08:01] Darmani: alright... fuck this. I'm gonna go watch that new x men movie.
[00:08:13] Darmani: Maybe I'll come back and find some insight into how to solve this stupid problem.
[00:08:17] Darmani: ACTION sighs
[00:08:43] triptec: has joined #RubyOnRails
[00:10:15] bronson: has joined #RubyOnRails
[00:10:17] moeabdol: has joined #RubyOnRails
[00:15:31] ebbflowgo: has joined #RubyOnRails
[00:18:42] jancel: has joined #RubyOnRails
[00:18:44] owenjones: has joined #RubyOnRails
[00:23:29] jeanlinux: has joined #RubyOnRails
[00:24:49] jancel: has joined #RubyOnRails
[00:25:51] arBmind: has joined #RubyOnRails
[00:27:54] LBRapid: has joined #RubyOnRails
[00:27:59] FooBarWidget: has joined #RubyOnRails
[00:29:03] Guest38989: has joined #RubyOnRails
[00:29:37] jmignault: has left #RubyOnRails: ("Killed buffer")
[00:30:28] Alazoral: has joined #RubyOnRails
[00:31:21] chipotle: has joined #RubyOnRails
[00:44:00] refinerysource: has joined #RubyOnRails
[00:44:19] Inside: has joined #RubyOnRails
[00:47:55] Cervajz: has joined #RubyOnRails
[00:48:33] Ropeney: has joined #RubyOnRails
[00:48:54] JoshGlzBrk: has joined #RubyOnRails
[00:52:18] bronson: has joined #RubyOnRails
[00:52:51] crystal77: has joined #RubyOnRails
[00:56:13] kies: has joined #RubyOnRails
[01:02:24] djbkd: has joined #RubyOnRails
[01:02:46] triptec: has joined #RubyOnRails
[01:04:36] braincrash: has joined #RubyOnRails
[01:05:09] aegis3121: has joined #RubyOnRails
[01:11:10] benlieb: has joined #RubyOnRails
[01:11:54] djbkd: has joined #RubyOnRails
[01:14:15] roamingdog: has joined #RubyOnRails
[01:17:56] JoshGlzBrk: has joined #RubyOnRails
[01:20:58] hcnewsom: has joined #RubyOnRails
[01:21:04] yfeldblum: has joined #RubyOnRails
[01:22:01] JoshGlzBrk: has joined #RubyOnRails
[01:22:23] yfeldblum: has joined #RubyOnRails
[01:38:14] circ-user-J8Qqy: has joined #RubyOnRails
[01:44:04] refinerysource: has joined #RubyOnRails
[01:45:32] rickmasta: has joined #RubyOnRails
[01:45:33] JoshGlzBrk: has joined #RubyOnRails
[01:49:16] pawnbox: has joined #RubyOnRails
[01:49:39] allcentury: has joined #RubyOnRails
[01:49:49] k1t: has joined #RubyOnRails
[01:50:18] sevenseacat: has joined #RubyOnRails
[01:51:40] aegis3121: has joined #RubyOnRails
[01:53:06] bronson: has joined #RubyOnRails
[01:55:27] JoshGlzBrk: has joined #RubyOnRails
[01:56:11] arBmind1: has joined #RubyOnRails
[01:56:52] triptec: has joined #RubyOnRails
[01:59:43] cd83x: has joined #RubyOnRails
[02:03:51] gfvcastro: has joined #RubyOnRails
[02:04:04] ensyde: has joined #RubyOnRails
[02:12:10] qejk: has joined #RubyOnRails
[02:13:58] jancel: has joined #RubyOnRails
[02:14:28] xall_: has joined #RubyOnRails
[02:15:19] dopamean_: has joined #RubyOnRails
[02:20:03] davee_: has joined #RubyOnRails
[02:24:00] Dios: has joined #RubyOnRails
[02:24:01] beilabs: has joined #RubyOnRails
[02:26:25] arBmind: has joined #RubyOnRails
[02:31:00] Dios: has joined #RubyOnRails
[02:35:34] ebbflowgo: has joined #RubyOnRails
[02:35:51] ebbflowgo: has joined #RubyOnRails
[02:38:31] datanoise: has joined #RubyOnRails
[02:42:03] LastWhisper____: has joined #RubyOnRails
[02:45:13] chipotle: has joined #RubyOnRails
[02:48:36] B1n4r10: has joined #RubyOnRails
[02:49:17] linocisco: has joined #RubyOnRails
[02:50:54] triptec: has joined #RubyOnRails
[02:51:51] rogue_koder: has joined #RubyOnRails
[02:55:14] cogsbox: has joined #RubyOnRails
[02:56:58] cogsbox: Hello World :) I am building a bootstrap card only for posts where chapter == true. How would I go about doing that? https://gist.github.com/cogsbox/2b72edfa9be8dd95a4b22cf009d4636d
[02:58:39] IT-Manager_: has joined #RubyOnRails
[03:00:52] benlieb: has joined #RubyOnRails
[03:01:34] IT-Manager_: has joined #RubyOnRails
[03:01:53] idefine: has joined #RubyOnRails
[03:05:52] k1t_: has joined #RubyOnRails
[03:08:14] Dios: has joined #RubyOnRails
[03:09:32] roamingdog: cogsbox: not sure what you need, but how about @posts = Post.where(chapter: true)
[03:10:07] syndikate: has joined #RubyOnRails
[03:10:57] cogsbox: thanks roamingdog I will try it.
[03:11:56] Skelz0r: has joined #RubyOnRails
[03:14:50] emachnic: has joined #RubyOnRails
[03:17:45] noobRORDev_: has joined #RubyOnRails
[03:18:41] IT-Manager_: has left #RubyOnRails: ("Leaving")
[03:18:55] linocisco: has joined #RubyOnRails
[03:19:14] linocisco: hi what is cheap and good rails hosting rather than Heroku?
[03:20:14] braincrash: has joined #RubyOnRails
[03:20:21] Radar: linocisco: Digital Ocean
[03:20:49] k3rn31: has joined #RubyOnRails
[03:21:18] benlieb: has joined #RubyOnRails
[03:21:29] aadam21: has joined #RubyOnRails
[03:22:44] rickmasta: has joined #RubyOnRails
[03:23:27] sypheren: has joined #RubyOnRails
[03:25:30] LastWhisper____: has joined #RubyOnRails
[03:26:02] ur5us: has joined #RubyOnRails
[03:26:38] linocisco: Radar, thanks. only this one? another choice?
[03:26:53] Radar: linocisco: Linode.
[03:27:34] B1n4r10: has joined #RubyOnRails
[03:30:05] Ropeney: AWS, Google, Azure, google search
[03:31:43] null__: vexxhost is cheap
[03:32:12] null__: they promise 100% SLA but don't take that to mean that they have no downtime
[03:32:20] null__: they are an openstack host
[03:33:40] chipotle: has joined #RubyOnRails
[03:34:14] oweff: has joined #RubyOnRails
[03:34:35] hous: has joined #RubyOnRails
[03:35:10] DoctorMonocular: has joined #RubyOnRails
[03:35:37] rafaelfranca: has joined #RubyOnRails
[03:36:02] Ropeney: noobRORDev_ you use openshift?
[03:36:47] noobRORDev_: yes, but Just the free tier
[03:37:42] Ropeney: was just reading that, I like the idea of free
[03:41:20] k1t: has joined #RubyOnRails
[03:44:28] beilabs: has joined #RubyOnRails
[03:45:03] triptec: has joined #RubyOnRails
[03:46:26] k1t: has joined #RubyOnRails
[03:46:45] k3rn31: has joined #RubyOnRails
[03:51:03] k1t: has joined #RubyOnRails
[03:51:17] one_zero: has joined #RubyOnRails
[03:56:13] Pulkit21: has joined #RubyOnRails
[04:00:19] xall: has joined #RubyOnRails
[04:02:38] jancel: has joined #RubyOnRails
[04:04:33] circ-user-J8Qqy: has joined #RubyOnRails
[04:18:33] emachnic: has joined #RubyOnRails
[04:19:37] kgrz: has joined #RubyOnRails
[04:19:48] Guest99167: has joined #RubyOnRails
[04:20:38] _kraken: Hey, I'm working in rails, and when I ($ rake routes) for some reason, I don't have an index controller action. What happened?
[04:20:55] _kraken: I get this, but no index controlelr action http://i.imgur.com/SIayFeI.png
[04:20:55] Radar: _Kraken: !gist your routes file please.
[04:20:55] helpa: _Kraken: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[04:21:47] sevenseacat: looks like singular routing
[04:23:20] Dios: has joined #RubyOnRails
[04:25:18] _kraken: https://gist.github.com/KrakenHH/c84975270936f4604bdca89157f34e63
[04:25:21] _kraken: There's the gist
[04:25:25] linocisco: has joined #RubyOnRails
[04:25:39] sevenseacat: yeah you're using singular routing - meaning you can only have one article
[04:25:45] sevenseacat: you want `resources :articles`
[04:26:09] _kraken: ahhhh, thank you.
[04:26:12] JesseH: has joined #RubyOnRails
[04:26:13] sevenseacat: http://guides.rubyonrails.org/routing.html#singular-resources is what you have at the moment
[04:26:17] rickmasta: has joined #RubyOnRails
[04:26:35] _kraken: Awesome, simple mistake. Thank you sevenseacat
[04:26:56] arBmind: has joined #RubyOnRails
[04:27:20] sevenseacat: ACTION resumes wtfing ast es2015
[04:36:20] linocisco: has joined #RubyOnRails
[04:38:29] linocisco: has joined #RubyOnRails
[04:39:08] triptec: has joined #RubyOnRails
[04:42:29] pawnbox: has joined #RubyOnRails
[04:43:34] maxz: has joined #RubyOnRails
[04:43:34] beilabs: has joined #RubyOnRails
[04:43:42] aadam21: has joined #RubyOnRails
[04:44:49] tildes_: has joined #RubyOnRails
[04:48:57] yfeldblum: has joined #RubyOnRails
[04:49:00] smathy: has joined #RubyOnRails
[04:49:48] yfeldblum: has joined #RubyOnRails
[04:51:19] kgrz: has joined #RubyOnRails
[04:54:44] sillypog: has joined #RubyOnRails
[04:59:36] aadam21: has joined #RubyOnRails
[05:09:04] aadam21: has joined #RubyOnRails
[05:11:24] Regulati_: has joined #RubyOnRails
[05:12:56] emachnic_: has joined #RubyOnRails
[05:13:09] omgsmh: has joined #RubyOnRails
[05:13:26] Cohedrin: has joined #RubyOnRails
[05:14:24] sillypog: has joined #RubyOnRails
[05:14:39] aadam21: has joined #RubyOnRails
[05:16:05] chipotle: has joined #RubyOnRails
[05:16:28] hahuang65: has joined #RubyOnRails
[05:17:14] tercenya: has joined #RubyOnRails
[05:18:32] duncannz: has joined #RubyOnRails
[05:19:40] duncannz: has joined #RubyOnRails
[05:20:32] datanoise: has joined #RubyOnRails
[05:23:32] Coldblackice: has joined #RubyOnRails
[05:24:32] aadam21: has joined #RubyOnRails
[05:27:19] hahuang65: has joined #RubyOnRails
[05:33:09] alfiemax: has joined #RubyOnRails
[05:33:10] triptec: has joined #RubyOnRails
[05:33:27] barhum2013: has joined #RubyOnRails
[05:33:54] jenrzzz: has joined #RubyOnRails
[05:33:59] aadam21: has joined #RubyOnRails
[05:37:06] idefine: has joined #RubyOnRails
[05:38:22] bronson: has joined #RubyOnRails
[05:40:05] triptec: has joined #RubyOnRails
[05:41:12] omgsmh: has joined #RubyOnRails
[05:47:36] Guest38693: has joined #RubyOnRails
[05:47:49] Radar: alfiemax: !rule134
[05:47:51] Radar: alfiemax: !rule14
[05:47:51] helpa: alfiemax: We're not all guys here - while you probably didn't mean to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[05:48:04] Radar: just FYI ^
[05:49:25] aadam21: has joined #RubyOnRails
[05:50:24] alfiemax: Radar, okey.. :)
[05:51:32] owenjones: has joined #RubyOnRails
[05:54:37] alfiemax: i'm using nokogiri to scrape a webpage and get the images present in the page. My code seems to work and fetch the images, but not all of it. I think nokogiri isn't reading the entire webpage.
[05:55:26] alfiemax: here is the gist if it even matters, it's just basic two lines (https://gist.github.com/alfie-max/4d26da8ead39ce1daf705432349f87d4)
[05:56:20] sneakerhax: has joined #RubyOnRails
[05:57:24] Radar: alfiemax: I only see 5 images on that page too.
[05:57:43] Radar: In the JS console you can verify it with $('img').length
[05:58:50] Radar: alfiemax: Also: please do not cross post.
[05:58:54] beilabs_: has joined #RubyOnRails
[05:59:07] aadam21: has joined #RubyOnRails
[06:00:33] alfiemax: ok sorry abt that, only after posting it here that i realized it's more of a ruby question than RoR
[06:01:50] alfiemax: i think i wasn't looking closely, the rest of the images rendered weren't from img tag instead were css background-image property for the div
[06:02:32] Ropeney: oh you posted in both chats, did u look in ruby?
[06:03:41] idefine: has joined #RubyOnRails
[06:04:51] aadam21: has joined #RubyOnRails
[06:04:53] aganov: has joined #RubyOnRails
[06:06:57] circ-user-J8Qqy: has joined #RubyOnRails
[06:08:29] datanoise: has joined #RubyOnRails
[06:09:14] antgel: has joined #RubyOnRails
[06:12:55] solars: has joined #RubyOnRails
[06:13:55] Macaveli: has joined #RubyOnRails
[06:14:04] neanderslob: has joined #RubyOnRails
[06:14:41] aadam21: has joined #RubyOnRails
[06:16:32] jstransky: has joined #RubyOnRails
[06:18:06] beilabs: has joined #RubyOnRails
[06:18:59] antgel: has joined #RubyOnRails
[06:24:08] aadam21: has joined #RubyOnRails
[06:26:28] njero: has joined #RubyOnRails
[06:26:58] roamingdog: has joined #RubyOnRails
[06:27:44] quazimodo: has joined #RubyOnRails
[06:27:45] quazimod1: has joined #RubyOnRails
[06:28:10] adre: has joined #RubyOnRails
[06:29:07] triptec: has joined #RubyOnRails
[06:31:08] arBmind: has joined #RubyOnRails
[06:32:19] syndikate: has joined #RubyOnRails
[06:32:42] Pazician: has joined #RubyOnRails
[06:36:12] alfiemax: has joined #RubyOnRails
[06:39:12] aadam21: has joined #RubyOnRails
[06:40:09] beilabs_: has joined #RubyOnRails
[06:42:00] pawnbox: has joined #RubyOnRails
[06:44:57] aadam21: has joined #RubyOnRails
[06:45:12] DoctorMonocular: has joined #RubyOnRails
[06:46:43] MaDErroR123: has joined #RubyOnRails
[06:53:58] ur5us: has joined #RubyOnRails
[06:54:43] aadam21: has joined #RubyOnRails
[06:56:29] jstransky: has joined #RubyOnRails
[06:58:58] conta: has joined #RubyOnRails
[06:59:07] Devalo: has joined #RubyOnRails
[07:00:39] jstransky: has joined #RubyOnRails
[07:04:46] aadam21: has joined #RubyOnRails
[07:06:49] jstransky: has joined #RubyOnRails
[07:08:43] DoctorMonocular: has joined #RubyOnRails
[07:13:37] barhum2013: has joined #RubyOnRails
[07:14:00] cd83x: has joined #RubyOnRails
[07:14:17] aadam21: has joined #RubyOnRails
[07:14:21] cd83x: has joined #RubyOnRails
[07:19:49] aadam21: has joined #RubyOnRails
[07:19:50] ksoze: has joined #RubyOnRails
[07:20:52] edwinvdgraaf: has joined #RubyOnRails
[07:25:17] agit0: has joined #RubyOnRails
[07:25:33] comrad: has joined #RubyOnRails
[07:28:43] adre: has joined #RubyOnRails
[07:29:05] artto: has joined #RubyOnRails
[07:29:44] aadam21: has joined #RubyOnRails
[07:30:40] ur5us: has joined #RubyOnRails
[07:30:59] beilabs: has joined #RubyOnRails
[07:34:46] DoubleMalt: has joined #RubyOnRails
[07:35:28] beilabs_: has joined #RubyOnRails
[07:38:52] jancel: has joined #RubyOnRails
[07:39:18] bronson: has joined #RubyOnRails
[07:40:08] mark_66: has joined #RubyOnRails
[07:41:24] DoctorMonocular: has joined #RubyOnRails
[07:41:51] defsdoor: has joined #RubyOnRails
[07:43:28] DZj091231kld: has joined #RubyOnRails
[07:44:30] datanoise: has joined #RubyOnRails
[07:45:26] artto: has joined #RubyOnRails
[07:46:47] darutoko: has joined #RubyOnRails
[07:49:17] Hyuk: has joined #RubyOnRails
[07:50:11] omgsmh: has joined #RubyOnRails
[07:51:18] gingray: has joined #RubyOnRails
[07:53:24] artto_: has joined #RubyOnRails
[07:55:12] aadam21: has joined #RubyOnRails
[07:55:19] Guest38693: has joined #RubyOnRails
[08:00:45] Devalo: has joined #RubyOnRails
[08:01:13] alfiemax: has joined #RubyOnRails
[08:02:29] jenrzzz: has joined #RubyOnRails
[08:03:26] bruce_lee: has joined #RubyOnRails
[08:04:51] jsrn: has joined #RubyOnRails
[08:05:02] aadam21: has joined #RubyOnRails
[08:05:30] adre: has joined #RubyOnRails
[08:08:37] circ-user-J8Qqy: has joined #RubyOnRails
[08:09:56] Ch4rAss: has joined #RubyOnRails
[08:11:44] artto: has joined #RubyOnRails
[08:12:29] stardiviner: has joined #RubyOnRails
[08:13:01] mikecmpbll: has joined #RubyOnRails
[08:13:54] DoubleMalt: has joined #RubyOnRails
[08:13:55] ksoze: has joined #RubyOnRails
[08:15:04] aadam21: has joined #RubyOnRails
[08:16:49] gambl0re: has joined #RubyOnRails
[08:17:38] helpa: has joined #RubyOnRails
[08:18:07] helpa: has joined #RubyOnRails
[08:20:56] artto: has joined #RubyOnRails
[08:23:32] weckl: has joined #RubyOnRails
[08:24:54] aadam21: has joined #RubyOnRails
[08:28:51] barhum2013: has joined #RubyOnRails
[08:34:32] aadam21: has joined #RubyOnRails
[08:35:15] chipotle: has joined #RubyOnRails
[08:39:01] alfiemax: has joined #RubyOnRails
[08:39:18] marr: has joined #RubyOnRails
[08:40:14] aadam21: has joined #RubyOnRails
[08:40:17] bronson: has joined #RubyOnRails
[08:41:17] Circuit8: has joined #RubyOnRails
[08:46:47] tens0r: has joined #RubyOnRails
[08:55:12] aadam21: has joined #RubyOnRails
[08:58:47] KucukMubasir: has joined #RubyOnRails
[09:00:24] bronson: has joined #RubyOnRails
[09:01:29] dgncn: has joined #RubyOnRails
[09:05:00] aadam21: has joined #RubyOnRails
[09:08:05] ksoze: has joined #RubyOnRails
[09:10:58] Ropeney: has joined #RubyOnRails
[09:12:03] MEATCHICKEN: has joined #RubyOnRails
[09:14:40] aadam21: has joined #RubyOnRails
[09:16:51] lalalaaa: has joined #RubyOnRails
[09:17:15] owenjones: has joined #RubyOnRails
[09:18:00] lalalaaa: Hi! Trying to `sudo unicorn -E production -c config/unicorn.rb` but getting `rack not available, functionality reduced -- rack and Rack::Builder must be available for processing config.ru`. I'm using Ruby ruby 2.2.4p230. Is this a version incompatibility?
[09:18:27] Ergo: has joined #RubyOnRails
[09:20:23] aadam21: has joined #RubyOnRails
[09:25:04] aadam21: has joined #RubyOnRails
[09:26:29] beilabs: has joined #RubyOnRails
[09:27:02] jancel: has joined #RubyOnRails
[09:28:43] njero: has joined #RubyOnRails
[09:33:15] srinidhi: has joined #RubyOnRails
[09:34:45] aadam21: has joined #RubyOnRails
[09:35:40] universa1: lalalaaa: sudo bundle exec unicorn -E prodction....
[09:35:49] universa1: worth a try ;)
[09:37:50] pawnbox: has joined #RubyOnRails
[09:39:01] emachnic: has joined #RubyOnRails
[09:40:26] aadam21: has joined #RubyOnRails
[09:40:37] lalalaaa: universa1: lol
[09:40:56] lalalaaa: no you're right
[09:41:14] lalalaaa: i wasn't laughing at you
[09:41:23] artto: has joined #RubyOnRails
[09:45:50] datanoise: has joined #RubyOnRails
[09:49:28] mikecmpbll: has joined #RubyOnRails
[09:50:22] aadam21: has joined #RubyOnRails
[09:51:56] njero: has joined #RubyOnRails
[09:52:16] clandry94: has joined #RubyOnRails
[09:52:41] GodFather__: has joined #RubyOnRails
[09:57:22] workmad3: has joined #RubyOnRails
[10:00:12] Ropeney: has joined #RubyOnRails
[10:00:24] aadam21: has joined #RubyOnRails
[10:01:05] mdw: has joined #RubyOnRails
[10:02:11] ksoze: has joined #RubyOnRails
[10:02:24] Devalo: has joined #RubyOnRails
[10:04:27] srinidhi: has joined #RubyOnRails
[10:09:48] ferr: has joined #RubyOnRails
[10:10:00] der-landgraf: has joined #RubyOnRails
[10:10:12] aadam21: has joined #RubyOnRails
[10:10:27] circ-user-J8Qqy: has joined #RubyOnRails
[10:11:25] edwinvdgraaf: has joined #RubyOnRails
[10:12:15] AimlessRAven: has joined #RubyOnRails
[10:14:20] Guest38693: has joined #RubyOnRails
[10:14:31] ebbflowgo: has joined #RubyOnRails
[10:19:40] srinidhi1: has joined #RubyOnRails
[10:19:53] aadam21: has joined #RubyOnRails
[10:21:41] Pulkit21: has joined #RubyOnRails
[10:21:44] User458764: has joined #RubyOnRails
[10:25:38] aadam21: has joined #RubyOnRails
[10:26:30] qsun_: has joined #RubyOnRails
[10:28:27] norc: has joined #RubyOnRails
[10:31:40] blackhuey: has joined #RubyOnRails
[10:33:35] emachnic: has joined #RubyOnRails
[10:34:23] triangles: has joined #RubyOnRails
[10:34:41] tennis: has left #RubyOnRails: ("Leaving")
[10:35:09] ImmoveableOne: has joined #RubyOnRails
[10:35:28] aadam21: has joined #RubyOnRails
[10:35:34] jenrzzz: has joined #RubyOnRails
[10:35:34] jenrzzz: has joined #RubyOnRails
[10:35:53] ImmoveableOne: I have problem understanding the namespace models.
[10:36:59] ImmoveableOne: and the tables gentrated correspondingly by, rails g scaffold namespace/model_name
[10:37:00] norc: If I want to initiate an OAuth 2.0 Authorization Code flow with the intend to resume after being redirected, would I simply store that information in my session, and have my callback action look at that session value?
[10:40:39] sevenseacat: ImmoveableOne: whats your question?
[10:41:19] norc: (I cannot really figure out how to resume after the Authorization server redirects me)
[10:41:31] triangles2: has joined #RubyOnRails
[10:42:11] moep: has joined #RubyOnRails
[10:45:21] aadam21: has joined #RubyOnRails
[10:46:29] arBmind: has joined #RubyOnRails
[10:46:51] srinidhi: has joined #RubyOnRails
[10:46:55] c355E3B: has joined #RubyOnRails
[10:46:59] ImmoveableOne: sevenseacat: how do I access the table and model that is kept in a particular namespace.
[10:47:20] ImmoveableOne: And when should place models in a namespace?
[10:47:26] sevenseacat: ImmoveableOne: check what the name of the model is. use that name.
[10:48:26] ImmoveableOne: And when should place models in a namespace?
[10:48:35] sevenseacat: if you have a bunch of models all related to a similar concept (that would never be used outside that concept) i would place them together. eg. I built some reporting functionality that had classes for a report, a category listing in the report, subcategory, etc. I put all those in a Report namespace
[10:49:15] ImmoveableOne: Are there some benefits?
[10:49:24] iwada: has joined #RubyOnRails
[10:49:31] sevenseacat: just in organisation
[10:50:11] sevenseacat: and to avoid long repetitive class names like ReportCategory referring to Report and ReportSubcategory
[10:50:35] startupality: has joined #RubyOnRails
[10:50:40] Ropeney: has joined #RubyOnRails
[10:51:24] ebbflowgo: has joined #RubyOnRails
[10:51:34] ImmoveableOne: I have a admin namespace for a restaurant POS, only admin needs to access resources location and ingredients. In this use case should I put those two modes in a seperate namespace?
[10:52:01] ImmoveableOne: I think not, but am still not certain.
[10:52:06] sevenseacat: i dont see why you would
[10:52:43] ImmoveableOne: sevenseacat: ok thanks a bunch.
[10:52:57] iwada: Hi all, Assuming i have this
[10:53:06] iwada: rates/CSVLOAD:*out:example.org:1002
[10:53:22] iwada: params[:id] returns "CSVLOAD:*out:example:org:1002"
[10:54:02] iwada: observe "." is replaced with ":" in params[:id]
[10:54:09] srinidhi: has joined #RubyOnRails
[10:54:26] sevenseacat: are you sure?
[10:54:33] iwada: Please how do i prevent this, and make params[:id] return CSVLOAD:*out:example.org:1002
[10:54:38] sevenseacat: that doesnt seem likely.
[10:54:58] iwada: sevenseacat, Yea, Im sure
[10:55:01] ImmoveableOne: I want to contribute to rails(I have contributed to some other org before), but you guys don't have any tags that which bugs are beginner level or so, any ideas?
[10:55:27] ImmoveableOne: *any tags that say
[10:55:38] iwada: sevenseacat, rails 4.2.4
[10:56:29] ksoze: has joined #RubyOnRails
[10:57:40] johnchalekson: has joined #RubyOnRails
[10:58:03] sevenseacat: iwada: thats not the behaviour i am seeing
[10:58:27] sevenseacat: which is what I would expect - i would expect rails to assume the format is .org:1002 and the rest before it is the ID
[10:58:44] rodfersou: has joined #RubyOnRails
[10:58:50] sevenseacat: https://gist.github.com/sevenseacat/b5d5ad2482d85d0d167122b4e29691a1
[10:59:43] sevenseacat: to avoid that, you can add `format: false` to your routing
[10:59:56] sevenseacat: eg. resources :foo, format: false
[11:00:50] iwada: sevenseacat, Ok... Let me try that
[11:01:12] sevenseacat: however, that has nothing to do with translating . to :, which i would not expect t o see (and cant replicate)
[11:02:46] futilegames: has joined #RubyOnRails
[11:06:47] stardiviner: has joined #RubyOnRails
[11:07:14] iwada: sevenseacat, Thanks, Fault was mine. Corrected it
[11:09:04] jeanlinux: has joined #RubyOnRails
[11:09:36] aadam21: has joined #RubyOnRails
[11:11:08] jeanlinux: has joined #RubyOnRails
[11:11:14] johnchalekson: has joined #RubyOnRails
[11:14:47] mdw: has joined #RubyOnRails
[11:17:54] srinidhi: has joined #RubyOnRails
[11:19:44] nettoweb: has joined #RubyOnRails
[11:21:26] ebbflowgo: has joined #RubyOnRails
[11:21:53] Jasaka: has joined #RubyOnRails
[11:24:43] weckl: Hi guys. Can I know if some_user_attributes would change user model object without updating user.update(some_user_attributes) and checking user.previous_changes ?
[11:26:52] jeanlinux: has joined #RubyOnRails
[11:27:27] artto: has joined #RubyOnRails
[11:27:29] jhass: user.attributes.merge(some_user_attributes) == user.attributes I guess
[11:29:27] tvw: has joined #RubyOnRails
[11:29:47] alfiemax: has joined #RubyOnRails
[11:30:43] chintanparikh: has joined #RubyOnRails
[11:31:24] jeanlinux: has joined #RubyOnRails
[11:31:47] snowy: has joined #RubyOnRails
[11:31:59] jhass: weckl: !rule12
[11:31:59] helpa: weckl: Do not PM members of the channel without first asking if that is OK.
[11:32:01] jeanlinux: has joined #RubyOnRails
[11:32:53] weckl: jhass: Thanks, I'll try that.
[11:33:14] ldnunes: has joined #RubyOnRails
[11:34:05] johnchalekson: has joined #RubyOnRails
[11:34:59] Guest38693: has joined #RubyOnRails
[11:35:56] jenrzzz: has joined #RubyOnRails
[11:38:38] johnchalekson: has joined #RubyOnRails
[11:39:14] chintanparikh: Hey all, I'm having a very strange issue with resetting passwords with devise. I've filed an issue here - https://github.com/plataformatec/devise/issues/4131. Would really appreciate some insight! I know there's a quick way I could fix it (by implementing a custom require_no_authentication), but I'm wondering if this signifies a deeper problem
[11:40:37] jmignault: has joined #RubyOnRails
[11:41:00] Ropeney: has joined #RubyOnRails
[11:41:59] johnchalekson: has joined #RubyOnRails
[11:42:59] johnchalekson: has joined #RubyOnRails
[11:43:48] johnchalekson: has joined #RubyOnRails
[11:44:42] weckl: jhass: It worked, many thanks!
[11:46:16] ebbflowgo: has joined #RubyOnRails
[11:47:18] datanoise: has joined #RubyOnRails
[11:48:31] triptec: has joined #RubyOnRails
[11:50:33] ksoze: has joined #RubyOnRails
[11:50:51] allcentury: has joined #RubyOnRails
[11:51:40] Ropeney: has joined #RubyOnRails
[11:51:48] Detch: has joined #RubyOnRails
[11:52:11] Onslaught: has joined #RubyOnRails
[11:52:27] Onslaught: Can someone tell me how to include a module from a gem into a controller in rails 4?
[11:52:43] Onslaught: apparently 'include Wongi::Engine::DSL' doesn't seem to work.
[11:53:44] norc: jhass, weckl: What about ActiveModel::Dirty ?
[11:54:11] universa1: Onslaught: define doesn't work.
[11:54:17] norc: Onslaught: "doesn't seem to work" is a really bad error description.
[11:54:32] Onslaught: The error is: "uninitialized constant Wongi::Engine::DSL::AnyRule::VariantRule"
[11:54:52] Onslaught: Which can be solved by 'include Wongi::Engine::DSL', which I have tested in a plain ruby script.
[11:54:54] universa1: Onslaught: you are sure there is a module with that name?
[11:54:58] Onslaught: I cannot seem to fix it in the controller however.
[11:55:06] norc: Onslaught: fix "it" ?
[11:55:08] kgrz: has joined #RubyOnRails
[11:55:18] norc: Onslaught: Please give us a complete stack trace when you include that module.
[11:55:28] norc: Full error message and stack trace.
[11:55:48] morfin: has joined #RubyOnRails
[11:56:17] morfin: hello, when deploying RoR app with Capistrano should i assume i got empty OS without anything?
[11:56:21] Onslaught: I have already spoken to the developer of wongi-engine, and he says its a bug and needs to be fixed.
[11:56:32] Onslaught: And to get around the error right now, you simply include the module
[11:56:35] universa1: morfin: you should assume whatever is on the server you're deploying to.
[11:56:56] Onslaught: I have tested this in a stand alone script, and it works as expected, without the constant uninitialised error.
[11:57:04] jhass: norc: how do you mass update an AR::Base without persisting it?
[11:57:10] Onslaught: If I include the module.
[11:57:30] universa1: jhass: foos.each {|f| f.bar = "fantastic"} =!
[11:57:33] Onslaught: So all I am asking, is, how do I include a module, into rails, or into a single controller if possible?
[11:57:42] universa1: Onslaught: include "..."
[11:57:46] norc: Onslaught: include.
[11:57:51] Onslaught: Doesn't seem to work
[11:57:59] Onslaught: class UsersController < ApplicationController
[11:58:00] Onslaught: include Wongi::Engine::DSL
[11:58:01] universa1: gist the code + stack trace.
[11:58:02] norc: Onslaught: include is a fairly well tested ruby keyword.
[11:58:05] Onslaught: And I still get the constant error
[11:58:06] norc: Onslaught: I doubt that you managed to break it.
[11:58:22] Onslaught: Ok, how do I generate a stack trace ?
[11:58:28] norc: Onslaught: Ruby does that for you.
[11:59:28] norc: Onslaught: https://gist.github.com/anonymous/8bde03debd1f5206453c306811113426 this for example is a stack trace.
[11:59:32] jhass: universa1: so to apply it to weckl's example, some_user_attributes.each do |k, v| user[k] = v; end; user.changes?; user.restore_attributes(some_user_attributes.keys), don't see how that's cleaner than my suggestion
[12:00:06] norc: jhass: It was merely a question, not a suggestion.
[12:00:34] Onslaught: Sure, I am using better_errors
[12:00:38] herpless: has joined #RubyOnRails
[12:00:42] universa1: jhass: i just answered your question. no clue about what weckl s is.
[12:00:45] Onslaught: so it kinda pretty prints it and I lose the default text output
[12:00:54] sevenseacat: Onslaught: check your logs.
[12:00:57] jhass: norc: mh, felt like one given they already referenced AM::Dirty through previous_changes
[12:01:48] artto: has joined #RubyOnRails
[12:02:21] Onslaught: https://gist.github.com/onslauth/ffc65a1a439bc88cf97ba0247a11f243
[12:02:27] Onslaught: includes class + stack trace
[12:02:40] universa1: Onslaught: !gist-usage
[12:02:40] helpa: Onslaught: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[12:03:36] norc: jhass: Ah. Well I was thinking user.assign_attributes(some_attributes).changed?
[12:03:38] sevenseacat: so where is that constant defined?
[12:03:49] norc: jhass: That might even have the advantage of being able to save it straight away if so desired.
[12:04:00] jhass: gotcha, missed that one
[12:04:05] Devalo: has joined #RubyOnRails
[12:04:22] Onslaught: That constant is defined in the wongi-engine gem
[12:04:48] VeryBewitching: has joined #RubyOnRails
[12:04:49] universa1: Onslaught: https://gist.github.com/onslauth/ffc65a1a439bc88cf97ba0247a11f243#file-stack-trace-L5 -- the error is not triggered by the include line.
[12:05:58] norc: Is this a good place to ask some oauth related questions?
[12:06:06] sevenseacat: so i think the answer is, its not defined anywhere :P
[12:06:19] universa1: or the gem doesn't include it automatically.
[12:06:25] norc: sevenseacat: Or its autoloading magic is broken
[12:06:28] Onslaught: This was the error before
[12:06:33] Onslaught: when using a stand alone script
[12:06:37] Onslaught: gems/wongi-engine-0.2.7/lib/wongi-engine/dsl/any_rule.rb:14:in `option': uninitialized constant Wongi::Engine::DSL::AnyRule::VariantRule (NameError)
[12:06:38] Onslaught: Did you mean? Wongi::Engine::DSL::VariantRule
[12:06:50] Onslaught: Which is solved by 'include Wongi::Engine::DSL'
[12:06:58] norc: Onslaught: Sounds like either your library is broken or you are using it wrong.
[12:06:59] Onslaught: which the developer of the gem told me to use.
[12:07:24] Alazoral: has joined #RubyOnRails
[12:08:51] Onslaught: Would you like a stand alone script, with the exact same code?
[12:08:59] Onslaught: To prove that its working fine when not inside rails?
[12:09:20] sevenseacat: can you tell me where the constant is defined?
[12:09:41] Onslaught: https://github.com/ulfurinn/wongi-engine/blob/09a3e4cd19c42c6e8790c67b809bbf9c0a5e283c/lib/wongi-engine/dsl.rb
[12:09:51] sevenseacat: thats not the constant thats raising the error
[12:10:07] Onslaught: https://github.com/ulfurinn/wongi-engine/blob/09a3e4cd19c42c6e8790c67b809bbf9c0a5e283c/lib/wongi-engine/dsl/any_rule.rb
[12:10:59] sevenseacat: seems like the engine isnt loading that class
[12:11:47] norc: Onslaught: How are you loading the library?
[12:11:48] sevenseacat: wait a second... thats not the right constant either
[12:11:50] Onslaught: Ok, is there a way to fix that for now until the developer or the gem gets time to fix it?
[12:12:06] Onslaught: in the Gemfile
[12:12:07] sevenseacat: thats not Wongi::Engine::DSL::AnyRule::VariantRule
[12:12:37] Onslaught: At the bottom of that file is class DSL::VariantRule
[12:12:51] norc: Onslaught: It still isn't.
[12:12:56] sevenseacat: still not the same constant
[12:13:16] norc: Onslaught: That constant is Wongi::Engine::DSL::VariantRule
[12:13:30] norc: It kind of smells like your library is buggy.
[12:13:33] sevenseacat: https://github.com/ulfurinn/wongi-engine/blob/09a3e4cd19c42c6e8790c67b809bbf9c0a5e283c/lib/wongi-engine/dsl/any_rule.rb#L14 patch that line to point to the right class.
[12:14:23] Onslaught: Not my library, but I have already spoken to the developer, and he says he will fix it later when he gets a chance
[12:14:34] Onslaught: is there a way right now to continue without having to wait for him?
[12:14:41] sevenseacat: patch that line.
[12:17:18] tildes: has joined #RubyOnRails
[12:17:22] srinidhi: has joined #RubyOnRails
[12:18:07] Onslaught: Can I create a constant with that name that points to the correct constant?
[12:18:55] owenjones: has joined #RubyOnRails
[12:19:07] sevenseacat: I'd recommend putting a patch in for the library, given the fix is so simple.
[12:20:06] Onslaught: Sure, but the developer has already acknowledged it, and agreed to fix it when he gets a chance after work.
[12:20:36] Onslaught: So in order to fix it right now, I have to fork, fix, update gem file to use my fork, and then revert all that in say 5 hours time?
[12:21:00] sevenseacat: if all you care about is a five second fix open the gem and fix the bug
[12:21:10] sevenseacat: seriously, you're making this far too complicated
[12:21:22] Onslaught: I didn't think about that
[12:21:42] triptec: has joined #RubyOnRails
[12:21:46] emachnic: has joined #RubyOnRails
[12:23:10] Onslaught: Thank you very much for all the help
[12:23:28] Onslaught: Sorry if I was belligerent
[12:23:45] sevenseacat: you were, but we all get like that at times, so no big deal.
[12:25:06] Onslaught: Hope you have a good friday afternoon
[12:27:10] norc: Does Rails ever store session data in files?
[12:27:36] norc: (Im wondering about the implications of storing OAuth refresh tokens in sessions)
[12:27:49] moeabdol: has joined #RubyOnRails
[12:30:16] hightower2: has joined #RubyOnRails
[12:30:39] triptec: has joined #RubyOnRails
[12:31:06] nettoweb: has joined #RubyOnRails
[12:31:51] Pulkit21: I am new to Rspec. I want to write a test for the dropdown menu which consist of checkboxes
[12:32:08] Pulkit21: can anyone suggest me how can i proceed? TIA
[12:33:04] norc: Pulkit21: What do you want to use? Capybara?
[12:33:32] Pulkit21: I am new to testing
[12:33:43] groatyoats: has joined #RubyOnRails
[12:37:21] jenrzzz: has joined #RubyOnRails
[12:38:11] refinerysource: has joined #RubyOnRails
[12:39:37] tildes: Pulkit21: https://github.com/jnicklas/capybara#using-capybara-with-rspec
[12:40:20] fmcgeough: has joined #RubyOnRails
[12:40:28] dionysus69: has joined #RubyOnRails
[12:41:16] tildes: Pulkit21: and perhaps https://gist.github.com/zhengjia/428105 to give you some idea of matchers available
[12:41:42] tildes: (if anyone has got other suggestions, do share)
[12:43:10] srinidhi: has joined #RubyOnRails
[12:43:39] universa1: google rspec capybara integration tests how to ?! ;)
[12:44:39] ksoze: has joined #RubyOnRails
[12:44:56] xhoy: hi there all, i can do a scope for Object.scope and return a list of single item, but can i do a different scope vor Object.relation.scope => single and Relation.scope => 'array'?
[12:45:31] xhoy: or should i do a Object.<method> for this?
[12:45:41] xhoy: since its relations vs relation
[12:45:55] xhoy: ofcz nvm
[12:46:19] Pulkit21: Thanks @tildes
[12:46:38] tildes: Pulkit21: you're welcome, good luck :)
[12:47:48] ql6wlld: has joined #RubyOnRails
[12:49:08] blackhuey: has left #RubyOnRails: ()
[12:49:21] desmondhume: has joined #RubyOnRails
[12:54:26] moeabdol: has joined #RubyOnRails
[12:56:07] SteenJobs: has joined #RubyOnRails
[12:56:16] circ-user-J8Qqy: has joined #RubyOnRails
[12:56:31] maxz: has joined #RubyOnRails
[12:56:58] ramortegui: has joined #RubyOnRails
[13:01:05] hightower2: has joined #RubyOnRails
[13:01:22] roamingdog: has joined #RubyOnRails
[13:03:19] jancel: has joined #RubyOnRails
[13:04:47] roamingdog: has joined #RubyOnRails
[13:06:13] eckesicle: has joined #RubyOnRails
[13:07:28] k3rn31: has joined #RubyOnRails
[13:11:10] tweeeaks: has joined #RubyOnRails
[13:12:01] gopz_: has joined #RubyOnRails
[13:12:31] mdw: has joined #RubyOnRails
[13:13:34] arBmind: has joined #RubyOnRails
[13:16:36] emachnic: has joined #RubyOnRails
[13:20:17] moeabdol: has joined #RubyOnRails
[13:21:36] triptec: has joined #RubyOnRails
[13:22:44] beilabs_: has joined #RubyOnRails
[13:33:53] aegis3121: has joined #RubyOnRails
[13:38:51] ksoze: has joined #RubyOnRails
[13:39:22] jenrzzz: has joined #RubyOnRails
[13:39:22] jenrzzz: has joined #RubyOnRails
[13:39:45] hcnewsom: has joined #RubyOnRails
[13:40:25] smathy: has joined #RubyOnRails
[13:40:27] TvL2386: has joined #RubyOnRails
[13:41:40] barhum2013: has joined #RubyOnRails
[13:41:46] User458764: has joined #RubyOnRails
[13:42:34] tknz: has joined #RubyOnRails
[13:43:12] artemaminov: has joined #RubyOnRails
[13:43:47] braincrash: has joined #RubyOnRails
[13:47:04] hightower2: has joined #RubyOnRails
[13:47:21] Pazician: has joined #RubyOnRails
[13:48:46] datanoise: has joined #RubyOnRails
[13:57:28] aadam21: has joined #RubyOnRails
[13:58:50] aadam21: has joined #RubyOnRails
[13:59:15] yellow5: has joined #RubyOnRails
[14:00:11] scepticulous: has joined #RubyOnRails
[14:00:33] namxam: has joined #RubyOnRails
[14:00:49] idefine: has joined #RubyOnRails
[14:01:15] snowy: has joined #RubyOnRails
[14:01:38] dcope: whats the best way to fetch models in batches but also apply an overall limit?
[14:04:16] jmignault: has joined #RubyOnRails
[14:05:27] Devalo: has joined #RubyOnRails
[14:07:45] tbuehlmann: dcope: what would be your limit?
[14:08:58] ferr: I use mem_cache as cache store, how could I check if items get cached on production? Cause from response time I believe it does not
[14:09:04] chouhoulis: has joined #RubyOnRails
[14:09:11] dcope: tbuehlmann: the total number of records
[14:09:24] dcope: ie loop through 100 records with batches of 5
[14:09:48] sevenseacat: thats not exactly a limit
[14:09:54] chouhoulis: has joined #RubyOnRails
[14:10:05] tbuehlmann: I mean, what do you mean by "overall limit"?
[14:10:10] pawnbox: has joined #RubyOnRails
[14:11:00] dcope: tbuehlmann: sorry, not following you.
[14:11:30] dcope: im hoping to loop through 100 models with batches of 5. ie the enumerator will get executed 20 times with batches of 5 models
[14:11:49] sevenseacat: so you want find_in_batches
[14:11:57] sevenseacat: but thats got nothing to do with an overall limit
[14:12:10] tbuehlmann: you want a YourModel.limit(100).find_each(batch_side: 5), which doesn't work, right?
[14:12:38] pawnbox: has joined #RubyOnRails
[14:12:59] tbuehlmann: well, you can't add a limit, because find_each itself uses a limit. you can provide other conditions though
[14:13:05] kgrz: There's also a new `in_batches` method which yields a relation instead of an Array which is the case with find_in_batches. But the new one's only available in Rails 5
[14:13:52] LastWhisper____: has joined #RubyOnRails
[14:15:02] eljimmy: has joined #RubyOnRails
[14:15:47] clandry94: has joined #RubyOnRails
[14:15:54] JesseH: has joined #RubyOnRails
[14:16:35] idefine: has joined #RubyOnRails
[14:18:11] glasz_: has joined #RubyOnRails
[14:20:04] King_Rex: has joined #RubyOnRails
[14:20:26] hinbody: has joined #RubyOnRails
[14:21:24] emachnic: has joined #RubyOnRails
[14:22:07] stardiviner: has joined #RubyOnRails
[14:24:21] dionysus69: has joined #RubyOnRails
[14:25:32] chipotle: has joined #RubyOnRails
[14:26:54] frem_: has joined #RubyOnRails
[14:27:39] hashrocket: has joined #RubyOnRails
[14:29:06] User458764: has joined #RubyOnRails
[14:31:00] barhum2013: has joined #RubyOnRails
[14:31:02] alfiemax: has joined #RubyOnRails
[14:33:43] idefine: has joined #RubyOnRails
[14:33:58] ksoze: has joined #RubyOnRails
[14:35:18] sypheren: has joined #RubyOnRails
[14:35:40] idefine: has joined #RubyOnRails
[14:38:15] kgrz: has joined #RubyOnRails
[14:40:24] jenrzzz: has joined #RubyOnRails
[14:42:34] sypheren: has joined #RubyOnRails
[14:42:43] skroon: is it possible to have rails server (puma) log everything to stdout instead of a logfile?
[14:43:25] alfiemax: skroon, it does by default for me, unless you've changed the config
[14:43:33] desmondhume: has joined #RubyOnRails
[14:43:37] skroon: alfiemax: in production mode I mean :-)
[14:43:48] qsun: has joined #RubyOnRails
[14:44:28] alfiemax: i don't get you, in production mode locally or in the server?
[14:46:03] namxam_: has joined #RubyOnRails
[14:47:09] macsteps: has joined #RubyOnRails
[14:49:03] Pwnna: has joined #RubyOnRails
[14:49:32] aegis3121: has joined #RubyOnRails
[14:49:37] IFrank004: has joined #RubyOnRails
[14:49:38] IFrank00: has joined #RubyOnRails
[14:50:10] Pwnna: if i want to create a table in rails tests, is the only way to disable transactional fixture?
[14:50:33] ferr: How could I access memcache to check cached items on the server?
[14:51:04] Pwnna: afaict mysql can't do roll back a create table, right/
[14:52:00] Pwnna: furthermore, if i want to test the behaviours of an abstract model class, is the only way to disable transactional fixtures, create a model and migration in test, and run that migration during setup?
[14:52:01] jancel: has joined #RubyOnRails
[14:53:19] allcentury: has joined #RubyOnRails
[14:53:26] desmondhume: has joined #RubyOnRails
[14:55:30] Criten: has joined #RubyOnRails
[14:55:57] Criten: Is there any way to tie into rails dev when it knows it reloads a file, to take an action to clear a cache that we have implemented
[14:56:30] Criten: We were thinking there was something in activesupport.concern that would have something
[14:56:36] diegoviola: has joined #RubyOnRails
[14:56:49] datanoise: has joined #RubyOnRails
[14:57:11] Talltree: i'm getting so extremly annoyed by the namespace doc, the whole folder structure is not explained well at all, i'm running into so many errors
[14:57:18] kgrz: has joined #RubyOnRails
[14:57:27] Talltree: maybe its some convention i dont get but damn this is done bad.
[14:57:42] Criten: what part?
[14:57:55] xhoy: i am using factorygiril, and i am looking for a way to 'Inject" a variable in a factory (witch i can use multiple time while creating the object)
[14:58:19] Talltree: http://guides.rubyonrails.org/routing.html#controller-namespaces-and-routing
[14:58:57] Talltree: the whole folder structure or how to begin to move an api to a different url
[14:59:19] Talltree: extremly frustrating
[14:59:44] sevenseacat: anything specific we can help with?
[15:00:36] Talltree: sevenseacat: i just dont know where to begin even, i want to move the create and update function to an api. subdomain
[15:01:29] sevenseacat: Talltree: section 3.9 mentions adding a subdomain constraint to existing routes
[15:01:36] Talltree: i began with that
[15:01:55] sevenseacat: okay, what problems did you have with that?
[15:02:21] arup_r: has joined #RubyOnRails
[15:02:45] Talltree: http://pastie.org/10855097
[15:02:49] Talltree: created that as path file
[15:03:10] arup_r: Hi, I was upgrading some vulnerable gems. And doing do I am failed to upgrade the gem `http`. I guess to upgrade this, I need to upgrade my Ruby. Am I right? https://gist.github.com/aruprakshit/0c6f7f27a7fb7c4edf5d8e27acd3e97a
[15:03:36] Talltree: sevenseacat: and created a namespace for it, to have another folder...
[15:05:06] jmignault: has joined #RubyOnRails
[15:05:18] triptec: has joined #RubyOnRails
[15:05:31] codeshah: has joined #RubyOnRails
[15:06:08] sevenseacat: ACTION waiting patiently
[15:06:11] Devalo: has joined #RubyOnRails
[15:06:33] arup_r: nvm, ignore it
[15:06:42] Talltree: sorry. its taking a while to check everything back to where i was ...
[15:07:03] aegis3121: has joined #RubyOnRails
[15:07:12] stardiviner: has joined #RubyOnRails
[15:09:01] agent_white: has joined #RubyOnRails
[15:09:29] agent_white: Happy Friday!
[15:10:19] Talltree: sevenseacat http://pastie.org/10855105# updated it to check something... shouldnt http://api.localhost:3000/api/characters work with that route?
[15:10:45] sevenseacat: Talltree: does `rake routes` tell you it will work?
[15:11:05] Talltree: api/characters#index {:subdomain=>"api", :format=>"json"} yes
[15:11:14] sevenseacat: thats not the whole line
[15:11:21] Talltree: api_characters_path GET /api/characters(.:format) api/characters#index {:subdomain=>"api", :format=>"json"}
[15:11:49] dionysus69: has joined #RubyOnRails
[15:11:53] sevenseacat: seems okay. whats the problem?
[15:11:58] Talltree: it doesnt ;)
[15:12:16] helpa: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[15:12:26] Talltree: No route matches [GET] "/api/characters"
[15:13:04] barhum2013: has joined #RubyOnRails
[15:13:09] Talltree: but its right there... below :D
[15:13:16] moeabdol: I have the models Property, House and Apartment. A Property can be of kind House, or Apartment. In my rails app I associated them as Property has_one House and a House belongs_to Property. The same also for Property has_one Apartment and an Apartment belongs_to Property
[15:13:18] sevenseacat: what is request.subdomain ?
[15:14:04] moeabdol: in my peroprty new.html.erb I want to determine at run time the fields to show once a user selects one of these types (House/Apartment)
[15:14:06] Talltree: sevenseacat: no idea what you mean...
[15:14:24] sevenseacat: well your route is only set for that subdomain. what does rails think your subdomain is?
[15:14:29] moeabdol: anybody can shed some light on how I can do that
[15:14:49] sevenseacat: I do not know how it interprets subdomains for urls like api.localhost:3000
[15:15:15] Talltree: can you tell me how i could check in the command line utility on the page?
[15:15:26] Talltree: thats there to debug something like this right?
[15:15:53] sevenseacat: i dont know what you're looking at, so
[15:16:32] macsteps: has joined #RubyOnRails
[15:17:25] chouhoul_: has joined #RubyOnRails
[15:17:38] Talltree: https://i.imgur.com/goK3UFE.png
[15:17:43] Talltree: @sevenseacat
[15:18:00] sevenseacat: you're not on the correct subdomain there
[15:18:10] Talltree: yeah, i checked in that screen
[15:18:15] chouhoul_: has joined #RubyOnRails
[15:18:15] Talltree: to see if no subdomain works
[15:18:27] Talltree: but api.localhost:3000/api/characters
[15:18:30] Talltree: returns the exactly same page
[15:19:30] sevenseacat: again, I don't think thats a valid URL with a subdomain Rails will recognize
[15:19:39] sevenseacat: googling how to check that
[15:19:41] matthewd: `request.subdomain` should work in that console, I think
[15:19:51] Scient: has joined #RubyOnRails
[15:20:09] Talltree: https://i.imgur.com/Rv2rSQT.png
[15:20:15] Talltree: gotta love xfce-screenshotter
[15:20:51] matthewd: Ah.. might have to click around the full trace to find a frame where it's in scope
[15:20:52] Talltree: then i'm asking myself how do i produce a valid subdomain localy
[15:21:36] sevenseacat: let's figure out if thats the actual problem first
[15:22:26] Talltree: railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
[15:22:30] Veejay: has left #RubyOnRails: ("WeeChat 0.4.2")
[15:22:32] quazimodo: has joined #RubyOnRails
[15:22:35] Talltree: request.subdomain
[15:22:38] quazimod1: has joined #RubyOnRails
[15:22:43] Talltree: returns "" on that
[15:22:46] matthewd: Talltree: Have you done something on your machine that would cause api.localhost to resolve at all?
[15:23:25] Talltree: matthewd: .... ehhhh noooo?
[15:23:47] matthewd: Oh, actually, yeah... I think subdomain calculation defaults to just ignoring the last two parts, maybe?
[15:23:57] sevenseacat: thats what I was thinking
[15:24:03] Talltree: i would have no idea how to specifiy a subdomain localy anyway
[15:24:07] sevenseacat: just dont know how to verify it
[15:24:09] matthewd: Then I'm surprised api.localhost:3000/... is giving you anything other than a DNS error :/
[15:24:20] Talltree: that was kinda my logic too
[15:24:29] Talltree: if it accepts api.localhost it works
[15:24:40] Talltree: so thats not the eror -> check everything else -> go crazy
[15:24:55] matthewd: Try api.really.localhost? ;)
[15:25:10] Talltree: uninitialized constant Api
[15:25:24] matthewd: As a hostname, not in the console
[15:25:40] Talltree: its the url
[15:25:47] Talltree: i typed it in
[15:26:01] Talltree: what i said :D
[15:26:02] Talltree: uninitialized constant Api
[15:26:03] matthewd: Oh, then it's working
[15:26:04] sevenseacat: no more routing error?
[15:26:16] Talltree: screens tell more then 1000 words
[15:26:22] sevenseacat: Talltree: this is why we ask for full errors and messages
[15:26:27] sevenseacat: not just one line snippets
[15:26:32] Talltree: english is fun.
[15:26:44] sevenseacat: not following the channel rules is even more fun
[15:27:03] Talltree: https://i.imgur.com/pL1xxge.png
[15:27:17] sevenseacat: there we go, looks like its working now
[15:27:47] sevenseacat: now you need to actually create that controller in that namespace
[15:28:14] Talltree: so, the folder structure is -> app/controller/api/whatevername.rb
[15:28:20] namxam: has joined #RubyOnRails
[15:28:24] sevenseacat: controllers, not controller
[15:28:34] Talltree: ah yes, sorry
[15:29:20] Talltree: sevenseacat: class api::CharactersController < ApplicationController as first line, right?
[15:29:28] sevenseacat: no, Api not api
[15:29:50] jhack: has joined #RubyOnRails
[15:32:07] Talltree: sevenseacat, http://pastie.org/10855135 <- api.rb file https://i.imgur.com/5aTXhYq.png <- error i'm still having
[15:32:20] Seanzie: has joined #RubyOnRails
[15:32:24] sevenseacat: your filename should not be api.rb
[15:32:26] m_antis: has joined #RubyOnRails
[15:32:42] sevenseacat: by convention it should be characters_controller.rb
[15:33:39] jhack: has joined #RubyOnRails
[15:33:41] rbr: has joined #RubyOnRails
[15:33:41] Talltree: then i'm just missing an template, and thats under api/index.html.erb i guess, or in this case. json
[15:34:06] Talltree: <3 thanks for the help, i was going crazy here...
[15:34:14] EXCHGR: has joined #RubyOnRails
[15:38:11] Ropeney: has joined #RubyOnRails
[15:39:06] namxam: has joined #RubyOnRails
[15:40:04] chouhoulis: has joined #RubyOnRails
[15:40:32] namxam: has joined #RubyOnRails
[15:40:44] groatyoats: has joined #RubyOnRails
[15:41:17] codeshah: has joined #RubyOnRails
[15:41:22] jenrzzz: has joined #RubyOnRails
[15:41:22] jenrzzz: has joined #RubyOnRails
[15:43:05] m_antis: has joined #RubyOnRails
[15:43:19] disgrntld: has joined #RubyOnRails
[15:44:55] nettoweb: has joined #RubyOnRails
[15:45:03] |meta: has joined #RubyOnRails
[15:48:14] rbr: has joined #RubyOnRails
[15:50:50] startupality: has joined #RubyOnRails
[15:52:22] zave: has joined #RubyOnRails
[15:52:47] diego2: has joined #RubyOnRails
[15:53:13] davidw: has joined #RubyOnRails
[15:53:23] jancel: has joined #RubyOnRails
[15:53:57] raoisda: has joined #RubyOnRails
[15:54:18] SteenJobs: no better way to learn shit than having no choice, that’s a positive way to look at things, right?
[15:55:32] diego3: has joined #RubyOnRails
[15:55:37] raoisda: Is there a better way to write these two statements? http://pastie.org/10855148
[15:56:04] idefine: has joined #RubyOnRails
[15:56:06] mikecmpbll: has joined #RubyOnRails
[15:56:43] diego3: has joined #RubyOnRails
[15:58:45] startupality: has joined #RubyOnRails
[15:58:56] AnoHito: has joined #RubyOnRails
[15:59:04] alfiemax: raoisda, you just have to do `region.theater` for the second line
[16:00:40] idefine: has joined #RubyOnRails
[16:01:20] raoisda: I've tried that and it gave me this error: "column theaters.region_id does not exist"
[16:02:13] raoisda: it's not supposed to exist from what I can tell?
[16:03:35] alfiemax: what is the association between both the models
[16:04:26] raoisda: Region has a has_one association with theater. This is to have a single featured theater set per each region.
[16:06:57] raoisda: (that's it)
[16:07:26] akshat: has joined #RubyOnRails
[16:07:48] raoisda: What I included in the paste works, but it feels like bad code
[16:07:52] alfiemax: raoisda, this is how it should be : https://gist.github.com/alfie-max/c1aeb8798c2e7e364ee2549f8a019459
[16:08:18] roamingdog: raoisda: how does a theater know what its region is? - ja, what he said...
[16:09:01] raoisda: I have another association (has_and_belongs_to_many) created for regions and theaters, separate from the featured theater.
[16:09:22] raoisda: So theaters already have region_id
[16:10:07] roamingdog: raoisda: that's not how habtm works
[16:10:14] raoisda: right, my bad
[16:10:21] alfiemax: raoisda, http://guides.rubyonrails.org/association_basics.html
[16:10:24] raoisda: That's the existing association, though
[16:10:34] alfiemax: you should get your associations stright first
[16:10:48] raoisda: I just misspoke
[16:11:29] alfiemax: raoisda, would be better if you could share a gist on your present associations
[16:11:33] roamingdog: raoisda: wanna gist your schema?
[16:11:40] raoisda: Sure thing, one second
[16:11:52] alfiemax: yes the schema too
[16:12:34] idefine: has joined #RubyOnRails
[16:13:01] raoisda: Here you go: http://pastie.org/10855162
[16:13:43] Cohedrin: has joined #RubyOnRails
[16:14:00] agit0: has joined #RubyOnRails
[16:15:01] jmignault: has joined #RubyOnRails
[16:15:42] alfiemax: raoisda, i think switching your association would work, Region belongs_to theater and Theater has_one region
[16:16:22] raoisda: Sorry I should have tried it right when you gisted, one second
[16:16:36] MaDErroR123: has joined #RubyOnRails
[16:17:08] roamingdog: has_one with belongs_to always confuses me
[16:17:32] alfiemax: me too a long time ago
[16:18:37] benlieb: has joined #RubyOnRails
[16:19:00] roamingdog: alfiemax: in your words, why ever user has_one when belongs_to will do?
[16:19:06] jancel: has joined #RubyOnRails
[16:19:35] srinidhi: has joined #RubyOnRails
[16:20:15] alfiemax: as per my understanding, has_one sets the association for rails to know, and setting belongs_to allows you to access that in reverse
[16:20:26] elementaru: has joined #RubyOnRails
[16:20:34] alfiemax: like, region.theater will give you the theater in that region,
[16:20:35] rails219: has joined #RubyOnRails
[16:20:52] alfiemax: and theater.region will give the region for that theater
[16:21:17] branchini: has joined #RubyOnRails
[16:21:32] roamingdog: alfiemax: couldn't you just use belongs_to on both sides though?
[16:21:59] sevenseacat: only one table has a FK to the other
[16:22:04] alfiemax: the table that has belongs_to should have the foreign_key field
[16:22:22] alfiemax: yeah, what sevenseacat can said.. ;)
[16:22:36] sevenseacat: to have both means that one will inevitably get out of sync at some point
[16:22:43] sevenseacat: plus Rails wont help you
[16:23:06] chipotle: has joined #RubyOnRails
[16:23:08] sevenseacat: then you'd have something like theater.region.theater != theater
[16:23:08] branchini: I am using ransack for search on the index action of a models controller. Ransack seems to return all values when no search data is input. Can anyone help explain how to only return values if search parameters have been checked. I posted here http://stackoverflow.com/questions/37402416/ransack-return-no-results-for-index
[16:23:45] roamingdog: ok, so belongs_to is the hook, and rails uses has_one to sort of use that hook to give you the reverse model
[16:24:17] sevenseacat: they are the inverse of each other, yes. if you have a one-to-one relationship, one side will be a has_one and the other will be belongs_to.
[16:24:22] Dimik: has joined #RubyOnRails
[16:24:22] alfiemax: no, it's the opposite
[16:24:28] sevenseacat: one-to-one associations are not common.
[16:24:52] roamingdog: alfiemax: how so?
[16:25:20] alfiemax: try with just has_one, it will work (rails does it)
[16:25:29] alfiemax: i think, ;)
[16:25:43] roamingdog: alfiemax: as long as that foreign key is in the other model?
[16:25:47] raoisda: I'm still working on this. Trying to figure out a "undefined method `showtimes' for nil:NilClass" error now.
[16:26:07] djbkd: has joined #RubyOnRails
[16:26:08] alfiemax: raoisda, error log please
[16:26:22] sevenseacat: I missed the start of the discussion, but I'm happy to stick my nose in and offer technical advice :P
[16:26:44] roamingdog: your nose is always welcome
[16:27:05] yfeldblum: has joined #RubyOnRails
[16:27:22] smathy: has joined #RubyOnRails
[16:28:01] alfiemax: sevenseacat, just to be sure of myself, what i said earlier, it's correct right?
[16:28:02] yfeldblum: has joined #RubyOnRails
[16:28:11] sevenseacat: i dont know the context.
[16:28:39] alfiemax: Model1 has_one relation with Model2
[16:28:41] raoisda: sevenseacat: It started with me asking how I could write the first two statements of http://pastie.org/10855162#19 better
[16:28:50] idefine: has joined #RubyOnRails
[16:28:54] alfiemax: and Model2 has the model1_id
[16:29:12] alfiemax: willt he association work without specifying belongs_to ?
[16:29:58] mdw: has joined #RubyOnRails
[16:30:28] sevenseacat: Region has_one theater doesnt work if the regions table has the theater_id field.
[16:30:33] Guest38693: has joined #RubyOnRails
[16:31:52] idefine: has joined #RubyOnRails
[16:32:48] alfiemax: you mean doesn't have theater_id field ?
[16:33:19] branchini: can anyone help me with this? http://stackoverflow.com/questions/37402416/ransack-return-no-results-for-index
[16:33:29] Coldblackice: has joined #RubyOnRails
[16:33:38] Krands: has joined #RubyOnRails
[16:34:14] sevenseacat: if the regions table has the theater_id field, then in Rails vernacular a region belongs to a theater.
[16:35:01] theunraveler: has joined #RubyOnRails
[16:35:06] raoisda: Where would it be stored then? And you might have missed this, but I already have a HABTM setup between theater <-> region. I'm using a has_one for setting a featured theater per region.
[16:35:18] sevenseacat: I didn't miss it
[16:35:29] raoisda: alfiemax: here's the updated pastie http://pastie.org/10855183
[16:35:59] smathy: has joined #RubyOnRails
[16:36:02] raoisda: Okay, I wasn't sure how far back your scrollback went
[16:36:13] sevenseacat: it was in the gist you sent me
[16:36:38] brianpWins: has joined #RubyOnRails
[16:36:48] sevenseacat: now you've got two FKs linking theaters and regions (not including the HABTM)
[16:37:23] raoisda: Yeah I don't like the looks of it -- I'm just trying out the suggestions thus far.
[16:37:26] cd83x: has joined #RubyOnRails
[16:37:46] idefine: has joined #RubyOnRails
[16:38:12] sevenseacat: what you had before was fine, the has_one just should have been a belongs_to
[16:38:27] sevenseacat: depends on if a theater can be featured in more than one region
[16:39:08] rogue_koder: has joined #RubyOnRails
[16:39:10] raoisda: It shouldn't happen, but if it were would I then create a has_many through?
[16:39:31] sevenseacat: what? no, that would have worked the way you had it before, with a Region belonging to a Theater
[16:39:57] sevenseacat: the way you have it now, it wouldnt work
[16:41:12] DoubleMalt: has joined #RubyOnRails
[16:41:33] LastWhisper____: has joined #RubyOnRails
[16:41:59] idefine: has joined #RubyOnRails
[16:42:15] IFrank00: has joined #RubyOnRails
[16:42:15] IFrank004: has joined #RubyOnRails
[16:42:30] jenrzzz: has joined #RubyOnRails
[16:43:05] datanoise: has joined #RubyOnRails
[16:44:20] sevenseacat: it may make more sense if you name the field for what it really is, a featured_theater_id
[16:45:19] null__: I think that's where I got thrown off.. my migration AddFeaturedTheaterToRegion defaulted to just theater_id
[16:45:27] User458764: has joined #RubyOnRails
[16:45:57] null__: (I specified theater:references)
[16:46:43] manfrin: has joined #RubyOnRails
[16:47:51] qejk: has joined #RubyOnRails
[16:48:24] sillypog: has joined #RubyOnRails
[16:49:52] sneakerhax: has joined #RubyOnRails
[16:52:14] SteenJobs: has joined #RubyOnRails
[16:52:26] idefine: has joined #RubyOnRails
[16:52:26] raoisda: Thanks for the help everyone o/
[16:52:55] benlieb: has joined #RubyOnRails
[16:54:48] raoisda: (for reference on creating the appropriate migration: https://stackoverflow.com/a/29577869)
[16:55:07] sillypog: has joined #RubyOnRails
[16:55:41] hahuang65: has joined #RubyOnRails
[16:57:09] sevenseacat: indeed, i wrote a blog post about it a year ago
[16:58:38] benlieb: has joined #RubyOnRails
[17:00:38] idefine: has joined #RubyOnRails
[17:08:47] shinnya: has joined #RubyOnRails
[17:10:32] kgrz: has joined #RubyOnRails
[17:11:13] idefine: has joined #RubyOnRails
[17:12:02] diegoaguilar: has joined #RubyOnRails
[17:12:57] chipotle: has joined #RubyOnRails
[17:13:04] roelof: has joined #RubyOnRails
[17:13:50] roelof: Hello, let;s say I have a model named accounts and a model Customer. Now if a new customer is made then also a new account schould be made
[17:13:57] idefine: has joined #RubyOnRails
[17:14:04] roelof: Can this be done in rails ?
[17:15:15] xibalba: you could instantiate a new model in you're customer controller's create method, no?
[17:15:58] xibalba: or is it a bad idea to put that kind of code in th controller?
[17:16:31] ktchup: has joined #RubyOnRails
[17:16:33] rbr: has joined #RubyOnRails
[17:16:52] triptec: has joined #RubyOnRails
[17:16:52] dgynn: has joined #RubyOnRails
[17:17:44] roelof: xibalba: I do not think so, I could use a transaction I think
[17:17:46] idefine: has joined #RubyOnRails
[17:18:16] null__: I would use a after_create callback
[17:18:28] xibalba: ah yeh thats a better way to do it
[17:18:56] aegis3121: has joined #RubyOnRails
[17:19:45] null__: I'm not sure if it is -- maybe a controller would be better if they're using the same form input data?
[17:20:11] smathy: No, putting that logic in the controller is the worst approach here.
[17:20:24] roelof: a after_create callback, I thought using a transaction would be a good solution because if one of the two would fail both have to fail
[17:20:40] snowy: has joined #RubyOnRails
[17:20:55] smathy: Either use the callback, or use `accepts_nested_attributes_for`, or create a new class method.
[17:21:10] smathy: ...or use a service object.
[17:21:20] roelof: smathy: oke, thanks
[17:21:43] roelof: smathy: so also using a transaction is bad ?
[17:21:58] smathy: ...and yes, if it's your own method then wrap the two DB things in a transaction. If it's a callback, Rails already does that for you.
[17:22:36] DoctorMonocular: has joined #RubyOnRails
[17:22:40] jancel: has joined #RubyOnRails
[17:22:46] rakm: has joined #RubyOnRails
[17:23:54] RegulationD: has joined #RubyOnRails
[17:25:04] roelof: smathy: oke, I found this tutorial which can teach me to make service objects : https://blog.engineyard.com/2014/keeping-your-rails-controllers-dry-with-services
[17:26:05] ktchup: has joined #RubyOnRails
[17:27:13] snowy: has joined #RubyOnRails
[17:27:18] idefine_: has joined #RubyOnRails
[17:27:41] roelof: smathy: and this one looks also good to me : https://www.viget.com/articles/slimming-down-your-models-and-controllers
[17:27:49] dopamean_: has joined #RubyOnRails
[17:28:01] smathy: No need to keep me apprised.
[17:28:12] dopamean_: has joined #RubyOnRails
[17:29:20] conta: has joined #RubyOnRails
[17:29:22] idefine: has joined #RubyOnRails
[17:30:18] norc: has joined #RubyOnRails
[17:30:45] snowy: has joined #RubyOnRails
[17:34:35] mercerist: has joined #RubyOnRails
[17:35:39] moei: has joined #RubyOnRails
[17:39:17] marr: has joined #RubyOnRails
[17:39:47] ksoze: has joined #RubyOnRails
[17:40:36] adre: has joined #RubyOnRails
[17:40:41] snowy: has joined #RubyOnRails
[17:41:59] roelof: smathy: sorry i mean to ask if these are good tutorials, not to tell you how to do it
[17:42:30] smathy: No idea, never heard of either.
[17:42:55] idefine: has joined #RubyOnRails
[17:43:09] jenrzzz: has joined #RubyOnRails
[17:43:40] Snowy_: has joined #RubyOnRails
[17:43:51] roelof: smathy: oke, pity
[17:44:29] roelof: I will then continue to look for tutorials which can teach me things like service objects
[17:46:00] The_Phoenix: has joined #RubyOnRails
[17:46:20] The_Phoenix: has joined #RubyOnRails
[17:46:41] smathy: roelof, there's nothing magical about them, just a class that encapsulates some business logic.
[17:47:10] The_Phoenix: has joined #RubyOnRails
[17:48:44] User458764: has joined #RubyOnRails
[17:48:53] triptec: has joined #RubyOnRails
[17:50:07] roelof: smathy: thanks
[17:50:39] idefine: has joined #RubyOnRails
[17:51:18] idefine: has joined #RubyOnRails
[17:51:52] startupality: has joined #RubyOnRails
[17:54:18] smathy: "service object" in the Rails world is just code for "a plain ruby class"
[17:55:37] mikecmpbll: has joined #RubyOnRails
[17:56:03] rakm: has joined #RubyOnRails
[17:57:38] pawnbox: has joined #RubyOnRails
[17:58:30] roelof: smathy: again thanks
[17:58:54] pawnbox: has joined #RubyOnRails
[17:59:13] roelof: I think its time to make my own pet project instead of ony doing tutorials
[18:00:32] The_Phoenix: has joined #RubyOnRails
[18:06:06] RegulationD: has joined #RubyOnRails
[18:06:31] barhum2013: has joined #RubyOnRails
[18:07:12] pawnbox: has joined #RubyOnRails
[18:08:18] clandry94: has joined #RubyOnRails
[18:09:37] kgrz: has joined #RubyOnRails
[18:10:41] startupality: has joined #RubyOnRails
[18:10:44] mdw: has joined #RubyOnRails
[18:14:41] groatyoats: has joined #RubyOnRails
[18:16:51] rbr: has joined #RubyOnRails
[18:17:30] yellow51: has joined #RubyOnRails
[18:18:27] xvikvi: has joined #RubyOnRails
[18:18:57] SteenJobs: soooo anyone familiar with the puma “There is already a server bound to:” bug/error?
[18:19:50] xvikvi: Hello, is it possible for the Ransack gem to work with the virtual attributes used by attr_encrypted/symmetric encryption gems? When I set the form up it doesn't appear to see them
[18:20:20] tubbo: SteenJobs: usually happens in general when something's already running on the port you're trying to run your server on
[18:20:31] tubbo: 1 port per process, that's the rule.
[18:20:46] tubbo: xvikvi: ransack uses sql queries to get its data, so if that data is not in the database, then no.
[18:21:08] xvikvi: ah, thanks tubbo for the info
[18:21:23] SteenJobs: tubbo: it came out of nowhere today. server stuff is the one thing i know pretty much nothing about, sooo when the other dev quit yesterday and i had to takeover everything, this happened…although best way to learn i guess, eh?
[18:21:53] SteenJobs: tubbo: i’m wondering if i could’ve done anything. all i did to the server today was reset root pw bec the quitting dev threw out the creds, and then readded my ssh keys
[18:22:01] tubbo: SteenJobs: this is definitely important from a UNIX usage perspective.
[18:22:03] srinidhi: has joined #RubyOnRails
[18:22:05] SteenJobs: but i have no idea where along the way i could have caused this
[18:22:07] tubbo: like it's just good to learn how your OS operates
[18:22:11] SteenJobs: tubbo: yea agreed
[18:22:21] tubbo: did you try to restart the server?
[18:22:23] SteenJobs: i honestly learned more in the past hour trying to fix this than i would’ve learned sitting and reading for days
[18:23:00] tubbo: reading about programming is bullshit. just try things. ;)
[18:23:17] tubbo: i can't imagine how people actually sit through programming books. i never could.
[18:23:37] SteenJobs: or just have a shit ton of stuff you know nothing about dumped on you and make sure you’re the only dev working for the company so you have no choice but to learn. and learn dammmmn fast. :D
[18:24:03] SteenJobs: i first removed the myapp-puma.sock file, restarted nginx, started puma but still getting the error
[18:24:08] jancel: has joined #RubyOnRails
[18:24:17] SteenJobs: although now when i try running pumatl restart i’m getting “neither pid nor control url available"
[18:24:36] xall: has joined #RubyOnRails
[18:24:46] choke: has joined #RubyOnRails
[18:25:15] jhass: SteenJobs: what's the full error?
[18:26:17] jhass: also do you want to restart the appserver or does nginx give you a 502?
[18:26:25] SteenJobs: jhass: https://gist.github.com/jesiegel1/a1b67d57c7c6d85d926f626cb62a655c
[18:26:34] SteenJobs: jhass: lemme go back to the logs. one sec.
[18:26:57] jhass: so that's running the deploy scripts?
[18:27:02] diego1: has joined #RubyOnRails
[18:27:20] SteenJobs: i believe so - the dev that quit yesterday handled everything in production and all server config
[18:28:13] triptec: has joined #RubyOnRails
[18:28:31] SteenJobs: jhass: aright, so nginx is giving me the no such file or directory error again (re sockets/puma.sock)
[18:28:39] SteenJobs: i figured restarting puma would recreate the file
[18:28:51] SteenJobs: but when i try, it gives me the neither pid… error
[18:29:11] jhass: any output for sudo ss -xlp | grep puma
[18:30:09] SteenJobs: jhass: although a friend is helping too, and i’m not sure if he’s in the server rn
[18:30:22] SteenJobs: hence the h/o so i can check with him and make your life a bit easier ha
[18:30:53] jhass: eh yeah, two people fiddling at the same stuff at the same stuff is a bad idea
[18:31:08] jstransky: has joined #RubyOnRails
[18:31:14] jhass: get on the same account, get tmux and let one run it and the other run tmux at
[18:31:30] SteenJobs: jhass: ha yea, i immediately logged out of the server to let him do his stuff when his response to my how’s it going was “jus a sec"
[18:31:45] SteenJobs: in dev talk: “stfu i’m in the zone you’re gonna kill my train of thought"
[18:32:21] choke: bad sitation to be in -- i was in the same one recently when i had to do a security update to our systems...
[18:32:27] antgel: has joined #RubyOnRails
[18:32:41] SteenJobs: after it’s fixed though, i’m gonna have to figure out what went wrong - bec the founder has a demo on tuesday and you know how non tech people get when things go awry....
[18:33:12] SteenJobs: choke: yea it’s rough and intimidating. but being in a sink or swim sitch with no alternatives is a pretty good way to learn tbh
[18:34:31] tubbo: SteenJobs: you could always just be a human being and ask him if he's on the server ;)
[18:34:34] choke: yeah, sad news is for me i had no access to the servers... so had to programmatically backup the database, write a salt configuration and spool up a whole new cluster of servers, test, and reset dns
[18:34:51] SteenJobs: tubbo: haha i did, that’s what his “jus a sec” meant. which is why i logged out to let him do his thing!
[18:35:37] SteenJobs: tubbo: and he’s quiiiite a talented dev which is good. i’ll keep you updated, i knoww you’re on the edge of your seat
[18:35:58] tubbo: please don't :P
[18:36:01] diego1: has joined #RubyOnRails
[18:36:22] choke: unless the entire cluster bursts into flames that is... then we want pics
[18:38:48] ashleyw: has joined #RubyOnRails
[18:42:21] pawnbox: has joined #RubyOnRails
[18:44:09] macsteps: has joined #RubyOnRails
[18:45:18] Megamos: has joined #RubyOnRails
[18:47:35] akshat_: has joined #RubyOnRails
[18:48:25] tildes_: has joined #RubyOnRails
[18:50:42] rafaelfranca: has joined #RubyOnRails
[18:53:06] lukec: has joined #RubyOnRails
[18:54:41] DoctorMonocular: has joined #RubyOnRails
[19:00:41] barhum2013: has joined #RubyOnRails
[19:00:47] Dios: has joined #RubyOnRails
[19:04:26] jancel: has joined #RubyOnRails
[19:07:48] manfrin: has joined #RubyOnRails
[19:10:13] kgrz: has joined #RubyOnRails
[19:10:37] snowy: has joined #RubyOnRails
[19:17:28] SteenJobs: tubbo: aright got it fixed, but no idea why it went down today. honestly it should never have worked which is the weird thing.
[19:17:55] roamingdog: has joined #RubyOnRails
[19:18:11] groatyoats: has joined #RubyOnRails
[19:19:12] SteenJobs: tubbo: app root has a current and a shared directory - the correct config was in shared/puma.rb, but puma by default was using current/config/puma.rb. copying the shared/puma.rb into current fixed things. also /etc/puma.conf was missing /current at the end of its path.
[19:19:25] roamingdog: has joined #RubyOnRails
[19:19:32] idefine: has joined #RubyOnRails
[19:19:56] owenjones: has joined #RubyOnRails
[19:20:22] SteenJobs: short story is i have no effing clue why this happened today
[19:22:02] rafaelfranca: has joined #RubyOnRails
[19:22:06] c355E3B: has joined #RubyOnRails
[19:22:10] norc: SteenJobs, sounds like your capistrano might not be set up properly.
[19:22:22] norc: ACTION does some wild guessing
[19:22:54] SteenJobs: norc: right so i never touched any of the prod stuff. it was the dev who quit. i agree though, i presumed that cap would copy the proper puma.rb config into the current directory
[19:24:21] norc: SteenJobs, do you have these files set up as linked_files in your deploy.rb?
[19:24:30] norc: (Or some file that capistrano uses)
[19:24:49] SteenJobs: norc: would gisting my deploy.rb help? :D
[19:24:57] norc: SteenJobs, that depends on the contents!
[19:25:00] pawnbox: has joined #RubyOnRails
[19:25:11] SteenJobs: figured it’d probs be more efficient than my trying to decipher it. one sec.
[19:25:24] norc: SteenJobs, it would be more efficient if you solved your own problem.
[19:25:27] norc: But it is what it is.
[19:25:54] SteenJobs: agreed. although this isn’t an area i have any familiarity with and was forced upon me against my will, so better start learning
[19:26:00] norc: I'm just teasing.
[19:26:05] sloggerkhan: has joined #RubyOnRails
[19:27:01] SteenJobs: hey listen, this chat is how i first learned how to code so i’m quite biased towards this channel
[19:27:09] sloggerkhan: Is redis-rails maintained? Its homepage listed on rubygems seems to be down.
[19:27:31] SteenJobs: norc: https://gist.github.com/jesiegel1/e9f0849cf99e2c13901ef0028af11f65
[19:27:33] idefine: has joined #RubyOnRails
[19:27:42] s2013: has joined #RubyOnRails
[19:28:13] SteenJobs: norc: thank goodness for working remotely and having a fridge full of cold beers. overnight it became an effing oven in NYC
[19:28:27] Ericx2x: has joined #RubyOnRails
[19:28:47] SteenJobs: otherwise this would be so much more stressful ha
[19:30:20] norc: SteenJobs, you need those linked_files and linked_dirs that you commented out.
[19:30:33] norc: (Configured appropriately of course)
[19:31:04] norc: SteenJobs, they will make sure that each new capistrano installation gets symlinks to the respective shared files/directories.
[19:31:13] SteenJobs: ok cool - so i didn’t comment those out, it was the other dev - which raises the question of how the hell was it working this whole time until today?
[19:31:26] norc: SteenJobs, cool your head. Just fix it and move on.
[19:32:01] SteenJobs: yea, i’m pretty chill about it. the only problem is the non-tech founders think it’s my fault bec this happened to fail a day after the dev in charge of prod quit and i had to take over blindly
[19:32:16] SteenJobs: and he has a demo on tues, so i need to reassure them that i didn’t eff anything up
[19:34:33] patrick_star_2: has joined #RubyOnRails
[19:38:27] snowy: has joined #RubyOnRails
[19:38:58] moep: has joined #RubyOnRails
[19:40:13] hahuang65: has joined #RubyOnRails
[19:41:33] mercerist: has joined #RubyOnRails
[19:44:55] jenrzzz: has joined #RubyOnRails
[19:49:38] groatyoats: has joined #RubyOnRails
[19:51:42] yellow5: has joined #RubyOnRails
[19:52:22] ktchup: has joined #RubyOnRails
[19:55:25] namxam: has joined #RubyOnRails
[19:55:41] gambl0re: has joined #RubyOnRails
[19:57:11] tvw: has joined #RubyOnRails
[19:58:26] groatyoats: has joined #RubyOnRails
[19:59:35] pawnbox: has joined #RubyOnRails
[20:01:05] groatyoats: has joined #RubyOnRails
[20:06:06] Palsson: has joined #RubyOnRails
[20:07:09] cd83x: has joined #RubyOnRails
[20:08:24] heyrhett: has joined #RubyOnRails
[20:08:55] heyrhett: Does anyone know of any example guides for using turbolinks 5?
[20:10:43] omgsmh: has joined #RubyOnRails
[20:13:14] kgrz: has joined #RubyOnRails
[20:13:24] ur5us: has joined #RubyOnRails
[20:16:59] nettoweb: has joined #RubyOnRails
[20:17:08] desnudopenguino: has joined #RubyOnRails
[20:18:42] dopamean_: has joined #RubyOnRails
[20:19:28] hcnewsom: has joined #RubyOnRails
[20:24:20] tildes_: has joined #RubyOnRails
[20:25:22] jenrzzz: has joined #RubyOnRails
[20:25:27] macsteps: has joined #RubyOnRails
[20:29:52] macsteps: has joined #RubyOnRails
[20:32:19] honeyroasted: has joined #RubyOnRails
[20:34:12] Dreamer3: has joined #RubyOnRails
[20:35:23] wingedsnake: has joined #RubyOnRails
[20:35:30] ktchup_: has joined #RubyOnRails
[20:35:56] desnudopenguino: i can't get carrierwave to upload grrr
[20:36:39] groatyoats: has joined #RubyOnRails
[20:38:27] mwlang: has joined #RubyOnRails
[20:39:57] triptec: has joined #RubyOnRails
[20:40:42] markfletcher: has joined #RubyOnRails
[20:41:43] arBmind: has joined #RubyOnRails
[20:42:04] bruce_lee: has joined #RubyOnRails
[20:43:02] Dreamer3: so wasn't there a rails newbies or something presentation at railsconf?
[20:43:05] Dreamer3: I can't remmeber the name now
[20:44:09] heyrhett: If i'm making a basic todo app, and i want to click a "Add" button to add a new todo, the button is a turbolink. How do I structure that?
[20:44:10] fox_mulder_cp: heyrhett: i interest in this too
[20:44:47] heyrhett: I created a non-restful link to create the todo item and redirect back to the page to show the item added, but the url blinks
[20:44:57] heyrhett: should I be using remote => true in my link?
[20:45:07] wingedsnake: has joined #RubyOnRails
[20:45:28] mdw: has joined #RubyOnRails
[20:46:13] Dreamer3: "_______ ruby"... by a popular author, what is it... i can't remember the name
[20:46:26] norc: heyrhett, before I entertain this: Do you know what turbolinks is?
[20:46:38] idefine: has joined #RubyOnRails
[20:46:50] chipotle: has joined #RubyOnRails
[20:47:47] heyrhett: i've worked with turbolinks , and tl3 before, but now I don't know about how to use tl5
[20:47:56] fox_mulder_cp: Dreamer3: official giuides, rails in actions, agile develompent with rails 4
[20:48:10] Dreamer3: no the name of the book is something ruby
[20:48:16] Dreamer3: not responsible
[20:48:19] Dreamer3: grrr, i can't think of it
[20:48:33] fox_mulder_cp: Dreamer3: DHH? %)
[20:49:20] norc: Dreamer3, oh yes. _______ Ruby. Brilliant book.
[20:49:31] wingedsnake: ncurses with ruby?
[20:49:37] fox_mulder_cp: Dreamer3: oh, wait. confident ruby?
[20:49:42] Dreamer3: !!!!!!! yes
[20:49:42] helpa: You are the worst kind of person
[20:49:57] Dreamer3: fox_mulder_cp: thanks!
[20:50:10] SteenJobs: has joined #RubyOnRails
[20:50:25] s2013: has joined #RubyOnRails
[20:50:27] fox_mulder_cp: Dreamer3: in my brain - ruby = rails, so :)
[20:51:05] Dreamer3: ok so it's codenewbie, did they kill the slack chat though?
[20:51:37] heyrhett: norc: do you have guides about how to use TL5?
[20:52:02] fox_mulder_cp: slack? hmhm. i know's that now all people migrate to telegram..
[20:52:08] Dreamer3: n/m, found it
[20:52:10] groatyoats: has joined #RubyOnRails
[20:52:18] fox_mulder_cp: heyrhett: what is tl5 turbolinks?
[20:52:31] heyrhett: Turbolinks 5 is the new turbolinks
[20:53:12] norc: heyrhett, nope. I would have just suggested you removed turbolinks if you turned out to not be sure about it. Nevermind me.
[20:54:07] fox_mulder_cp: The next version of Ruby, 2.4, unifies Fixnum and Bignum into Integer.
[20:54:20] fox_mulder_cp: so all of them stays as integer?
[20:54:27] norc: fox_mulder_cp, externally
[20:54:34] owenjones: has joined #RubyOnRails
[20:54:40] norc: fox_mulder_cp, internally it uses fixnum/bignum implementations
[20:55:22] fox_mulder_cp: norc: i knows about int32/64 problem, based on production platform
[20:55:43] mwlang: can a scope be defined to return one record or nil or is that best done with a class method?
[20:55:43] datanoise: has joined #RubyOnRails
[20:55:57] norc: mwlang, let your scope return a relation (which can be empty)
[20:55:59] fox_mulder_cp: but now some distro down x32 arch, such as centos7
[20:58:34] mwlang: norc: well, I’m specifically wanting to do Activity.today that will return the last record inserted with a timestamp for today’s date…just thinking it would be nicer as Activity.today rather than Activity.today.first
[20:59:01] norc: mwlang, such logic is probably better placed into a decorator or helper
[20:59:40] voidDotClass: has joined #RubyOnRails
[20:59:46] SteenJobs: has joined #RubyOnRails
[20:59:51] hahuang65: has joined #RubyOnRails
[21:00:22] mwlang: yeah, you’re probably right…probably getting silver-bulletitis with scopes here.
[21:00:52] voidDotClass: I need to populate my db with some test data, but I don't want to run seed.rb as that also clears existing data (right?). Is it possible to write a one off script and run that?
[21:01:24] fox_mulder_cp: voidDotClass: for testing purposes rails used a test db
[21:01:26] mwlang: voidDotClass: write your own rake tasks.
[21:01:36] fox_mulder_cp: which is cleared after tests ending
[21:01:36] voidDotClass: Its not for testing purposes
[21:01:43] voidDotClass: Its not for testing, sorry.
[21:01:51] voidDotClass: It needs to go into the prod db
[21:02:08] norc: voidDotClass, rake task or just a simple script that you execute with rails runner
[21:02:42] voidDotClass: norc, for the 2nd option, 1) where would i put that script, same loc as seed.rb? 2) what's the command to execute it with the rails runner?
[21:02:52] m_antis: has joined #RubyOnRails
[21:03:28] norc: voidDotClass, I have a separate scripts/ directory for runner scripts
[21:03:31] fox_mulder_cp: voidDotClass: task, which can be runned from cmd shell?
[21:03:39] jhack: has joined #RubyOnRails
[21:03:45] voidDotClass: norc, how do you run them?
[21:03:50] voidDotClass: i don't want to do a rake task
[21:03:55] norc: voidDotClass, rails help runner
[21:04:18] norc: voidDotClass, though if its a one time tihng you dont need to place it into any particular place.
[21:04:29] norc: Just do something like RAILS_ENV=production bundle exec rails runner script.rb
[21:04:31] norc: and then delete the script.
[21:04:38] voidDotClass: norc, that one shows docs for rails new <AppName>
[21:05:11] norc: voidDotClass, mmm http://guides.rubyonrails.org/command_line.html#rails-runner
[21:05:53] jenrzzz: has joined #RubyOnRails
[21:06:28] ebbflowgo: has joined #RubyOnRails
[21:07:27] diegoaguilar: has joined #RubyOnRails
[21:11:47] ebbflowgo: has joined #RubyOnRails
[21:11:56] indianowl: has joined #RubyOnRails
[21:13:43] kgrz: has joined #RubyOnRails
[21:14:01] triptec: has joined #RubyOnRails
[21:15:18] yos7ph: has joined #RubyOnRails
[21:17:43] idefine: has joined #RubyOnRails
[21:19:03] Terens: has joined #RubyOnRails
[21:19:19] ebbflowgo: has joined #RubyOnRails
[21:21:19] SteenJobs: has joined #RubyOnRails
[21:24:25] jancel: has joined #RubyOnRails
[21:24:58] bool_: has joined #RubyOnRails
[21:30:03] am55: has joined #RubyOnRails
[21:30:21] dgncn: has joined #RubyOnRails
[21:30:34] barhum2013: has joined #RubyOnRails
[21:33:54] roamingdog: has joined #RubyOnRails
[21:34:34] idefine: has joined #RubyOnRails
[21:34:54] allcentury: has joined #RubyOnRails
[21:35:06] captproton: has joined #RubyOnRails
[21:40:58] idefine: has joined #RubyOnRails
[21:41:06] pawnbox: has joined #RubyOnRails
[21:44:23] choke: has joined #RubyOnRails
[21:44:49] diosmiux: has joined #RubyOnRails
[21:47:17] jancel: has joined #RubyOnRails
[21:47:17] diosmiux: has left #RubyOnRails: ()
[21:48:01] idefine: has joined #RubyOnRails
[21:48:30] rubyonrails748: has joined #RubyOnRails
[21:49:30] namxam: has joined #RubyOnRails
[21:50:50] macsteps: has joined #RubyOnRails
[21:51:29] ur5us: has joined #RubyOnRails
[21:53:23] moei: has joined #RubyOnRails
[21:55:49] rbr: has joined #RubyOnRails
[22:01:12] smathy: has joined #RubyOnRails
[22:02:41] idefine: has joined #RubyOnRails
[22:02:50] gremly: has joined #RubyOnRails
[22:04:02] deur-_: has joined #RubyOnRails
[22:04:11] Palsson: has joined #RubyOnRails
[22:05:18] djbkd: has joined #RubyOnRails
[22:06:30] DoctorMonocular: has joined #RubyOnRails
[22:06:30] roamingdog: has joined #RubyOnRails
[22:07:55] jancel: has joined #RubyOnRails
[22:11:21] sneakerhax: has joined #RubyOnRails
[22:12:06] chipotle: has joined #RubyOnRails
[22:13:39] smathy: has joined #RubyOnRails
[22:15:22] neha-: how do i recreate my database from migrations only?
[22:15:52] mikecmpbll: has joined #RubyOnRails
[22:16:25] kgrz: has joined #RubyOnRails
[22:16:44] duncannz: has joined #RubyOnRails
[22:23:17] xlegoman: has joined #RubyOnRails
[22:25:22] smathy: has joined #RubyOnRails
[22:26:35] pawnbox: has joined #RubyOnRails
[22:31:52] owenjones: has joined #RubyOnRails
[22:32:20] idefine: has joined #RubyOnRails
[22:33:05] gheegh: has joined #RubyOnRails
[22:34:59] bl4ck_ic3: has joined #RubyOnRails
[22:40:46] alfiemax: has joined #RubyOnRails
[22:41:19] johnchalekson: has joined #RubyOnRails
[22:41:49] johnchalekson: has joined #RubyOnRails
[22:42:19] johnchalekson: has joined #RubyOnRails
[22:46:56] sypheren: has joined #RubyOnRails
[22:48:07] superlou: has joined #RubyOnRails
[22:49:33] mikecmpbll: has joined #RubyOnRails
[22:51:20] idefine: has joined #RubyOnRails
[22:53:11] theblang: has joined #RubyOnRails
[22:54:40] pawnbox: has joined #RubyOnRails
[22:55:29] banister: has joined #RubyOnRails
[22:56:41] maxz: has joined #RubyOnRails
[23:00:30] tildes_: has joined #RubyOnRails
[23:02:03] quazimodo: has joined #RubyOnRails
[23:02:05] quazimod1: has joined #RubyOnRails
[23:02:32] acovrig: has joined #RubyOnRails
[23:04:07] ddv: has joined #RubyOnRails
[23:04:21] jancel: has joined #RubyOnRails
[23:04:36] jstransky: has joined #RubyOnRails
[23:07:11] hahuang65: has joined #RubyOnRails
[23:08:50] audy: has joined #RubyOnRails
[23:08:57] audy: rspec: The block passed to the `change` matcher must use `{ ... }` instead of do/end
[23:09:26] audy: ACTION goes to #rspec
[23:09:27] audy: has left #RubyOnRails: ("bye")
[23:10:30] mikecmpbll: has joined #RubyOnRails
[23:12:43] ecksit: has joined #RubyOnRails
[23:15:39] pawnbox: has joined #RubyOnRails
[23:15:45] chintanparikh: has joined #RubyOnRails
[23:16:16] Inside: has joined #RubyOnRails
[23:16:16] Inside: has joined #RubyOnRails
[23:17:10] kgrz: has joined #RubyOnRails
[23:18:35] ur5us: has joined #RubyOnRails
[23:19:00] ddv: has joined #RubyOnRails
[23:24:53] LastWhisper____: has joined #RubyOnRails
[23:25:23] refinerysource: has joined #RubyOnRails
[23:25:50] enrique13: has joined #RubyOnRails
[23:26:42] idefine: has joined #RubyOnRails
[23:27:00] choke: has joined #RubyOnRails
[23:29:23] iwada: has joined #RubyOnRails
[23:34:56] chipotle: has joined #RubyOnRails
[23:38:13] gambl0re: has joined #RubyOnRails
[23:39:00] jaequery: has joined #RubyOnRails
[23:41:10] triptec: has joined #RubyOnRails
[23:42:20] Olipro_: has joined #RubyOnRails
[23:45:22] DoctorMonocular: has joined #RubyOnRails
[23:45:24] gambl0re: has joined #RubyOnRails
[23:45:37] owenjones: has joined #RubyOnRails
[23:45:45] aegis3121: has joined #RubyOnRails
[23:46:12] rafaelfranca: has joined #RubyOnRails
[23:46:21] voidDotClass: has joined #RubyOnRails
[23:47:21] jaequery: has joined #RubyOnRails
[23:51:30] sypheren: has joined #RubyOnRails
[23:52:55] benlieb: has joined #RubyOnRails
[23:54:06] kies: has joined #RubyOnRails
[23:55:00] dalbuschat: has joined #RubyOnRails
[23:58:43] maxz: has joined #RubyOnRails
[23:58:51] mwlang: why is Arel wrapping my table names and fields in double quotes? (mysql2 adaptor): https://gist.github.com/mwlang/75eaf3ccefdb837227508f3d1994319e