« Back to channel list

#RubyOnRails - 29 November 2015

Forward 1 day »
[02:33:39] helpa: has joined #RubyOnRails
[02:33:54] freite: or just kill the unicorn process if it disconnect
[02:34:06] Radar: !botsnack
[02:34:06] helpa: Nom nom. Thanks, Radar!
[02:34:27] hnanon_: I have this line in my create, after save: @user = @company.users.first
[02:34:32] hnanon_: Followed by @company.set_user_role(@user)
[02:35:06] maloik: has joined #RubyOnRails
[02:35:09] FailBit: in after_create?
[02:35:15] FailBit: or after_save or both
[02:35:20] hnanon_: In my Company model in the set_user_role method I have: user.update(role: 0)
[02:35:45] hnanon_: In the create action, after saving the company.
[02:36:45] annlewis: has joined #RubyOnRails
[02:39:40] gambl0re: has joined #RubyOnRails
[02:39:40] hnanon_: Gist: https://gist.github.com/anonymous/3b88ff301dc3e309f7f3
[02:40:45] jacksparrow007: has joined #RubyOnRails
[02:41:53] Rodya_: has joined #RubyOnRails
[02:47:36] FailBit: my back hurts
[02:47:41] FailBit: I need to go lie down
[02:50:54] edj: has joined #RubyOnRails
[02:51:17] edj: do i need to know metaprogramming in ruby before i start learning rails?
[02:51:28] edj: radar: I ordered your book
[02:51:37] Radar: edj: Get Rails 4 in Action. Go through the first 3 chapters and see if you know enough Ruby to not struggle there.
[02:51:56] edj: radar: ok
[02:52:54] renews: has joined #RubyOnRails
[02:53:36] norviller: has joined #RubyOnRails
[02:56:30] Guest52138: has joined #RubyOnRails
[02:56:52] jpaulo7: has joined #RubyOnRails
[03:01:30] norviller: has joined #RubyOnRails
[03:02:07] blackmesa: has joined #RubyOnRails
[03:04:23] norviller: has joined #RubyOnRails
[03:05:31] norviller: has joined #RubyOnRails
[03:08:22] bronson: has joined #RubyOnRails
[03:09:39] n00bDev: has joined #RubyOnRails
[03:11:16] mary5030: has joined #RubyOnRails
[03:12:15] pawnbox: has joined #RubyOnRails
[03:16:58] bronson: has joined #RubyOnRails
[03:17:10] Megamos: has joined #RubyOnRails
[03:17:32] shibabu: has joined #RubyOnRails
[03:20:11] kmckelvin: has joined #RubyOnRails
[03:23:16] chouhoulis: has joined #RubyOnRails
[03:23:19] triptec: has joined #RubyOnRails
[03:24:30] pyemkey: has joined #RubyOnRails
[03:25:49] upgrayeddd: has joined #RubyOnRails
[03:28:21] drale2k_: has joined #RubyOnRails
[03:28:51] mary5030: has joined #RubyOnRails
[03:31:33] nya: has joined #RubyOnRails
[03:33:11] yoongkang: has joined #RubyOnRails
[03:34:47] flip_digits: has joined #RubyOnRails
[03:35:30] wldcordeiro: has joined #RubyOnRails
[03:37:02] maloik: has joined #RubyOnRails
[03:37:39] annlewis: has joined #RubyOnRails
[03:42:01] n00bDev: has joined #RubyOnRails
[03:42:19] Scriptonaut: has left #RubyOnRails: ()
[03:50:09] vying: has joined #RubyOnRails
[03:50:10] owenjones: has joined #RubyOnRails
[03:51:10] troysk: has joined #RubyOnRails
[03:51:40] pawnbox: has joined #RubyOnRails
[03:52:15] medright: has joined #RubyOnRails
[03:54:13] maloik: has joined #RubyOnRails
[03:54:52] Trynemjoel: has joined #RubyOnRails
[03:59:17] ivanyk_: has joined #RubyOnRails
[04:05:07] blackmesa: has joined #RubyOnRails
[04:09:37] mary5030: has joined #RubyOnRails
[04:12:47] medright: has joined #RubyOnRails
[04:16:49] braincrash: has joined #RubyOnRails
[04:20:57] kmckelvin: has joined #RubyOnRails
[04:21:15] skreem: radar: I think I figured out why my engine isn???t autoloading: https://github.com/bundler/bundler/issues/1041 I still don???t understand why my engine is the only one that needs an explicit require after bundler, but I can see why require isn???t quite loading everything. I???m not sure if I just resurfaced a bug, or I???m misunderstanding this conversation (it???s possible they decided this wasn???t a bug and should be left in ther
[04:23:37] renews: has joined #RubyOnRails
[04:24:00] edj: radar: totally lost i bought well grounded rubyist
[04:24:02] chouhoulis: has joined #RubyOnRails
[04:24:38] edj: radar: from what ive seen in that i think im about 1/2 done with ruby
[04:25:09] Crypta: has joined #RubyOnRails
[04:29:23] tinderusr_: has joined #RubyOnRails
[04:30:57] pawnbox: has joined #RubyOnRails
[04:32:43] ynonp: has joined #RubyOnRails
[04:37:11] ace05_: has joined #RubyOnRails
[04:37:19] bratsche: has joined #RubyOnRails
[04:37:50] kies: has joined #RubyOnRails
[04:38:27] annlewis: has joined #RubyOnRails
[04:41:22] vestinst: has joined #RubyOnRails
[04:41:27] Jasaka: has joined #RubyOnRails
[04:41:37] owenjones: has joined #RubyOnRails
[04:44:22] dandaman: has joined #RubyOnRails
[04:45:12] Axsuul: has joined #RubyOnRails
[04:46:20] roshanavand: has joined #RubyOnRails
[04:48:45] flip_digits: Question: Does anyone know how I can follow a request made to a controller action to its final destination?
[04:49:25] pontiki: starting from where?
[04:49:45] pontiki: actually, what do you mean by "follow" ?
[04:50:03] n00bDev: how do i declare a scope for a model that depends on the a variable thats being passed by a for loop?
[04:50:12] flip_digits: I would like to see each controller it hits all the way down to the model
[04:51:32] flip_digits: n00bdev: I don't understand the question
[04:51:32] pontiki: flip_digits: i don't know exactly what you're looking for there -- usually the controller interacts directly with the model, or it works through intermediates that you implement
[04:52:17] pawnbox: has joined #RubyOnRails
[04:52:21] flip_digits: I have an admin controller that is passing the request down do subclasses
[04:52:29] pontiki: that you wrote?
[04:52:38] flip_digits: no legacy appliction
[04:52:59] pontiki: a code spelunking
[04:53:03] dopie: has joined #RubyOnRails
[04:53:56] Trynemjoel: has joined #RubyOnRails
[04:54:04] pontiki: you might look at strace
[04:54:22] pawnbox: has joined #RubyOnRails
[04:54:30] dopie: Hey all quick question I have https://gist.github.com/staycreativedesign/1320b2f9445ac0c7fbba my problem is when editing/updating the form if i leave this value blank it makes it not have the original values i have selected before
[04:54:52] dopie: Do i a add a selected: option?
[04:55:02] dopie: I tried that and it still didn't work
[04:55:23] flip_digits: pontiki: thanks
[04:55:39] pontiki: flip_digits: you might not thank me later... :/
[04:56:02] n00bDev: scope :id -> {where(id: "user.id")}
[04:56:26] n00bDev: id will be not always be the same
[04:56:40] maloik: has joined #RubyOnRails
[04:58:47] annlewis: has joined #RubyOnRails
[04:58:52] n00bDev: for trace use byebug
[04:59:09] n00bDev: it will print the stack trace of whatever you reach or wherever you want to follow code
[04:59:42] pontiki: it's also possible to print out the stacktrace directly from the point you want to examine it
[05:00:05] n00bDev: oh how to do that?
[05:00:32] pawnbox: has joined #RubyOnRails
[05:01:13] pontiki: http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-caller
[05:01:41] joshkovach: has joined #RubyOnRails
[05:07:40] kies: has joined #RubyOnRails
[05:08:09] blackmesa: has joined #RubyOnRails
[05:10:09] skreem: n00bdev: are scopes supposed to always be in that format? I had one in a project that looked like this: scope :id, order_by([:last_post_at, :desc])
[05:10:58] skreem: It never errored so I never paid attention, but I was looking at someone???s fork of my project and noticed they swapped that code with: scope :id, -> { order_by([:last_post_at, :desc]) } and called the path ???scope fix"
[05:14:09] arup_r: has joined #RubyOnRails
[05:15:41] owenjones: has joined #RubyOnRails
[05:20:09] shibabu: has joined #RubyOnRails
[05:21:42] kmckelvin: has joined #RubyOnRails
[05:24:42] chouhoulis: has joined #RubyOnRails
[05:25:40] nfsnobody: has joined #RubyOnRails
[05:25:41] nfsnobody: has joined #RubyOnRails
[05:26:32] pyemkey: has joined #RubyOnRails
[05:28:08] matt_d: has joined #RubyOnRails
[05:30:23] user1138: has joined #RubyOnRails
[05:31:37] owenjones: has joined #RubyOnRails
[05:35:01] dandaman: has joined #RubyOnRails
[05:37:35] user1138: has joined #RubyOnRails
[05:37:57] Hans267: has joined #RubyOnRails
[05:38:47] troysk: has joined #RubyOnRails
[05:40:37] Hans267: has joined #RubyOnRails
[05:41:11] sevenseacat: has joined #RubyOnRails
[05:42:46] ur5us: has joined #RubyOnRails
[05:46:22] Fire-Dragon-DoL: so, I was going to make a blog, with js, react for fast page switch and such... then I thought: how a blog works? You view one page, wait a lot, move to the next one: fast page switch is uselss. Removed ALL JS from the blog. lol
[05:46:47] htmldrum: has joined #RubyOnRails
[05:48:34] Hans267_: has joined #RubyOnRails
[05:49:09] Hans267_: has left #RubyOnRails: ()
[05:50:19] Hans267: has joined #RubyOnRails
[05:53:53] ellisTAA: has joined #RubyOnRails
[05:57:23] maloik: has joined #RubyOnRails
[05:58:11] ellisTAA: in order to create a rails object by making a post request i need some sort of id ??? how do i do this with json?
[05:58:56] ellisTAA: like i???m making a http get request to my torrent#new action ??? and i get back a response ??? and i need to somehow use something in that response and send it back in my post request to create an object ???
[05:59:31] annlewis: has joined #RubyOnRails
[06:00:12] dandaman: has joined #RubyOnRails
[06:00:26] ellisTAA: i think it might be called an access token ...?
[06:00:38] owenjones: has joined #RubyOnRails
[06:01:24] lxsameer: has joined #RubyOnRails
[06:01:24] lxsameer: has joined #RubyOnRails
[06:05:23] agoldboi: has joined #RubyOnRails
[06:11:08] blackmesa: has joined #RubyOnRails
[06:12:27] renews: has joined #RubyOnRails
[06:12:38] kgrz: has joined #RubyOnRails
[06:14:18] dandaman: has joined #RubyOnRails
[06:14:48] Oog: has joined #RubyOnRails
[06:14:56] triptec: has joined #RubyOnRails
[06:15:00] Oog: in dev console secret_key_base is nil why is that? shouldnt it load it?
[06:16:04] Oog: it is set in secrets.yml
[06:20:58] n00bDev: has joined #RubyOnRails
[06:22:27] kmckelvin: has joined #RubyOnRails
[06:23:51] dlitz: has joined #RubyOnRails
[06:24:35] kgrz: Is that file being read during startup?
[06:25:27] chouhoulis: has joined #RubyOnRails
[06:25:34] akosednar: has joined #RubyOnRails
[06:25:53] dideler: has joined #RubyOnRails
[06:26:10] kgrz: http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml
[06:31:08] ur5us: has joined #RubyOnRails
[06:34:52] njero: has joined #RubyOnRails
[06:38:07] jayne: has joined #RubyOnRails
[06:41:54] Glenny: has joined #RubyOnRails
[06:46:38] ellisTAA: has left #RubyOnRails: ()
[06:48:16] Cervajz: has joined #RubyOnRails
[06:48:30] Helheim: has joined #RubyOnRails
[06:50:54] yardenbar: has joined #RubyOnRails
[06:51:29] yoongkang: has joined #RubyOnRails
[06:52:59] Cervajz: has joined #RubyOnRails
[06:53:57] htmldrum: has joined #RubyOnRails
[06:54:55] johnflux: has joined #RubyOnRails
[06:55:14] stannard: has joined #RubyOnRails
[06:55:32] The_Phoenix: has joined #RubyOnRails
[06:58:22] maloik: has joined #RubyOnRails
[06:59:09] umbridge: has joined #RubyOnRails
[06:59:38] nertzy: has joined #RubyOnRails
[07:00:09] annlewis: has joined #RubyOnRails
[07:02:27] nertzy: has joined #RubyOnRails
[07:04:42] Hans267: has left #RubyOnRails: ()
[07:05:44] dionysus69: has joined #RubyOnRails
[07:06:42] reoring: has joined #RubyOnRails
[07:11:31] Cervajz__: has joined #RubyOnRails
[07:12:04] Pazician: has joined #RubyOnRails
[07:12:35] Pazician: has joined #RubyOnRails
[07:14:10] blackmesa: has joined #RubyOnRails
[07:14:30] worknick: has joined #RubyOnRails
[07:15:30] worknick: i have has many commetns in user model and belongs to user on comments model. my comments migration has refernces :user. my comment table has user_id column. now, how can i access user.email from comments record in my view?
[07:15:31] pacso: has joined #RubyOnRails
[07:17:01] pacso: has joined #RubyOnRails
[07:17:24] colleenmcguckin: has joined #RubyOnRails
[07:22:04] n00bDev: has joined #RubyOnRails
[07:22:32] s2013: has joined #RubyOnRails
[07:23:14] kmckelvin: has joined #RubyOnRails
[07:23:40] FooBarWidget: has joined #RubyOnRails
[07:23:45] shibabu: has joined #RubyOnRails
[07:25:06] build22: has joined #RubyOnRails
[07:25:48] pacso: has joined #RubyOnRails
[07:26:15] chouhoulis: has joined #RubyOnRails
[07:27:02] djbkd: has joined #RubyOnRails
[07:27:49] srinidhi: has joined #RubyOnRails
[07:29:24] pyemkey: has joined #RubyOnRails
[07:31:18] BrianKim: has joined #RubyOnRails
[07:34:57] BrianKim: has left #RubyOnRails: ()
[07:36:01] quazimodo: has joined #RubyOnRails
[07:37:42] njero: has joined #RubyOnRails
[07:38:00] bergs: has joined #RubyOnRails
[07:39:38] srinidhi1: has joined #RubyOnRails
[07:43:04] dionysus69: has joined #RubyOnRails
[07:44:54] pacso: has joined #RubyOnRails
[07:49:15] antgel: has joined #RubyOnRails
[07:51:44] pyemkey: has joined #RubyOnRails
[07:52:04] blackmesa: has joined #RubyOnRails
[07:53:01] yoongkang: has joined #RubyOnRails
[07:53:05] maloik: has joined #RubyOnRails
[07:58:41] darutoko: has joined #RubyOnRails
[07:59:30] nocontrol: has joined #RubyOnRails
[08:00:57] annlewis: has joined #RubyOnRails
[08:01:17] renews: has joined #RubyOnRails
[08:07:36] antgel: has joined #RubyOnRails
[08:09:07] build22_: has joined #RubyOnRails
[08:09:14] edward_: has joined #RubyOnRails
[08:09:46] r0bby_: has joined #RubyOnRails
[08:12:59] xardion: has joined #RubyOnRails
[08:13:32] xhoy: has joined #RubyOnRails
[08:13:32] futilegames: has joined #RubyOnRails
[08:13:51] hive-mind: has joined #RubyOnRails
[08:14:09] jahbrewski: has joined #RubyOnRails
[08:17:26] dshoreman: has joined #RubyOnRails
[08:18:52] nickenchuggets: has joined #RubyOnRails
[08:18:52] nickenchuggets: has joined #RubyOnRails
[08:22:54] n00bDev: has joined #RubyOnRails
[08:23:59] kmckelvin: has joined #RubyOnRails
[08:25:47] kies^: has joined #RubyOnRails
[08:25:55] Encapsulation: has joined #RubyOnRails
[08:26:59] chouhoulis: has joined #RubyOnRails
[08:33:16] ur5us: has joined #RubyOnRails
[08:33:46] agoldboi: has joined #RubyOnRails
[08:46:57] tildes: has joined #RubyOnRails
[08:47:11] akshat: has joined #RubyOnRails
[08:47:17] roshanavand: has joined #RubyOnRails
[08:48:17] RegulationD: has joined #RubyOnRails
[08:51:27] dlitz: has joined #RubyOnRails
[08:51:57] maloik: has joined #RubyOnRails
[08:56:49] stannard: has joined #RubyOnRails
[08:58:19] yardenbar: has joined #RubyOnRails
[08:58:52] shibabu: has joined #RubyOnRails
[09:00:55] yashinbasement: has joined #RubyOnRails
[09:00:57] SalexW: has joined #RubyOnRails
[09:01:04] arup_r: has joined #RubyOnRails
[09:01:19] nightsh: has joined #RubyOnRails
[09:01:33] pacso: has joined #RubyOnRails
[09:01:52] annlewis: has joined #RubyOnRails
[09:01:54] srinidhi: has joined #RubyOnRails
[09:02:39] ace05: has joined #RubyOnRails
[09:03:28] yashinbasement: Hi guys, I am having an issue while installing a gem called rb-grib on Ubuntu 15.04, in order to install this gem we need to install grib_api , when I install this api I always get an error grib_api could not be found. Has anyone had installed this gem before and had the same experience , really looking forward to seek some help.
[09:08:56] null__: has joined #RubyOnRails
[09:08:56] triptec: has joined #RubyOnRails
[09:09:21] tildes: has joined #RubyOnRails
[09:09:33] null__: has joined #RubyOnRails
[09:10:52] AzaToth: has joined #RubyOnRails
[09:15:02] maloik: has joined #RubyOnRails
[09:16:12] roshanavand: has joined #RubyOnRails
[09:17:15] exadeci: has joined #RubyOnRails
[09:22:51] User458764: has joined #RubyOnRails
[09:23:41] n00bDev: has joined #RubyOnRails
[09:24:44] kmckelvin: has joined #RubyOnRails
[09:26:21] ewnd9: has joined #RubyOnRails
[09:26:36] antgel: has joined #RubyOnRails
[09:26:45] Oog: has joined #RubyOnRails
[09:27:46] chouhoulis: has joined #RubyOnRails
[09:27:49] ur5us: has joined #RubyOnRails
[09:29:45] arup_r: has joined #RubyOnRails
[09:31:52] futilegames: has joined #RubyOnRails
[09:32:11] cookiez: has joined #RubyOnRails
[09:33:34] jmrepetti: has joined #RubyOnRails
[09:34:03] matthewd: yashinbasement: !rule0
[09:34:03] helpa: yashinbasement: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[09:39:23] Voxxit: has joined #RubyOnRails
[09:39:46] Macaveli: has joined #RubyOnRails
[09:39:59] roshanavand: has joined #RubyOnRails
[09:41:24] srinidhi: has joined #RubyOnRails
[09:42:06] build22: has joined #RubyOnRails
[09:48:04] jarray52: has left #RubyOnRails: ()
[09:50:02] renews: has joined #RubyOnRails
[09:52:57] maloik: has joined #RubyOnRails
[09:57:22] paulodiniz: has joined #RubyOnRails
[09:58:05] marr: has joined #RubyOnRails
[09:58:33] yardenbar: has joined #RubyOnRails
[10:00:31] yfeldblum: has joined #RubyOnRails
[10:00:37] renews: has joined #RubyOnRails
[10:02:35] annlewis: has joined #RubyOnRails
[10:03:16] nopolitica: has joined #RubyOnRails
[10:03:41] ace05: has joined #RubyOnRails
[10:05:15] sandstrom: has joined #RubyOnRails
[10:05:29] roshanavand: has joined #RubyOnRails
[10:10:51] gustav: has joined #RubyOnRails
[10:11:55] Gustavo: has joined #RubyOnRails
[10:12:39] yardenbar: has joined #RubyOnRails
[10:13:55] arup_r: has joined #RubyOnRails
[10:14:39] AnhMV: has joined #RubyOnRails
[10:19:42] nocontrol: has joined #RubyOnRails
[10:20:13] pacso: has joined #RubyOnRails
[10:20:51] MaDErroR123: has joined #RubyOnRails
[10:22:11] ss_much: has joined #RubyOnRails
[10:22:24] AnhMV: has joined #RubyOnRails
[10:23:22] Siyo: has joined #RubyOnRails
[10:23:22] Siyo: has joined #RubyOnRails
[10:24:09] User458764: has joined #RubyOnRails
[10:24:25] n00bDev: has joined #RubyOnRails
[10:25:33] kmckelvin: has joined #RubyOnRails
[10:26:20] gaussblurinc1: has joined #RubyOnRails
[10:27:56] jmrepetti: has joined #RubyOnRails
[10:28:30] chouhoulis: has joined #RubyOnRails
[10:34:25] rodfersou: has joined #RubyOnRails
[10:36:42] ace05_: has joined #RubyOnRails
[10:36:53] Guest_: has joined #RubyOnRails
[10:38:41] roshanavand: has joined #RubyOnRails
[10:40:38] yoongkang: has joined #RubyOnRails
[10:41:19] yardenbar: has joined #RubyOnRails
[10:48:00] agit0: has joined #RubyOnRails
[10:48:20] Cervajz: has joined #RubyOnRails
[10:49:37] iateadonut: has joined #RubyOnRails
[10:49:45] Pazician: has joined #RubyOnRails
[10:53:39] maloik: has joined #RubyOnRails
[10:56:15] Pazician: has joined #RubyOnRails
[10:56:35] alfie_max15: has joined #RubyOnRails
[10:56:45] Pazician: has joined #RubyOnRails
[10:57:27] alfie_max15: has left #RubyOnRails: ()
[10:57:27] MaDErroR123: has joined #RubyOnRails
[10:58:20] stannard: has joined #RubyOnRails
[11:00:41] jmrepetti: has joined #RubyOnRails
[11:00:47] nickenchuggets: has joined #RubyOnRails
[11:00:47] nickenchuggets: has joined #RubyOnRails
[11:03:27] annlewis: has joined #RubyOnRails
[11:04:14] tildes: when I create a new rails project, my test folder is by default called 'test', and test files 'klass_test.rb'. if I want to use rspec, should I change them by hand to test, or what is the convention here?
[11:06:25] kmckelvin: has joined #RubyOnRails
[11:06:43] Hates_: tildes: if you install the rspec-rails gem and run the installer you can then just delete the test directory
[11:08:56] tildes: Hates_: somehow I thought I had that installed. installed it now again. should I include it in the project Gemfile, for this and other projects as well?
[11:09:30] Hates_: tildes: yeah, you definitely want it in your Gemfile
[11:09:37] Hates_: tildes: then run the install generator
[11:09:46] tildes: should I just ignore the ActiveSupport::TestCase stuff rails generates automatically?
[11:10:25] tildes: Hates_: allright, thanks.
[11:14:38] _HombreTepic: has joined #RubyOnRails
[11:15:19] User458764: has joined #RubyOnRails
[11:20:30] ivanyk: has joined #RubyOnRails
[11:20:36] Macaveli: has joined #RubyOnRails
[11:21:25] Macaveli: Can aoyne help me to write this more beautiful? Now the code dumps because of this "Called id for nil" this occurs on the line with it. https://gist.github.com/DelawareConsulting/e8c7fecddd2c8f185038
[11:23:18] baash05: has joined #RubyOnRails
[11:25:25] roshanavand: has joined #RubyOnRails
[11:26:32] arup_r: Macaveli: updated and still thinking thoough :)
[11:27:31] yfeldblum: has joined #RubyOnRails
[11:29:30] Macaveli: arup_r still getting : Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
[11:31:27] arup_r: I didn't get you,, from where you are getting so nicely written exception though ? :)
[11:32:20] blackmesa: has joined #RubyOnRails
[11:35:23] Macaveli: from the itt line
[11:35:56] FooMunki: has joined #RubyOnRails
[11:36:01] solenoids: has joined #RubyOnRails
[11:36:25] Hates_: Macaveli: why can't you just say it.interest_group_translations.where(locale: I18n.locale.to_s).first ?
[11:36:44] Macaveli: fixed it like itt = InterestGroupTranslation.where(:interest_group_id => it.id, :locale => I18n.locale.to_s).first if it.present?
[11:37:10] Macaveli: i need the id from it Hates_
[11:37:53] Hates_: Macaveli: You don't. It's a record with an associate to InterestGroupTranslation
[11:38:42] edwinvdgraaf: has joined #RubyOnRails
[11:39:20] jmrepetti: has joined #RubyOnRails
[11:39:21] Hates_: Macaveli: then you can just try :alias as arup_r pointed out
[11:42:33] maloik: has joined #RubyOnRails
[11:42:34] alfie_max15: has joined #RubyOnRails
[11:48:20] baweaver: has joined #RubyOnRails
[11:49:12] renews: has joined #RubyOnRails
[11:49:19] maloik: has joined #RubyOnRails
[11:53:51] agit0: has joined #RubyOnRails
[11:55:21] agit0: has joined #RubyOnRails
[11:58:32] yoongkang: has joined #RubyOnRails
[12:03:59] annlewis: has joined #RubyOnRails
[12:05:42] htmldrum: has joined #RubyOnRails
[12:08:22] arup_r: I am using google oauth + devise. I want to allow some google domain users though.. found that is possible using `hd:` key. http://stackoverflow.com/questions/18860648/in-rails-is-it-possible-to-limit-who-can-log-in-with-google-using-the-api . Now the problem is, when trying to sign in with some google accounts which are not whitelisted as per my list, google just not letting them to go the password page after putting email. What is the be
[12:08:22] arup_r: st way to let users know that we will not allow the emails he is using to log in ? idea please
[12:10:56] sevenseacat: has joined #RubyOnRails
[12:11:15] arup_r: has joined #RubyOnRails
[12:11:40] lipoqil: has joined #RubyOnRails
[12:12:20] Hates_: arup_r: so you've got the whitelisting working correctly? it's just the redirecting if they're not that you're having difficulty with?
[12:12:40] arup_r: yes exactly..
[12:13:23] Hates_: arup_r: Cant you just redirect them to your signup page with a error message?
[12:13:39] AnhMV: has joined #RubyOnRails
[12:13:42] Hates_: arup_r: that's how I would probably do it. seems like the best way
[12:13:51] arup_r: google not sending any request to my app, so that I can take it furthur
[12:14:16] arup_r: it is staying the google signin page
[12:14:16] Hates_: arup_r: how did you implement the whitelist? in the middleware or in your callback controller?
[12:14:35] arup_r: devise intiailizer .. one min
[12:15:14] Hates_: arup_r: I've not done it with the initializer, but you might be better off handling it in the callback controller so you have more fine grained control
[12:15:19] arup_r: https://github.com/zquestz/omniauth-google-oauth2#devise like this
[12:15:42] ewnd9: has joined #RubyOnRails
[12:16:22] arBmind: has joined #RubyOnRails
[12:16:22] Hates_: arup_r: you have a OmniauthCallbacksController?
[12:16:25] arup_r: once authorization + authentication process done from google side, then then sent the response to our app using redirect_url we mentioned in the google side
[12:16:31] arup_r: yes I do have
[12:16:43] arup_r: should I show you ?
[12:16:49] Hates_: arup_r: yeah
[12:17:03] Hates_: arup_r: they should always come back from Google
[12:17:07] blackhuey: has joined #RubyOnRails
[12:17:34] arup_r: ok.. I am expecting also.. but nothing coming in log.. one min let me show you
[12:17:55] Rikle_S: has joined #RubyOnRails
[12:18:05] Hates_: Rikle_S: hello
[12:18:05] bronson: has joined #RubyOnRails
[12:18:17] Rikle_S: does someone use rails with docker in developement ?
[12:18:21] arup_r: https://gist.github.com/aruprakshit/32f1e02313047362e5f2
[12:18:36] Hates_: arup_r: are you setting the HD param in your Omniauth settings?
[12:18:47] arup_r: yes inside devise.
[12:18:54] arup_r: initializer
[12:19:27] arup_r: it was working before hd key.. now I just add the key and whole process stuck in middle.
[12:19:40] Hates_: arup_r: I guess that's why. I've never used it but my guess would be that that's preventing any call that doesn't match from coming back
[12:19:58] tknz: has joined #RubyOnRails
[12:20:06] Hates_: arup_r: Perhaps it's best not to use it and to check the email address in your controller yourself
[12:20:45] Hates_: arup_r: I wouldn't know another way to do it sadly
[12:21:01] Hates_: arup_r: that SO answer you linked to shows it in the second example
[12:21:22] arup_r: hum, I am also thinkling like that, but in that process, the user will do authorization + authentication, then we will not allow the email domain he/she is using.. which is something odd to me
[12:21:27] Rikle_S: I've created this dockerfile but when I save the view file, changes are not visible. I have to rebuild https://gist.github.com/rikless/fdc12001619852f3ef52
[12:22:11] Hates_: arup_r: yeah, it's a bit clunky as you'll be doing the authorisation then denying access
[12:22:15] arup_r: I meant we will tell "Sorry not allowing your domain currently" something like tat
[12:22:49] arup_r: I was reading https://developers.google.com/identity/protocols/OpenIDConnect#hd-param and nothing found which I am looking for
[12:23:18] futilegames: has joined #RubyOnRails
[12:27:02] Ergo: has joined #RubyOnRails
[12:29:57] chouhoulis: has joined #RubyOnRails
[12:30:47] ace05: has joined #RubyOnRails
[12:32:04] jammanbo: has joined #RubyOnRails
[12:34:08] build22_: has joined #RubyOnRails
[12:34:22] pawnbox: has joined #RubyOnRails
[12:37:42] jahbrewski: has joined #RubyOnRails
[12:40:50] Hates_: Rikle_S: sadly I've not used docker at all
[12:41:12] iooner-: has left #RubyOnRails: ()
[12:41:17] adac: has joined #RubyOnRails
[12:42:23] sevenseacat: Rikle_S: pretty sure there's a docker support channel if you need help with it
[12:42:30] sevenseacat: this is the Rails support channel
[12:43:12] pawnbox: has joined #RubyOnRails
[12:45:02] squiercaster: has joined #RubyOnRails
[12:49:47] RegulationD: has joined #RubyOnRails
[12:50:46] Rikle_S: was figuring out someone in the rails community already created this config
[12:51:13] kmckelvin: has joined #RubyOnRails
[12:54:43] FooMunki: has joined #RubyOnRails
[12:55:42] blackmesa: has joined #RubyOnRails
[12:56:37] jmrepetti: has joined #RubyOnRails
[12:58:03] maloik: has joined #RubyOnRails
[12:58:21] Macaveli: has joined #RubyOnRails
[13:01:22] agit0: has joined #RubyOnRails
[13:02:57] badoo: has joined #RubyOnRails
[13:02:57] kmckelvin: has joined #RubyOnRails
[13:03:47] mices: does anyone agree it can be frustrating to a site visitor to have a page reload when they change the value of a field
[13:04:10] mices: maybe there's a better idea?
[13:04:20] rromanchuk: has joined #RubyOnRails
[13:04:26] badoo: you can reload specific content with ajax
[13:04:45] badoo: by using partials that way you don't have to reload the whole page
[13:04:45] annlewis: has joined #RubyOnRails
[13:04:59] mices: that sounds pretty good
[13:05:27] zpe: has joined #RubyOnRails
[13:05:27] pawnbox: has joined #RubyOnRails
[13:05:35] paulodiniz: has joined #RubyOnRails
[13:10:05] mices: Badoo: when someone selects a particular drop down select option i want another field to go read only, can you show me the ajax code to render the response
[13:10:08] blackmes1: has joined #RubyOnRails
[13:11:18] badoo: what exactly do you want to render ?
[13:14:07] pawnbox: has joined #RubyOnRails
[13:14:49] badoo: you can create an action in your controllers that renders in js, create a view (youraction.js.erb) and then render your partial inside a div on or something like so: $('your-div'').append("<%= escape_javascript render(:partial => 'your-partial') %>");
[13:15:35] badoo: you'll also have to add a route for this action and in your main view where your select your dropdown call this action with some ajax, it's a bit complicated
[13:16:30] arup_r: has joined #RubyOnRails
[13:17:22] kmckelvin: has joined #RubyOnRails
[13:18:42] blackhuey: has joined #RubyOnRails
[13:18:48] maloik: has joined #RubyOnRails
[13:19:00] bronson: has joined #RubyOnRails
[13:19:07] renews: has joined #RubyOnRails
[13:20:42] blackhuey: has joined #RubyOnRails
[13:20:50] arup_r: has joined #RubyOnRails
[13:22:14] badoo: Hey guys, in my app I have two relations: users have one institution and institutions habtm users; https://imgur.com/7kBZ1VM
[13:22:23] badoo: Do you believe that it's a good idea ?
[13:22:27] Pazician: has joined #RubyOnRails
[13:22:47] Axilla: has joined #RubyOnRails
[13:22:50] arup_r: has joined #RubyOnRails
[13:22:59] Pazician: has joined #RubyOnRails
[13:23:17] blackhuey: has joined #RubyOnRails
[13:24:26] brt: has joined #RubyOnRails
[13:25:41] sankaber: has joined #RubyOnRails
[13:25:47] kmckelvin: has joined #RubyOnRails
[13:26:31] USvER: has joined #RubyOnRails
[13:27:59] blackmes1: has joined #RubyOnRails
[13:28:40] blackhuey: has left #RubyOnRails: ()
[13:29:48] allcentury: has joined #RubyOnRails
[13:30:13] USvER: Hey i want to implement "Named Filters". When user have UI for changing different filters (search by name, type, date, tags) i want to implement a feature to save picked filters so the user can quickly use saved filters.
[13:30:42] chouhoulis: has joined #RubyOnRails
[13:30:48] USvER: Can't find any info on this kind of functionality
[13:31:25] USvER: Right now i'm creating NamedFilter model with serialized field for filters
[13:32:54] USvER: on the model that have to be filtered i'm having the "filtered_by" scope where i pass filters object from the saved NamedFilter
[13:33:22] tvw: has joined #RubyOnRails
[13:33:26] USvER: and constructing the filtering from that object
[13:33:48] USvER: Does anyone have a better idea?
[13:35:06] USvER: Maybe there is a possibility to ser/des scope itself? O_O
[13:37:37] USvER: Because right now there is no possibility to check if current selected set of filters is already saved
[13:38:38] paulodiniz: has joined #RubyOnRails
[13:40:05] maloik: has joined #RubyOnRails
[13:40:43] akshat: has joined #RubyOnRails
[13:42:07] medright: has joined #RubyOnRails
[13:42:27] jmrepetti: has joined #RubyOnRails
[13:42:30] alex88: has joined #RubyOnRails
[13:42:47] ivanyk: has joined #RubyOnRails
[13:43:14] nya: has joined #RubyOnRails
[13:43:33] marr: has joined #RubyOnRails
[13:44:06] agit0: has joined #RubyOnRails
[13:44:17] sloggerkhan: has joined #RubyOnRails
[13:44:52] Moeh_: has joined #RubyOnRails
[13:46:05] Moeh_: Is it possible to add a :onchange for an entire form or do I have to add it for every select element individually.
[13:46:31] Moeh_: What I am basically looking for is a solution where forms would work entirely without save button and everything is saved instantly.
[13:53:09] badoo: I think that you can do that with the onchange function on the whole form
[13:53:12] maloik: has joined #RubyOnRails
[13:54:29] worknick: has joined #RubyOnRails
[13:54:47] badoo: Moeh_ there's also a gem called best_in_place you should check it out
[13:55:22] worknick: i am getting all record from my model @var = Model.all. how can i make sure that while printing @var the last record which was modified prints first and then the second one which was modified after it and so on?
[13:55:53] USvER: worknick: order?
[13:56:21] Hates_: USvER: Maybe something like using ransack and saving the filters might work
[13:56:46] USvER: worknick: .order("updated_at desc") something like this
[13:57:32] Pazician: has joined #RubyOnRails
[13:58:02] Pazician: has joined #RubyOnRails
[13:58:13] worknick: USvER: no change
[13:58:19] worknick: what is desc?
[13:58:22] jhass: descending
[13:58:29] jhass: .order(:updated_at, :desc)
[13:58:38] worknick: yes. that works.
[13:58:38] wsewolod: has joined #RubyOnRails
[13:58:48] worknick: no. the previous one with desc.
[13:59:03] USvER: worknick, they are the same
[13:59:04] jhass: http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-order
[13:59:10] USvER: worknick, just different notation
[13:59:47] USvER: Hates_ : thanks looking into it
[14:00:23] yoongkang: has joined #RubyOnRails
[14:00:51] Moeh_: Badoo: Thanks!
[14:00:58] jammanbo: God. For all the crap that poor STI takes, it does make ones life a lot easier at times.
[14:01:21] Macaveli: has joined #RubyOnRails
[14:02:28] Hates_: !botsnack
[14:02:28] helpa: Nom nom. Thanks, Hates_!
[14:02:43] USvER: Hates_ : Ransack is not for me... Because i already have all the filtering functionality including full-text search etc, and i don't need some magic added to my forms all UI is already made.
[14:03:33] USvER: Hates_ : I need a good structure to my backend filters saving and using
[14:03:50] maloik: has joined #RubyOnRails
[14:04:12] agit0: has joined #RubyOnRails
[14:04:35] USvER: Hates_ : right now i'm having handmade model for storing the filters(query string params) object. and just reusing it
[14:05:31] annlewis: has joined #RubyOnRails
[14:05:45] nertzy: has joined #RubyOnRails
[14:05:51] Hates_: USvER: hmmmm. all I can think is that you somehow generate something like an md5 hash based on the options, then use that to compare existing to new searches
[14:06:20] worknick: whats the best social network gem which is easy to modify ?
[14:06:29] helpa: "Best" and "better" are subjective. Try to use a different term.
[14:06:43] sevenseacat: gem install facebook
[14:06:56] USvER: Hates_: but the same filters can have different MD5 because of the object attributes order is not preserved
[14:07:20] Hazim: has joined #RubyOnRails
[14:07:26] Hates_: gem install myspace
[14:08:01] sevenseacat: i heard that gem wasnt maintained anymore
[14:08:06] USvER: I like the VK gem...
[14:08:17] Hazim: hi all, can someone help with rails date query
[14:08:30] Hates_: USvER: but you know if they've picked :name, :date and :tag for example
[14:08:38] codelahoma: has joined #RubyOnRails
[14:08:48] Hates_: USvER: I'm only guessing a lot from what you've explained above
[14:08:49] User458764: has joined #RubyOnRails
[14:09:32] Hates_: hazim: ask away
[14:09:44] USvER: Hates_ , For filters order does not matter... But for checking if the same set of filters is applied i cant use serialized object...
[14:09:46] Hazim: @attendance[0].user.staff.time_loggers.where("date(daterec) = ?", "06/09/2014".to_date)
[14:10:02] Hazim: i migrated a database with a certain date format
[14:10:28] Hazim: so when i try to query with this statement: @attendance[0].user.staff.time_loggers.where("date(daterec) = ?", "06/09/2014".to_date)
[14:10:43] Hazim: i can't seem to get to search the specific date that I want
[14:11:14] Hazim: the date from the database is as the following: '1/8/2014 0:00:00'
[14:11:20] kp666: has joined #RubyOnRails
[14:11:36] Hazim: and as what I know, sqlite doesn't have dates as fields
[14:11:51] sevenseacat: if it does,t then theres something very wrong with sqlite
[14:12:11] kp666: has joined #RubyOnRails
[14:12:11] Hazim: really... because the migration converted the field into text
[14:12:18] sevenseacat: what migration?
[14:12:22] Hazim: are you sure sqlite has a date column
[14:12:29] Hazim: sorry, didn't mean migration
[14:12:38] Hazim: i imported a cvs file
[14:12:41] Hazim: directly into sqlite
[14:12:46] Hazim: the development
[14:12:47] Hates_: USvER: So the user has picked :name and :tag as their filters you could even have just a column that stores "name:tag" for example and you just search for that?
[14:12:52] sevenseacat: if not, i dont know how anyone can take it seriously
[14:13:17] Hates_: USvER: then you know if the filters they have chosen match a saved set of filters
[14:13:22] kp666: has joined #RubyOnRails
[14:13:36] Hazim: SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT, REAL, or INTEGER values:
[14:13:37] sevenseacat: that being said, i have never and would never use sqlite for anything
[14:13:45] USvER: Hates_ : hmmm than i would have to have a different column per each filter per each model...
[14:13:56] worknick: hows social stream?
[14:13:58] sevenseacat: and people want to use sqlite in production?
[14:14:00] Hazim: that's from the horse mouth
[14:14:03] sevenseacat: lolololololololo
[14:14:05] baweaver: has joined #RubyOnRails
[14:14:06] Hazim: i'm not using sqlite for production
[14:14:18] Hazim: i'm under development, and the development db is sqlite
[14:14:18] sevenseacat: don't use sqlite. period.
[14:14:25] sevenseacat: why? use the same as you're using in production.
[14:14:37] sevenseacat: any other way will cause nothing but heartache.
[14:14:40] Hazim: i don;t know seven, it's default haha
[14:14:52] Hazim: ok you just solved my newbie problem
[14:15:16] Hazim: isn't the development db always sqlite?
[14:15:23] sevenseacat: its whatever you set it as.
[14:15:26] brunto: has joined #RubyOnRails
[14:15:32] USvER: hazim, it's an easy switch.. in development you dont have to migrate data
[14:15:41] Hazim: yep, it makes sense
[14:15:56] Hazim: thought i just wanted to follow whatever the framework gave me
[14:16:05] Hazim: thanks guys
[14:16:36] helpa: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[14:17:36] Hazim: i see, in malaysia our english is bad, so we sometimes call our best buddies, even girls as guys
[14:17:37] Hazim: sorry there folks
[14:18:03] doublemalt_: has joined #RubyOnRails
[14:18:15] bronson: has joined #RubyOnRails
[14:18:52] kmckelvin: has joined #RubyOnRails
[14:24:12] Pazician: has joined #RubyOnRails
[14:25:02] Pazician: has joined #RubyOnRails
[14:25:02] Pazician: has joined #RubyOnRails
[14:26:06] maloik: has joined #RubyOnRails
[14:26:23] lxsameer: has joined #RubyOnRails
[14:26:23] lxsameer: has joined #RubyOnRails
[14:28:15] baweaver: has joined #RubyOnRails
[14:30:22] pawnbox: has joined #RubyOnRails
[14:30:39] shibabu: has joined #RubyOnRails
[14:31:17] pawnbox: has joined #RubyOnRails
[14:31:27] chouhoulis: has joined #RubyOnRails
[14:31:35] mickey_mouse: has joined #RubyOnRails
[14:33:23] antgel: has joined #RubyOnRails
[14:33:33] arup_r: still thinking ...
[14:33:50] Meow-J: has joined #RubyOnRails
[14:37:12] owenjones: has joined #RubyOnRails
[14:41:57] pulgalipe: has joined #RubyOnRails
[14:43:49] Tempesta: has joined #RubyOnRails
[14:45:37] medright: has joined #RubyOnRails
[14:46:50] maloik: has joined #RubyOnRails
[14:47:17] kmckelvin: has joined #RubyOnRails
[14:47:18] shibabu: has joined #RubyOnRails
[14:47:42] pawnbox: has joined #RubyOnRails
[14:50:32] kmckelvin: has joined #RubyOnRails
[14:52:32] medright: has joined #RubyOnRails
[14:52:58] renews: has joined #RubyOnRails
[14:55:58] darutoko-: has joined #RubyOnRails
[14:59:21] armyriad: has joined #RubyOnRails
[14:59:47] pulgalipe: has joined #RubyOnRails
[15:01:21] maloik: has joined #RubyOnRails
[15:04:09] rromanchuk: has joined #RubyOnRails
[15:04:43] Prasun: has joined #RubyOnRails
[15:04:52] yoongkang: has joined #RubyOnRails
[15:06:18] annlewis: has joined #RubyOnRails
[15:06:52] owenjones: has joined #RubyOnRails
[15:09:52] nocontrol: has joined #RubyOnRails
[15:12:44] agit0: has joined #RubyOnRails
[15:14:12] jmrepetti: has joined #RubyOnRails
[15:18:58] pulgalip1: has joined #RubyOnRails
[15:20:05] bronson: has joined #RubyOnRails
[15:20:47] blackmes1: has joined #RubyOnRails
[15:21:42] medright: has joined #RubyOnRails
[15:27:02] pawnbox: has joined #RubyOnRails
[15:27:56] maloik: has joined #RubyOnRails
[15:29:47] medright: has joined #RubyOnRails
[15:31:11] adavia_: has joined #RubyOnRails
[15:32:12] chouhoulis: has joined #RubyOnRails
[15:33:29] nhhagen: has joined #RubyOnRails
[15:37:07] gaussblurinc1: has joined #RubyOnRails
[15:38:43] srinidhi: has joined #RubyOnRails
[15:39:20] hnanon: has joined #RubyOnRails
[15:39:39] solenoids: has joined #RubyOnRails
[15:41:03] Guest: has joined #RubyOnRails
[15:41:57] hnanon: I have deposits and locations. Deposits are supposed to be made daily; sometime they're not. I want to show a list of deposits for a date range for all locations. If a location does not have an associated deposit, I still want to show it as "missing."
[15:42:04] hnanon: What's the best way to do that?
[15:42:45] hnanon: Would a location loop within a date loop be a good start?
[15:43:10] nocontrol: has left #RubyOnRails: ()
[15:43:18] nocontrol: has joined #RubyOnRails
[15:46:07] adac: has joined #RubyOnRails
[15:47:37] jmrepetti: has joined #RubyOnRails
[15:49:07] maloik: has joined #RubyOnRails
[15:51:03] pontiki: does Deposit have a deposited_at datetime field?
[15:52:33] pontiki: hnanon: i don't see why not
[15:53:51] annlewis: has joined #RubyOnRails
[15:53:56] Hazim: has joined #RubyOnRails
[15:57:35] baweaver: has joined #RubyOnRails
[16:00:33] gambl0re: has joined #RubyOnRails
[16:01:37] yoongkang: has joined #RubyOnRails
[16:02:27] atzorvas: has joined #RubyOnRails
[16:03:01] daivyk: has joined #RubyOnRails
[16:03:37] hnanon: pontiki: Yes, it has a "sales_date" date field.
[16:04:39] maloik: has joined #RubyOnRails
[16:04:41] hnanon: But, I'm just not sure how to go about showing "missing deposits."
[16:04:49] atzorvas: how to get [1, 2, 3] to this [[1,2], [2,3], [3,4]] ? something with group & slice but I can't remember -.-
[16:06:17] pawnbox: has joined #RubyOnRails
[16:06:30] FailBit: [1,2,3].inject([]){|e,r|e<<[r,r+1]}
[16:06:47] RegulationD: has joined #RubyOnRails
[16:10:11] atzorvas: FailBit: yup that works too. what I failed to write before, is that if there is some kind of support for this one in standard MRI (something... something I can't remember >.<)
[16:10:57] jmrepetti: has joined #RubyOnRails
[16:11:08] Hates_: atzorvas: if you just want ever 2 bits lumped together, not actually adding them up, then it's each_cons(2)
[16:12:37] hnanon: current_user.role = [ "admin", "management" ] Is that right if I want the role to be either of those, for example?
[16:12:54] atzorvas: Hates_: I love you sir
[16:13:38] atzorvas: and I was just to remember this again, because I was searching in Array but then I remembered it was in Enumerable :$
[16:13:38] Prasun: has joined #RubyOnRails
[16:14:59] Hates_: hnanon: I doubt it. that says to me that user can only have one role
[16:15:06] Hates_: hnanon: unless there is a user.roles method
[16:15:12] blackmes1: has joined #RubyOnRails
[16:15:45] arup_r: has joined #RubyOnRails
[16:15:52] ewnd9: has joined #RubyOnRails
[16:16:19] antgel: has joined #RubyOnRails
[16:17:14] User458764: has joined #RubyOnRails
[16:17:59] User458764: has joined #RubyOnRails
[16:20:41] akshat: has joined #RubyOnRails
[16:21:16] bronson: has joined #RubyOnRails
[16:21:50] shibabu: has joined #RubyOnRails
[16:27:17] futilegames: has joined #RubyOnRails
[16:31:02] yoongkang: has joined #RubyOnRails
[16:33:12] yoongkang: has joined #RubyOnRails
[16:35:37] Hazim: has joined #RubyOnRails
[16:35:57] pawnbox: has joined #RubyOnRails
[16:37:47] jmrepetti: has joined #RubyOnRails
[16:39:02] dandaman: has joined #RubyOnRails
[16:43:47] owenjones: has joined #RubyOnRails
[16:44:15] colleenmcguckin: has joined #RubyOnRails
[16:45:04] mices: if only integer is set to true in a model validation, why would i still need to validate numericality
[16:45:42] blackmes1: has joined #RubyOnRails
[16:46:25] mices: i guess it's the other way around, never mind
[16:47:47] Prasun: has joined #RubyOnRails
[16:53:36] Macaveli: has joined #RubyOnRails
[16:54:00] Macaveli: How to protect this https://gist.github.com/DelawareConsulting/832f55780f36283963da from "NoMethodError: undefined method `each' for nil:NilClass" ?
[16:54:09] diegoviola: has joined #RubyOnRails
[16:54:18] dandaman: has joined #RubyOnRails
[16:57:18] pwnd_nsfw: Macaveli, what assigns the data to hot_jobs
[16:57:34] Macaveli: pwnd_nsfw @hot_jobs = HotJob.all(api_params_for_user)[0..6]|| [] # Hot Jobs
[16:58:23] pwnd_nsfw: Your view says hot_jobs and not @hot_jobs though.
[17:00:31] allcentury: has joined #RubyOnRails
[17:00:59] chaas: has left #RubyOnRails: ()
[17:01:34] cgfbee: has joined #RubyOnRails
[17:01:36] Signum: has joined #RubyOnRails
[17:02:41] edwinvdgraaf: has joined #RubyOnRails
[17:02:41] meoblast001: has joined #RubyOnRails
[17:04:06] Macaveli: you don't need the @ pwnd_nsfw
[17:04:29] jhass: Macaveli: wrong
[17:04:51] yaewa: has joined #RubyOnRails
[17:04:59] RandyT: has joined #RubyOnRails
[17:05:23] Kedric: has joined #RubyOnRails
[17:05:32] pawnbox: has joined #RubyOnRails
[17:05:33] Macaveli: <%= render :partial => 'home/hot_jobs', :locals => {:n_of_columns => 12, :hot_jobs => @hot_jobs} %>
[17:05:39] Macaveli: not wrong because I use this ^
[17:06:01] pwnd_nsfw: "I didn't tell you I'm using a partial, so you are wrong"
[17:06:19] jhass: you never showed and when asked what assigns hot_jobs, not @hot_jobs, you showed the assignment for @hot_jobs
[17:06:41] meoblast001: has joined #RubyOnRails
[17:07:16] Macaveli: any idea how to catch this?
[17:07:32] jhass: Macaveli: always set hot_jobs
[17:07:48] Macaveli: how can you set it if hot_jobs is empty?
[17:07:54] Macaveli: like how to catch if hot_jobs is empty
[17:08:04] jhass: set it to some empty collection
[17:08:10] jhass: instead of nil
[17:08:22] Macaveli: didn't i do that?
[17:08:29] jhass: Ruby says you set it to nil
[17:08:33] Macaveli: @hot_jobs = HotJob.all(api_params_for_user)[0..6]|| [] # Hot Jobs
[17:08:39] Macaveli: [] = empty collection?
[17:08:59] Macaveli: still i get the error, i don't understand
[17:09:07] jhass: well, somewhere else it's nil then
[17:09:39] cornerma1: has joined #RubyOnRails
[17:09:49] jhass: btw the above could be improved (aka made sane) with HotJob.where(api_params_for_user).first(7)
[17:10:10] n00bDev: has joined #RubyOnRails
[17:10:11] jhass: or limit(7) rather
[17:10:27] jhass: that should give you an empty collection, no need for hte || [] then anymore (which is never called anyhow)
[17:14:57] pulgalip1: has joined #RubyOnRails
[17:17:26] troysk: has joined #RubyOnRails
[17:18:23] colleenmcguckin: has joined #RubyOnRails
[17:22:14] bronson: has joined #RubyOnRails
[17:22:39] FCser: has joined #RubyOnRails
[17:23:15] dandaman1: has joined #RubyOnRails
[17:23:17] jmrepetti: has joined #RubyOnRails
[17:25:16] FooMunki: has joined #RubyOnRails
[17:25:24] colleenmcguckin: has joined #RubyOnRails
[17:26:57] workmad3: has joined #RubyOnRails
[17:29:55] Macaveli: has joined #RubyOnRails
[17:31:45] tildes: has joined #RubyOnRails
[17:32:19] agit0: has joined #RubyOnRails
[17:32:38] DenysLins: has joined #RubyOnRails
[17:33:44] chouhoulis: has joined #RubyOnRails
[17:33:48] yoongkang: has joined #RubyOnRails
[17:34:05] allcentury: has joined #RubyOnRails
[17:34:14] medright: has joined #RubyOnRails
[17:34:25] Pazician: has joined #RubyOnRails
[17:35:19] DenysLins: has left #RubyOnRails: ("Saindo")
[17:37:44] colleenmcguckin: has joined #RubyOnRails
[17:38:17] brt: has joined #RubyOnRails
[17:40:04] DenysLins: has joined #RubyOnRails
[17:42:55] pawnbox: has joined #RubyOnRails
[17:43:33] shibabu: has joined #RubyOnRails
[17:44:58] User458764: has joined #RubyOnRails
[17:46:09] pulgalipe: has joined #RubyOnRails
[17:53:27] srinidhi: has joined #RubyOnRails
[17:53:36] dionysus69: has joined #RubyOnRails
[17:54:26] jetpackjoe: has joined #RubyOnRails
[17:55:16] annlewis: has joined #RubyOnRails
[17:58:26] allcentury: has joined #RubyOnRails
[17:59:30] tildes: has joined #RubyOnRails
[18:00:49] bronson: has joined #RubyOnRails
[18:02:17] chouhoulis: has joined #RubyOnRails
[18:03:50] r0bby_: has joined #RubyOnRails
[18:04:12] roshanavand: has joined #RubyOnRails
[18:05:05] yardenbar: has joined #RubyOnRails
[18:08:44] jottr: has joined #RubyOnRails
[18:09:33] pawnbox: has joined #RubyOnRails
[18:10:21] arup_r: has joined #RubyOnRails
[18:10:55] n00bDev: has joined #RubyOnRails
[18:15:36] paulodiniz: has joined #RubyOnRails
[18:17:25] nya: has joined #RubyOnRails
[18:19:12] jmrepetti: has joined #RubyOnRails
[18:19:39] pawnbox: has joined #RubyOnRails
[18:21:02] blackmes1: has joined #RubyOnRails
[18:21:41] maloik: has joined #RubyOnRails
[18:21:49] ibouvousaime: has joined #RubyOnRails
[18:25:07] agit0: has joined #RubyOnRails
[18:29:37] rickmasta: has joined #RubyOnRails
[18:30:19] jpaulo7: has joined #RubyOnRails
[18:32:16] renews: has joined #RubyOnRails
[18:32:55] agit0: has joined #RubyOnRails
[18:33:37] Prasun: has joined #RubyOnRails
[18:34:39] yoongkang: has joined #RubyOnRails
[18:34:47] Didac: has joined #RubyOnRails
[18:35:53] StaticVoid: has joined #RubyOnRails
[18:36:15] medright: has joined #RubyOnRails
[18:39:36] colleenmcguckin: has joined #RubyOnRails
[18:42:56] sandstrom: has joined #RubyOnRails
[18:46:22] jetpackjoe: has joined #RubyOnRails
[18:46:41] Coldblackice: has joined #RubyOnRails
[18:48:20] StaticVoid: has joined #RubyOnRails
[18:49:50] paulodiniz: has joined #RubyOnRails
[18:50:51] annlewis: has joined #RubyOnRails
[18:52:07] tildes: has joined #RubyOnRails
[18:53:07] quazimodo: has joined #RubyOnRails
[18:53:38] User458764: has joined #RubyOnRails
[18:57:32] Klumben: has joined #RubyOnRails
[18:58:09] medright: has joined #RubyOnRails
[18:59:05] sankaber: has joined #RubyOnRails
[18:59:58] diegoviola: has joined #RubyOnRails
[19:01:29] djbkd: has joined #RubyOnRails
[19:01:35] diegoviola: has joined #RubyOnRails
[19:01:52] maloik: has joined #RubyOnRails
[19:02:37] claytonzaugg: has joined #RubyOnRails
[19:03:02] bronson: has joined #RubyOnRails
[19:07:46] jessemcgilallen: has joined #RubyOnRails
[19:07:56] bratsche: has joined #RubyOnRails
[19:08:32] pawnbox: has joined #RubyOnRails
[19:10:15] jottr: has joined #RubyOnRails
[19:10:28] uberjar: has joined #RubyOnRails
[19:10:56] jottr: has joined #RubyOnRails
[19:11:50] uberjar: Hi. An API I'm working on needs to allow the user to specify a timezone. What is the nicest way to do that (from the user's perspective) ?
[19:13:13] jottr: has joined #RubyOnRails
[19:13:21] B1n4r10: has joined #RubyOnRails
[19:14:28] uberjar: my first inclination is that perhaps the timezone parameter should accept either or.. either an offset from UTC integer *or* a string like "America/New_York"
[19:14:40] blackmes1: has joined #RubyOnRails
[19:14:43] jottr: has joined #RubyOnRails
[19:14:49] uberjar: what do you even call that string, and how do you tell users where to find it ?
[19:15:59] Tref: has joined #RubyOnRails
[19:18:19] Tref: I have a design question guys. Say I have three models Companies, Events and Blog Posts. I want to be able to ???Feature??? each type of model on the home page (and other areas). What???s the best way to implement this? Should I created another ???FeaturedItem??? model or just have a featured column on each of the respective tables?
[19:18:54] Tref: I know i can get either to work I???m just wondering which way is best in terms of performance and OOP design best practices
[19:20:32] Macaveli: has joined #RubyOnRails
[19:20:33] renews: has joined #RubyOnRails
[19:21:06] uberjar: tref, you could create a concern??? called Featureable.. then mix it into the models that may be featured??? include Featureable. That way if your implementation needs to grow in complexity
[19:21:44] uberjar: example: "featured for how long ? already_featured?" you'll have it all in one module
[19:22:05] Tref: uberjar: so that???s different than creating a new FeaturedItem class extending AR::base
[19:22:37] Tref: uberjar: so you???re saying use a ???featured??? flag in my existing tables
[19:22:41] uberjar: yeah. It's really the first option you asked about.. adding columns to every model which could be theoretically featured one day
[19:22:49] Tref: right on
[19:23:15] Tref: I have to re-read up on concerns I forgot about them
[19:23:16] uberjar: "featured", "featured_at", "featured_until" "featured_count", etc
[19:23:47] uberjar: it could be more complex than a single attribute depending on what you need, and if so thats when concerns can be nifty
[19:24:57] uberjar: if the admin will be selecting what is featured by hand.. then it could be as simple as a single column
[19:26:09] Tref: uberjar: thats some great information thanks
[19:26:16] Tref: no generator for concerns yet I see
[19:26:23] Tref: looks like theyre simple enough in conceprt
[19:26:24] agit0: has joined #RubyOnRails
[19:26:45] n00bDev: has joined #RubyOnRails
[19:27:17] s2013: has joined #RubyOnRails
[19:27:18] allcentury: has joined #RubyOnRails
[19:27:33] Tref: uberjar: so would I create these as resources in my routes? Might sound like a dumb question but I always struggle with what to define as a resource in my routes file
[19:28:11] uberjar: concerns.. are just ways to reuse bits of code between different models.. they are not models in their own right
[19:29:08] uberjar: oh you mean.. featured support
[19:29:18] uberjar: you could have a featured resource even though you don't have a featureditem model
[19:30:16] uberjar: you just create a controller, route it to something like /featured_items endpoint and teach the controller how to query a bunch of different models based on whether or not they have featured = true
[19:30:43] uberjar: not every resource in your system has to have a coresponding model
[19:32:42] solars: has joined #RubyOnRails
[19:32:50] pawnbox: has joined #RubyOnRails
[19:33:14] uberjar: like.. if you had a Dogs model.. you could have a /largedogs resource and a /smalldogs resource
[19:34:27] uberjar: or a /featureddogs resource.. even though there's only one Dog model
[19:35:28] yoongkang: has joined #RubyOnRails
[19:36:25] adac: has joined #RubyOnRails
[19:37:42] vying: has joined #RubyOnRails
[19:43:11] s2013: good after noon railers
[19:44:10] atmosx: is there like a gem for creating an 'inbox' or something?
[19:44:12] atmosx: per user?
[19:47:27] nickenchuggets: has joined #RubyOnRails
[19:51:26] uberjar: atmosx, just create a "MailMessage" model with at least "direction" and "user_id" columns
[19:51:37] annlewis: has joined #RubyOnRails
[19:52:13] atmosx: uberjar: hm, no. I don't want emails. I just want for the users to be able to see their 'notifications' history and receive/send messages to the admin/support with some predefined subjects.
[19:52:24] pawnbox: has joined #RubyOnRails
[19:52:25] atmosx: I found this one: https://github.com/mailboxer/mailboxer but seems an overkill.
[19:52:40] slash_nick: atmosx: uberjar didn't recommend smtp
[19:53:19] atmosx: slash_nick: what's MailMessage about then?
[19:53:31] atmosx: uberjar: sorry, I took for granted that you were talking about emails.
[19:53:39] slash_nick: it's the name he recommended for a model/table in your database
[19:53:53] atmosx: slash_nick: ok
[19:53:55] shibabu: has joined #RubyOnRails
[19:53:58] slash_nick: he/she... atmosx what's mailboxer about then? email?
[19:54:30] atmosx: slash_nick: nope. supports email too from what I've read but it's not about email it's about internal messaging between users.
[19:54:54] nickjj: atmosx, email would be a really feature to have
[19:55:03] atmosx: nickjj: why?
[19:55:10] nickjj: think about it from your user's POV, if he gets a message then seeing it appear in his email is useful
[19:55:16] rhizome: zawinski's law
[19:55:27] nickjj: having to open up your website every few hours just to check if he has new messages is really annoying
[19:55:46] atmosx: rhizome: cool one, heh
[19:56:21] atmosx: nickjj: ah, yeah sure. Receiving an email to their inbox is easy. the functionality is build-in. I was talking more about not being able to send emails from the app.
[19:56:31] colleenmcguckin: has joined #RubyOnRails
[19:56:34] slash_nick: rhizome: what's the one about every program eventually becoming a dating site?
[19:56:38] uberjar: especially if it's a message to/from the admin??? you want to have that "on record" so to speak because it could be support around payments
[19:56:45] uberjar: email doesnt' suck
[19:56:46] monkeythumbs: has joined #RubyOnRails
[19:57:19] bratsche: has joined #RubyOnRails
[19:57:22] Radar: GOOD MORNING
[19:57:26] rhizome: slash_nick: a corollary :)
[19:57:38] atmosx: You're saying it's better to send a copy of the reply via email. Yes sure, that sounds good.
[19:58:08] nickjj: yes a copy, just to make their life easier
[19:58:16] atmosx: Radar: it's 21:58 here :-P
[19:58:17] nickjj: but everything would be properly saved/tracked n your app
[19:58:30] atmosx: nickjj: sure, you have a point. Let me write that down hehe
[19:58:36] atmosx: ACTION uses tiddlywiki as a dev-diary
[19:59:02] nickjj: the email could just have a link back to create a reply on your site, you wouldn't need to create a real email inbox for each user
[19:59:18] null__-: has joined #RubyOnRails
[19:59:29] nickjj: that would be ideal (so they can just reply directly through email if they wanted), but that's going to add quite a bit more complexity i think
[20:01:19] atmosx: nickjj: hm, good point.
[20:01:35] medright: has joined #RubyOnRails
[20:02:27] FCser: has joined #RubyOnRails
[20:02:29] slash_nick: atmosx: good morning then! http://www.total-knowledge.com/~ilya/mips/ugt.html
[20:03:38] atmosx: slash_nick: my ass will be laminated? :-P
[20:03:42] uberjar: atmosx: what I've been thinking about lately is to have a "Feedback" system with a dropdown to select what kind of message this is.. if it's truely just feedback then nothing special happens, but if they select from the dropdown something more support oriented then it automatically opens a "ticket" so to speak, with associated email
[20:04:07] slash_nick: prefer fried? lol
[20:04:09] bronson: has joined #RubyOnRails
[20:04:27] futilegames: has joined #RubyOnRails
[20:05:53] atmosx: uberjar: nice idea
[20:07:04] bergs: has joined #RubyOnRails
[20:07:05] nickjj: that model works ok for basic info, and your "issue tracker" can have multiple states (unread, contacted, closed, etc.)
[20:07:11] alindeman: has joined #RubyOnRails
[20:07:14] user1138: has joined #RubyOnRails
[20:10:58] ur5us: has joined #RubyOnRails
[20:12:25] medright: has joined #RubyOnRails
[20:12:41] ur5us: has joined #RubyOnRails
[20:14:59] diegoviola: has joined #RubyOnRails
[20:15:07] alaing: has joined #RubyOnRails
[20:15:23] alaing: has joined #RubyOnRails
[20:19:16] ereslibre: has joined #RubyOnRails
[20:21:44] thezanke: has joined #RubyOnRails
[20:23:13] thezanke: If I want to use CSS in an html mailer via rails wheres the best place to put the css? In a <style> block at the top? All inline?
[20:23:37] arup_r: oh too much traffic here
[20:23:47] arup_r: let me move some where else
[20:24:06] Radar: arup_r: Are you aware by writing those messages that you're increasing the "traffic"?
[20:24:29] n00bDev: has joined #RubyOnRails
[20:24:32] alaing: good evening all
[20:24:50] arup_r: yes.. I do
[20:24:58] alaing: i've got a test that failing around expecting a redirect but getting 200
[20:25:00] alaing: https://gist.github.com/aliuk2012/f52b15df8c9ac65d3500
[20:25:04] levifig: has joined #RubyOnRails
[20:25:04] arup_r: but it already loaded though
[20:25:36] StevePotayTeo: has joined #RubyOnRails
[20:25:42] alaing: I'm assuming it must be some validation/error occuring thats then taking the test suite back to the page instead of redirecting the page
[20:26:16] ^Denis: has joined #RubyOnRails
[20:26:33] alaing: slash_nick: ^
[20:26:44] CodingWolf: has joined #RubyOnRails
[20:26:50] alaing: slash_nick: thanks for your help last night
[20:26:56] Sawbones: has joined #RubyOnRails
[20:28:14] Sawbones: Hi I'm trying to find the source code for the rails command, I want to see how it sets up projects and generates files for the framework that I'm trying to build
[20:28:14] grotewold: has joined #RubyOnRails
[20:28:24] Sawbones: Does anyone know where to find it?
[20:28:38] rhizome: github.com/rails/rails
[20:28:58] annlewis: has joined #RubyOnRails
[20:29:06] DLSteve: has joined #RubyOnRails
[20:29:18] Sawbones: yeah I'm in the repo but can't find the cli file
[20:29:27] VeryBewitching: has joined #RubyOnRails
[20:29:32] jmrepetti: has joined #RubyOnRails
[20:29:37] kmckelvin: has joined #RubyOnRails
[20:29:40] rickmasta: has joined #RubyOnRails
[20:29:47] alaing: looking forward to rails 5 and active cable
[20:29:59] alaing: Hi VeryBewitching
[20:30:09] rhizome: Sawbones: where are you looking
[20:30:30] levifig: has joined #RubyOnRails
[20:30:35] Sawbones: tools directory
[20:31:12] rhizome: i don't think the rails command is merely a tool
[20:31:21] jto: has joined #RubyOnRails
[20:31:59] slava_: has joined #RubyOnRails
[20:32:21] Sawbones: Seems like it's under railties based on the source code of the rails command
[20:32:29] alaing: i've got a test that failing around expecting a redirect but getting 200
[20:32:32] nickjj: Sawbones, it's in https://github.com/rails/rails/tree/master/railties
[20:32:47] ejnahc: has joined #RubyOnRails
[20:32:53] arup_r: Sawbones: https://github.com/rails/rails/tree/7f18ea14c893cb5c9f04d4fda9661126758332b5/railties/lib/rails/commands
[20:33:47] Sawbones: That's exactly what I'm looking for
[20:35:01] Sawbones: Awesome so it doesn exactly as I thought
[20:35:04] arup_r: I knew it
[20:35:07] Sawbones: uses a template and fills in the gaps
[20:35:14] arup_r: yes,, erb
[20:35:32] aep: has joined #RubyOnRails
[20:35:54] arup_r: nah. I meant something else by the word erb though
[20:35:56] Sawbones: Do you see where the new command might be?
[20:36:01] yoongkang: has joined #RubyOnRails
[20:36:48] Sawbones: I think it's application
[20:37:40] arup_r: Sawbones: https://github.com/rails/rails/blob/7f18ea14c893cb5c9f04d4fda9661126758332b5/railties/lib/rails/commands/commands_tasks.rb#L98 :D
[20:37:52] dandaman: has joined #RubyOnRails
[20:38:01] Sawbones: awesome thanks
[20:38:02] Sawbones: yeap application
[20:39:12] arup_r: yes it is https://github.com/rails/rails/blob/7f18ea14c893cb5c9f04d4fda9661126758332b5/railties/lib/rails/commands/commands_tasks.rb#L128
[20:39:56] medright: has joined #RubyOnRails
[20:40:18] blackmesa: has joined #RubyOnRails
[20:40:43] arup_r: slee time
[20:41:20] chouhoul_: has joined #RubyOnRails
[20:41:47] jmrepetti: has joined #RubyOnRails
[20:41:56] sandstrom: has joined #RubyOnRails
[20:42:44] ereslibre_laptop: has joined #RubyOnRails
[20:42:44] ereslibre_laptop: has joined #RubyOnRails
[20:43:09] FCser: has joined #RubyOnRails
[20:43:53] VeryBewitching: has joined #RubyOnRails
[20:44:14] jottr: has joined #RubyOnRails
[20:44:40] kmckelvin: has joined #RubyOnRails
[20:44:49] alaing: has joined #RubyOnRails
[20:45:17] Glenny: has joined #RubyOnRails
[20:45:45] jto: has joined #RubyOnRails
[20:45:53] alaing: has joined #RubyOnRails
[20:46:04] alaing: i've got a test that failing around expecting a redirect but getting 200
[20:46:08] alaing: https://gist.github.com/aliuk2012/f52b15df8c9ac65d3500
[20:48:01] tubbo: alaing: add ExpenseTypesController to that gist
[20:49:03] SalexW: has joined #RubyOnRails
[20:49:58] alaing: tubbo: will do
[20:50:19] dandaman: has joined #RubyOnRails
[20:52:04] vying: has joined #RubyOnRails
[20:52:35] alaing: tubbo: ExpenseTypesController is added now
[20:53:01] pawnbox: has joined #RubyOnRails
[20:53:44] aep: has joined #RubyOnRails
[20:54:10] rhizome: stop using the word "type"
[20:54:40] alaing: i'll remember that next time....
[20:54:53] alaing: this is my first rails
[20:55:00] shanemcd: has joined #RubyOnRails
[20:55:35] aep: has joined #RubyOnRails
[20:55:35] alaing: its just a little personal budget app for myself to record house expenses etc
[20:56:58] medright: has joined #RubyOnRails
[20:57:40] rhizome: so expense types are like categories?
[20:58:06] alaing: kind of, its going to be like a lookup table
[20:59:03] alaing: I'm going to write a method that creates monthly records and copies some of that data into a monthly record
[20:59:06] aep: has joined #RubyOnRails
[20:59:27] alaing: I guess it could of actually just been called expenses
[21:00:10] duncannz: has joined #RubyOnRails
[21:00:20] alaing: rhizome: thanks for pointing that out, I see where you coming from and I think that makes sense
[21:01:02] naftilos76: has joined #RubyOnRails
[21:01:37] yfeldblum: has joined #RubyOnRails
[21:02:21] ur5us: has joined #RubyOnRails
[21:02:46] dmf: has joined #RubyOnRails
[21:02:59] Uranio: has joined #RubyOnRails
[21:03:16] Uranio: has left #RubyOnRails: ()
[21:06:04] alaing: The only think I can think of whay its complaining is because there is a validation message somewhere and its directing the request back to the original page instead of redirecting the user to another page
[21:13:38] tekk: has joined #RubyOnRails
[21:13:56] dcope: has joined #RubyOnRails
[21:13:56] dcope: has joined #RubyOnRails
[21:14:07] zly: has joined #RubyOnRails
[21:14:08] Ikri: has joined #RubyOnRails
[21:14:09] Rikle_S: has joined #RubyOnRails
[21:14:10] FCser: has joined #RubyOnRails
[21:14:10] jto: has joined #RubyOnRails
[21:14:24] robotbrain: has joined #RubyOnRails
[21:14:32] Uptime: has joined #RubyOnRails
[21:14:38] jbrinkmusic: has joined #RubyOnRails
[21:14:38] jmrepetti: has joined #RubyOnRails
[21:14:51] nickenchuggets: has joined #RubyOnRails
[21:14:55] AnoHito: has joined #RubyOnRails
[21:14:56] MasterNayru: has joined #RubyOnRails
[21:15:03] Ratler: has joined #RubyOnRails
[21:15:25] chouhoulis: has joined #RubyOnRails
[21:15:38] yfeldblum: has joined #RubyOnRails
[21:15:43] ur5us: has joined #RubyOnRails
[21:15:58] Cork: has joined #RubyOnRails
[21:16:02] thezanke: has joined #RubyOnRails
[21:16:02] thezanke: has joined #RubyOnRails
[21:16:40] jottr: has joined #RubyOnRails
[21:17:21] pawnbox: has joined #RubyOnRails
[21:17:58] nickenchuggets: has joined #RubyOnRails
[21:18:15] n00bDev: what makes more sense? doing a active record query that returns a array of items and calculate some values through a for loop, or doing 2 active record querys that will get the values themselves? im trying to future proof this as much as possible
[21:18:39] Radar: n00bdev: !rule0
[21:18:39] helpa: n00bdev: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[21:18:44] alindeman: has joined #RubyOnRails
[21:18:57] Radar: and probably longer than that under your other name
[21:19:14] n00bDev: ill stick with this one until i feel somewhat competent
[21:19:34] Y_Ichiro: has joined #RubyOnRails
[21:19:44] Seich: has joined #RubyOnRails
[21:19:47] diegoviola: has joined #RubyOnRails
[21:20:28] Sawbones: has joined #RubyOnRails
[21:20:30] levifig: has joined #RubyOnRails
[21:20:35] sankaber: has joined #RubyOnRails
[21:21:08] gremly: has joined #RubyOnRails
[21:21:13] jord: has joined #RubyOnRails
[21:21:18] AnoHito: has joined #RubyOnRails
[21:21:29] Radar: n00bdev: Gist the code please?
[21:21:33] gambl0re: has joined #RubyOnRails
[21:21:38] kalzz: has joined #RubyOnRails
[21:21:40] rickmasta: has joined #RubyOnRails
[21:22:04] maloik: has joined #RubyOnRails
[21:22:27] zmd: has joined #RubyOnRails
[21:22:33] workmad3: has joined #RubyOnRails
[21:22:34] erichu: has joined #RubyOnRails
[21:22:35] ibouvousaime: has joined #RubyOnRails
[21:22:58] urkle: has joined #RubyOnRails
[21:23:39] nickenchuggets: has joined #RubyOnRails
[21:23:49] alex88: has joined #RubyOnRails
[21:23:52] meoblast001: has joined #RubyOnRails
[21:24:20] djbkd: has joined #RubyOnRails
[21:24:25] Kuukunen: has joined #RubyOnRails
[21:24:26] DarkBushido: has joined #RubyOnRails
[21:24:32] kmckelvin: has joined #RubyOnRails
[21:24:35] w0rd-driven: has joined #RubyOnRails
[21:24:46] BBHoss: has joined #RubyOnRails
[21:24:52] EXCHGR: has joined #RubyOnRails
[21:25:01] edwinvdgraaf: has joined #RubyOnRails
[21:25:13] shanemcd: has joined #RubyOnRails
[21:25:25] LBRapid: has joined #RubyOnRails
[21:25:29] n00bDev: https://gist.github.com/gwong89/75d82de665530c93dd10
[21:25:50] ejnahc: has joined #RubyOnRails
[21:25:54] wenchenx_: has joined #RubyOnRails
[21:25:55] n00bDev: which one is more "scalable"
[21:26:11] Radar: Top one is better.
[21:26:13] atrius: has joined #RubyOnRails
[21:26:16] ^Denis: has joined #RubyOnRails
[21:26:20] n00bDev: okay thank you
[21:26:21] Radar: Of course that should be .count on the end of those queries
[21:26:38] n00bDev: okay thanks
[21:26:45] BLuEGoD: has joined #RubyOnRails
[21:26:58] blackmesa: has joined #RubyOnRails
[21:27:09] davout: has joined #RubyOnRails
[21:27:16] constantinexvi: has joined #RubyOnRails
[21:27:25] coffeejunk: has joined #RubyOnRails
[21:27:32] Radar: DRY up your code too https://gist.github.com/radar/c2ce24f7e8f7f19647f9
[21:27:55] Janno: has joined #RubyOnRails
[21:27:57] thorgi: has joined #RubyOnRails
[21:28:02] aep: has joined #RubyOnRails
[21:28:02] penguinpowernz: has joined #RubyOnRails
[21:28:17] digneety: has joined #RubyOnRails
[21:28:28] User458764: has joined #RubyOnRails
[21:29:11] nullwarp: has joined #RubyOnRails
[21:29:52] annlewis: has joined #RubyOnRails
[21:29:54] n00bDev: thank you!
[21:29:57] n00bDev: by the way
[21:30:03] nertzy: has joined #RubyOnRails
[21:30:15] TheMoonMaster: has joined #RubyOnRails
[21:30:24] n00bDev: how come big decimal and float are returning 0.0 when i convert the calculated rate?
[21:30:31] ql6wlld: has joined #RubyOnRails
[21:30:44] tparenti: has joined #RubyOnRails
[21:30:46] suffice: has joined #RubyOnRails
[21:30:55] StevePotayTeo: has joined #RubyOnRails
[21:31:12] n00bDev: open = 1, delivered =3, rate = open/delivered, rate = BigDecimal(rate) or rate = Float(rate)
[21:31:29] Radar: break the problem down
[21:31:30] Radar: open = 1, delivered =3, rate = open/delivered
[21:31:34] Radar: What does this give you in irb?
[21:31:38] davout: ohai, i'm looking at integrating a blogging engine tightly into my app, any opinions on something that manages editing content, handling the attachment of uploaded media (images mostly) while being lightweight and tightly integrable ?
[21:31:46] n00bDev: oh its integer eh
[21:31:49] ltd: has joined #RubyOnRails
[21:32:06] n00bDev: whats better Float or BigDecimal?
[21:32:09] allcentury: has joined #RubyOnRails
[21:32:20] hnanon: has joined #RubyOnRails
[21:32:20] davout: n00bdev: depends, do you need your numbers to be exact?
[21:32:26] davout: are you handling money?
[21:32:33] USvER: has joined #RubyOnRails
[21:32:35] n00bDev: just a % conversion
[21:32:46] Radar: Float is fine
[21:32:54] K0nserv-: has joined #RubyOnRails
[21:32:56] ja: has joined #RubyOnRails
[21:32:57] Radar: You'll need to convert one of the numbers to a float before you do the division
[21:33:01] davout: for this purpose float sounds ok
[21:33:11] futilegames: has joined #RubyOnRails
[21:33:13] roshanavand: has joined #RubyOnRails
[21:33:14] bratsche: has joined #RubyOnRails
[21:33:15] ebryn: has joined #RubyOnRails
[21:34:10] AliasLStoRM: has joined #RubyOnRails
[21:34:36] sikachu: has joined #RubyOnRails
[21:34:48] TDJACR: has joined #RubyOnRails
[21:34:52] yardenbar: has joined #RubyOnRails
[21:34:57] Lloyd: has joined #RubyOnRails
[21:35:08] daxroc: has joined #RubyOnRails
[21:35:24] Uptime: has joined #RubyOnRails
[21:35:34] Fire-Dragon-DoL: has joined #RubyOnRails
[21:37:22] stannard: has joined #RubyOnRails
[21:39:13] nullwarp: has joined #RubyOnRails
[21:39:13] Shidash: has joined #RubyOnRails
[21:39:20] universa1: has joined #RubyOnRails
[21:39:46] pacso: has joined #RubyOnRails
[21:39:47] kaspergrubbe: has joined #RubyOnRails
[21:41:46] DanKnox[away]: has joined #RubyOnRails
[21:41:47] RubyNewbey_: has joined #RubyOnRails
[21:41:48] cjk101010: has joined #RubyOnRails
[21:43:49] FaresKAlaboud: has joined #RubyOnRails
[21:43:53] justinweiss__: has joined #RubyOnRails
[21:43:53] alindeman: has joined #RubyOnRails
[21:43:53] alxndr_: has joined #RubyOnRails
[21:44:06] funnel: has joined #RubyOnRails
[21:44:07] kapowaz_: has joined #RubyOnRails
[21:44:52] voker57: has joined #RubyOnRails
[21:44:52] voker57: has joined #RubyOnRails
[21:45:22] chancancode_: has joined #RubyOnRails
[21:47:15] Avon: has joined #RubyOnRails
[21:48:24] AntiSpamMeta: has joined #RubyOnRails
[21:48:53] jhass: has joined #RubyOnRails
[21:52:02] BLuEGoD: has joined #RubyOnRails
[21:52:23] noodle: has joined #RubyOnRails
[21:52:23] BLuEGoD: has joined #RubyOnRails
[21:52:24] leeky: has joined #RubyOnRails
[21:54:04] shwoodard: has joined #RubyOnRails
[21:54:21] shwoodard: has joined #RubyOnRails
[21:54:39] chancancode_: has joined #RubyOnRails
[21:54:54] nyandoge: has joined #RubyOnRails
[21:54:54] AntiSpamMeta: has joined #RubyOnRails
[21:55:02] chancancode_: has joined #RubyOnRails
[21:55:08] G: has joined #RubyOnRails
[21:55:27] cookiez: has joined #RubyOnRails
[21:55:38] rromanch_: has joined #RubyOnRails
[21:56:01] uranther: has joined #RubyOnRails
[21:56:01] cubny_: has joined #RubyOnRails
[21:56:19] epochwolf: has joined #RubyOnRails
[21:56:20] machty: has joined #RubyOnRails
[21:56:22] machty: has joined #RubyOnRails
[21:57:14] null__: has joined #RubyOnRails
[21:57:15] null__: has joined #RubyOnRails
[21:57:36] LateralOctober: has joined #RubyOnRails
[21:58:28] kapowaz_: has joined #RubyOnRails
[21:59:57] soahccc: has joined #RubyOnRails
[22:00:15] cornerman: has joined #RubyOnRails
[22:00:16] waldi_: has joined #RubyOnRails
[22:00:58] htmldrum: has joined #RubyOnRails
[22:03:05] yoongkang: has joined #RubyOnRails
[22:03:40] ur5us: has joined #RubyOnRails
[22:03:41] Sawbones: has joined #RubyOnRails
[22:04:02] uranther: has joined #RubyOnRails
[22:04:03] uranther: has joined #RubyOnRails
[22:04:24] bronson: has joined #RubyOnRails
[22:04:24] tris: has joined #RubyOnRails
[22:04:25] juddey: has joined #RubyOnRails
[22:04:45] jord: has joined #RubyOnRails
[22:04:54] jord: has joined #RubyOnRails
[22:04:55] shanemcd: has joined #RubyOnRails
[22:05:06] jlpeters: has joined #RubyOnRails
[22:05:24] shanemcd_: has joined #RubyOnRails
[22:05:46] jlpeters: has joined #RubyOnRails
[22:06:27] justinweiss__: has joined #RubyOnRails
[22:06:50] justinweiss__: has joined #RubyOnRails
[22:07:20] roshanavand: has joined #RubyOnRails
[22:07:44] urkle: has joined #RubyOnRails
[22:07:44] SteenJobs: has joined #RubyOnRails
[22:07:44] cubny_: has joined #RubyOnRails
[22:08:05] CornishPasty: has joined #RubyOnRails
[22:08:05] lacrosse: has joined #RubyOnRails
[22:08:06] edwinvdgraaf: has joined #RubyOnRails
[22:08:24] nullwarp: has joined #RubyOnRails
[22:08:24] workmad3_: has joined #RubyOnRails
[22:08:24] elektronaut: has joined #RubyOnRails
[22:08:25] maloik_: has joined #RubyOnRails
[22:08:36] Diabolik: has joined #RubyOnRails
[22:08:37] leeky: has joined #RubyOnRails
[22:08:48] futilegames: has joined #RubyOnRails
[22:08:48] waldi_: has joined #RubyOnRails
[22:09:00] nertzy2: has joined #RubyOnRails
[22:09:01] kmckelvin: has joined #RubyOnRails
[22:09:01] krainboltgreene: has joined #RubyOnRails
[22:09:17] flip_dig1ts: has joined #RubyOnRails
[22:09:18] alex88_: has joined #RubyOnRails
[22:09:41] Diabolik: has joined #RubyOnRails
[22:09:42] wkoszek_: has joined #RubyOnRails
[22:09:57] djbkd_: has joined #RubyOnRails
[22:09:57] Shidash: has joined #RubyOnRails
[22:11:22] dotty_: has joined #RubyOnRails
[22:11:44] Killerkeksdose: has joined #RubyOnRails
[22:11:47] daxroc1: has joined #RubyOnRails
[22:11:47] Dreeg_: has joined #RubyOnRails
[22:12:03] bergs: has joined #RubyOnRails
[22:12:11] tw1sted: has joined #RubyOnRails
[22:12:16] marcoceppi_: has joined #RubyOnRails
[22:12:20] knight_: has joined #RubyOnRails
[22:12:21] RTG`: has joined #RubyOnRails
[22:12:33] ltd_: has joined #RubyOnRails
[22:12:46] jbermudes_: has joined #RubyOnRails
[22:12:46] jbermudes_: has joined #RubyOnRails
[22:12:47] styx__: has joined #RubyOnRails
[22:12:47] adamholt: has joined #RubyOnRails
[22:12:48] kaspergr1bbe: has joined #RubyOnRails
[22:13:07] hendrici1s: has joined #RubyOnRails
[22:13:44] pontiki_: has joined #RubyOnRails
[22:14:50] ja: has joined #RubyOnRails
[22:15:02] ja: Hi. How do I make an em space in Rails? :???P (Seriously.)
[22:15:05] jbrhbr: has joined #RubyOnRails
[22:15:50] ja: Does anyone know of some gem that lets me write e.g. `Unicode['EM SPACE']` instead of writing an actual em space character?
[22:16:15] elaptic``: has joined #RubyOnRails
[22:16:27] exchgr`: has joined #RubyOnRails
[22:16:27] alevy-: has joined #RubyOnRails
[22:16:35] erichmenge_: has joined #RubyOnRails
[22:17:05] Fire-Dragon-DoL-: has joined #RubyOnRails
[22:17:07] thomasfedb_: has joined #RubyOnRails
[22:17:07] hyperdri-: has joined #RubyOnRails
[22:19:29] leslie: has joined #RubyOnRails
[22:19:29] leslie: has joined #RubyOnRails
[22:19:31] funnel: has joined #RubyOnRails
[22:19:32] gambl0re: has joined #RubyOnRails
[22:20:01] jkwood: has joined #RubyOnRails
[22:20:05] penguinpowernz: has joined #RubyOnRails
[22:20:07] Radar: ja: !g em space html
[22:20:11] rhizome: ja: &emsp;
[22:20:16] Radar: rhizome: spoilers
[22:21:50] Klumben: has joined #RubyOnRails
[22:22:27] ja: Oh, right. I /could/ use that when using HTML, but what if it's not HTML?
[22:22:36] Radar: What is it if it is not HTML
[22:22:37] ja: Screw it. I'll just define a bunch of constants???
[22:22:38] constantinexvi: has joined #RubyOnRails
[22:22:48] Radar: i-like-where-this-thread-is-going.png
[22:22:56] ja: ???is it if it is??? XD english <3
[22:23:03] ja: It's plain text.
[22:23:17] ja: E-mail subject line, e.g.
[22:23:19] mist: has joined #RubyOnRails
[22:23:31] Radar: This is pretty much the reason that !xy exists ;)
[22:23:32] helpa: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[22:24:29] DarkBushido: has joined #RubyOnRails
[22:26:22] ja: >.> Very well.
[22:26:49] AliasLStoRM: has joined #RubyOnRails
[22:27:40] rtl: has joined #RubyOnRails
[22:28:29] Radar: I know! It's so annoying when people are right.
[22:28:40] waka: has joined #RubyOnRails
[22:28:55] digneety: has joined #RubyOnRails
[22:29:32] tomaw: has joined #RubyOnRails
[22:29:53] FooBarWidget: has joined #RubyOnRails
[22:29:58] kapowaz_: has joined #RubyOnRails
[22:29:58] AliasLStoRM: has joined #RubyOnRails
[22:30:27] sparr: has joined #RubyOnRails
[22:31:25] jlyndon: has joined #RubyOnRails
[22:31:32] alindeman: has joined #RubyOnRails
[22:32:11] hellschreiber_: has joined #RubyOnRails
[22:32:14] lsone: has joined #RubyOnRails
[22:33:26] leeky: has joined #RubyOnRails
[22:33:39] sparr: has joined #RubyOnRails
[22:36:04] gavit: has joined #RubyOnRails
[22:36:44] spastorino: has joined #RubyOnRails
[22:38:45] golgaroth: has joined #RubyOnRails
[22:39:34] ja: Haha, sometimes, Radar. Mostly I like it though.
[22:40:43] gremly: has joined #RubyOnRails
[22:40:44] johnflux: has joined #RubyOnRails
[22:40:44] Paradox: has joined #RubyOnRails
[22:40:44] johnflux: has joined #RubyOnRails
[22:41:02] atrius: has joined #RubyOnRails
[22:41:03] Uptime: has joined #RubyOnRails
[22:41:03] epochwolf: has joined #RubyOnRails
[22:41:15] fluchtreflex: has joined #RubyOnRails
[22:41:15] fluchtreflex: has joined #RubyOnRails
[22:41:49] bergs: do I have a voice now?
[22:41:51] w0rd-driven: has joined #RubyOnRails
[22:41:53] Puffball: has joined #RubyOnRails
[22:41:54] bergs: oh hi everyone
[22:42:05] WhereIsMySpoon: has joined #RubyOnRails
[22:42:06] WhereIsMySpoon: has joined #RubyOnRails
[22:42:14] six: has joined #RubyOnRails
[22:42:16] Skelz0r: has joined #RubyOnRails
[22:42:20] okdas: has joined #RubyOnRails
[22:42:20] okdas: has joined #RubyOnRails
[22:42:24] herenow: has joined #RubyOnRails
[22:42:27] Papierkorb: has joined #RubyOnRails
[22:42:29] hightower4: has joined #RubyOnRails
[22:42:34] AliasLStoRM: has joined #RubyOnRails
[22:42:35] kies: has joined #RubyOnRails
[22:42:37] ebertx: has joined #RubyOnRails
[22:42:37] lorn: has joined #RubyOnRails
[22:42:38] Radar: bergs: can we help you?
[22:42:38] russt: has joined #RubyOnRails
[22:42:39] bratsche: has joined #RubyOnRails
[22:42:40] paulodiniz: has joined #RubyOnRails
[22:42:42] zmd: has joined #RubyOnRails
[22:42:46] shtirlic: has joined #RubyOnRails
[22:42:47] blackmesa: has joined #RubyOnRails
[22:42:47] gusrub: has joined #RubyOnRails
[22:42:47] nertzy: has joined #RubyOnRails
[22:42:50] rickmasta: has joined #RubyOnRails
[22:42:52] blackhuey: has joined #RubyOnRails
[22:42:55] Diabolik: has joined #RubyOnRails
[22:42:58] cfloare: has joined #RubyOnRails
[22:43:06] bergs: well I'm new to ROR. I don't really know enough to ask a good question yet. but thanks :)
[22:43:10] bergs: what are the bot commands?
[22:43:15] kitallis: has joined #RubyOnRails
[22:43:15] Radar: bergs: !unworthy
[22:43:15] helpa: bergs: You are not worthy of this bot!
[22:43:16] mices: has joined #RubyOnRails
[22:43:21] Denarii: has joined #RubyOnRails
[22:43:27] DrShoggoth: has joined #RubyOnRails
[22:43:34] Radar: bergs: Did you read the first 3 chapters of Rails 4 in Action yet?
[22:43:43] marr: has joined #RubyOnRails
[22:43:45] n00bDev: if i read the rails 4 book
[22:43:48] n00bDev: how pro will i become
[22:43:55] bergs: should I?
[22:44:00] bergs: I can't tell if you're baiting me or not
[22:44:09] AlHafoudh: has joined #RubyOnRails
[22:44:15] loglaunch: has joined #RubyOnRails
[22:44:16] waseem_: has joined #RubyOnRails
[22:44:18] VeryBewitching: ACTION hides the tacklebox.
[22:44:18] xardion: has joined #RubyOnRails
[22:44:21] Radar: n00bdev: Maximum proness.
[22:44:24] matthewd: has joined #RubyOnRails
[22:44:27] kanzure: has joined #RubyOnRails
[22:44:27] Radar: n00bdev: You'll have to /nick pr0dev
[22:44:30] gr3yR0n1n: has joined #RubyOnRails
[22:44:34] Radar: bergs: !r4iafree
[22:44:34] helpa: bergs: The first 3 chapters of Rails 4 in Action can be found for free at https://manning.com/books/rails-4-in-action. They're a great introduction to Ruby on Rails!
[22:44:36] kadoppe: has joined #RubyOnRails
[22:45:06] Kuukunen: has joined #RubyOnRails
[22:45:13] shanemcd_: has joined #RubyOnRails
[22:45:16] maloik: has joined #RubyOnRails
[22:45:27] Paperman-x1: has joined #RubyOnRails
[22:45:35] g3funk: has joined #RubyOnRails
[22:45:54] n00bDev: wow 40 bucks for a ebook is pricey..
[22:45:59] w0bni: has joined #RubyOnRails
[22:46:04] Radar: Is it though?
[22:46:13] n00bDev: well im a student so yeah
[22:46:18] Radar: ~600 pages of goodness.
[22:46:21] alexblom: has joined #RubyOnRails
[22:46:21] roshanavand: has joined #RubyOnRails
[22:46:25] n00bDev: after i get a job then it shouldnt be
[22:46:26] Lloyd: has joined #RubyOnRails
[22:46:26] Radar: So you're used to paying exorbitant costs for textbooks then.
[22:46:37] n00bDev: i ripoff with pdfs
[22:46:37] vigasdeep: has joined #RubyOnRails
[22:46:38] levifig: has joined #RubyOnRails
[22:46:47] n00bDev: the publishers can die for all i care
[22:46:53] Radar: how about the authors
[22:46:53] proboszcz: has joined #RubyOnRails
[22:46:59] Radar: which earn $4 per $40 ebook copy? :)
[22:47:10] Radar: http://ryanbigg.com/2015/08/my-self-publishing-success-story/
[22:47:11] ^Denis: has joined #RubyOnRails
[22:47:12] llakey: has joined #RubyOnRails
[22:47:15] Kingdutch: has joined #RubyOnRails
[22:47:19] n00bDev: i only ripoff hardbooks not ebooks
[22:47:28] n00bDev: 4 dollars damn
[22:47:34] n00bDev: what has this world become
[22:47:44] bergs: I tend to read sourcecode :/
[22:47:48] Radar: Capitalism.
[22:47:50] slash_nick: n00bdev: yeah don't forget the authors... tip Radar on paypal at radarlistener@gmail.com
[22:47:51] creature: has joined #RubyOnRails
[22:47:51] creature: has joined #RubyOnRails
[22:47:55] bergs: I was knee-deep in ActiveRecord when I arrived here
[22:48:05] Radar: bergs: ok here you go https://github.com/rubysherpas/r4ia_examples
[22:48:23] bergs: you pulled that up quickly
[22:48:25] chancancode_: has joined #RubyOnRails
[22:48:27] RubyNewbey_: has joined #RubyOnRails
[22:48:52] arthurnn: has joined #RubyOnRails
[22:48:53] Radar: I link it often enough it's one of the first results on "gith" on Chrome
[22:48:59] wenchenx_: has joined #RubyOnRails
[22:49:11] michael_mbp: has joined #RubyOnRails
[22:49:14] TheMoonMaster: has joined #RubyOnRails
[22:49:18] coffeejunk: has joined #RubyOnRails
[22:49:24] golgaroth: has joined #RubyOnRails
[22:49:26] sikachu: has joined #RubyOnRails
[22:49:39] [dmp]: has joined #RubyOnRails
[22:49:44] mheld: anybody here use cells (apotonick's stuff) to put together shopping carts?
[22:49:44] alindeman: has joined #RubyOnRails
[22:49:46] Silex: has joined #RubyOnRails
[22:49:48] mheld: is that a silly idea?
[22:50:11] Didac: has joined #RubyOnRails
[22:50:38] VeryBewitching: mheld: As long as you're consistent, I wouldn't categorize any idea as silly.
[22:51:01] james1: has joined #RubyOnRails
[22:51:03] Radar: Oddly specific question is oddly specific.
[22:51:06] suffice: has joined #RubyOnRails
[22:51:18] mclee: has joined #RubyOnRails
[22:51:31] Mession: has joined #RubyOnRails
[22:51:42] uranther: has joined #RubyOnRails
[22:52:01] ELCALOR: has joined #RubyOnRails
[22:52:18] drupald: has joined #RubyOnRails
[22:52:30] Diabolik: has joined #RubyOnRails
[22:52:42] VeryBewitching: mheld: Depending on the complexity of your shopping cart experience, cells would likely make it easier to follow after the fact.
[22:53:19] thorgi: has joined #RubyOnRails
[22:53:20] amitchellbullard: has joined #RubyOnRails
[22:53:59] Sirecote: has joined #RubyOnRails
[22:54:06] ebryn: has joined #RubyOnRails
[22:54:06] shwoodard: has joined #RubyOnRails
[22:54:07] edwinvdg_: has joined #RubyOnRails
[22:54:52] n00bDev: radar when wasn the book finished?
[22:55:20] roshanavand: has joined #RubyOnRails
[22:55:39] mosez: has joined #RubyOnRails
[22:55:41] owenjones: has joined #RubyOnRails
[22:55:49] Radar: September
[22:55:53] ql6wlld: has joined #RubyOnRails
[22:56:23] jlyndon: has joined #RubyOnRails
[22:57:47] sonOfRa: has joined #RubyOnRails
[22:58:46] shibabu: has joined #RubyOnRails
[22:58:50] badeball: has joined #RubyOnRails
[22:58:53] Lauer: has joined #RubyOnRails
[23:00:11] weltzooo: has joined #RubyOnRails
[23:00:14] sparr: has joined #RubyOnRails
[23:01:06] quazimodo: has joined #RubyOnRails
[23:01:27] skarn: has joined #RubyOnRails
[23:02:51] Gabriel403: has joined #RubyOnRails
[23:02:51] Gabriel403: has joined #RubyOnRails
[23:03:14] jozan: has joined #RubyOnRails
[23:04:19] n00bDev: why does the final version contain less stuff than the MEAP version11
[23:04:23] cgfbee: has joined #RubyOnRails
[23:04:44] alindeman: has joined #RubyOnRails
[23:04:57] Ropeney: has joined #RubyOnRails
[23:05:51] alol: has joined #RubyOnRails
[23:06:38] VeryBewitching: Dead trees don't refactor easily.
[23:06:41] bronson: has joined #RubyOnRails
[23:07:04] mices: has joined #RubyOnRails
[23:07:29] mices: trying to use jquery to change the starting bid field to readonly if fixed price is selected from the drop down menu https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[23:08:57] SalexW: has joined #RubyOnRails
[23:09:00] spectra: has joined #RubyOnRails
[23:09:01] mices: i have that much so far but it doesn't have any effect, what else do i have to do, do i have to write a controller and actio
[23:10:44] many: has joined #RubyOnRails
[23:10:45] ELCALOR: has joined #RubyOnRails
[23:11:15] Radar: n00bdev: It does?
[23:13:06] paulodiniz: has joined #RubyOnRails
[23:13:16] shapeshifter: has joined #RubyOnRails
[23:13:23] jlyndon: has joined #RubyOnRails
[23:13:31] _fortis: has joined #RubyOnRails
[23:13:41] n00bDev: basic performance enhancments and alternative authentication isnt in the final version in the list of contents?
[23:14:36] LBRapid: has joined #RubyOnRails
[23:15:29] alxndr: has joined #RubyOnRails
[23:17:08] pfg: has joined #RubyOnRails
[23:17:35] PaulePanter: has joined #RubyOnRails
[23:17:46] RubyNewbey_: has joined #RubyOnRails
[23:18:22] thomasfedb: has joined #RubyOnRails
[23:18:34] dandaman: has joined #RubyOnRails
[23:18:35] thomasfedb: has joined #RubyOnRails
[23:19:25] amitchellbullard: has joined #RubyOnRails
[23:19:47] VeryBewitching: mices: Are you using Backbone.js?
[23:20:23] leeky: has joined #RubyOnRails
[23:20:23] hellschreiber_: has joined #RubyOnRails
[23:20:29] VeryBewitching: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479#file-_form-html-erb-L4 is not JavaScript
[23:20:34] mices: i'm just trying to use the jquery library
[23:20:35] badoo: has joined #RubyOnRails
[23:21:05] VeryBewitching: Plain JS with just jQuery doesn't allow you to call render
[23:21:21] mices: so what do i have to do
[23:21:22] VeryBewitching: That's a Ruby method and you can't call it in JavaScript
[23:21:30] Uptime: has joined #RubyOnRails
[23:21:43] mices: what if i take the <script> containers out
[23:22:01] bergs: link_to with e.g. "method: :delete" uses JS to generate a form. anyone know where that JS lives?
[23:22:05] VeryBewitching: mices: I would suggest learning the differences between JavaScript (client side) and Ruby (server side) scripting before you do anything else.
[23:22:21] kramsee: has joined #RubyOnRails
[23:23:01] VeryBewitching: bergs: jquery_ujs
[23:23:37] mices: i'm only using jquery, jquery is gonna handle the javascript
[23:23:46] badoo: VeryBewitching you can call a method with js and ajax
[23:23:51] mices: i'm not trying to use javascrpt
[23:24:12] VeryBewitching: badoo: You can't call: render 'something'
[23:24:17] bergs: hm I didn't know rails depended on jquery. are there alternatives?
[23:24:29] mices: i understand the differences between server and client script
[23:24:30] badoo: ah yes indeed
[23:24:34] VeryBewitching: badoo: First of all, that's not JavaScript; it could be coffee, but certainly not JavaScript
[23:24:53] VeryBewitching: bergs: https://github.com/rails/jquery-ujs
[23:24:56] nya: has joined #RubyOnRails
[23:25:12] tubbo: bergs: i think react-rails ships with react_ujs
[23:25:36] tubbo: mices: that code you showed us *should* be throwing errors in your javascript console.
[23:25:44] many: has joined #RubyOnRails
[23:26:16] tubbo: mices: you know how to check that? with chrome on mac, it's cmd+shift+i
[23:26:40] bergs: I'm a long time PHP dev. this is like stepping into a new world :)
[23:26:50] FooBarWidget: has joined #RubyOnRails
[23:27:56] SanguineAnomaly: has joined #RubyOnRails
[23:28:20] VeryBewitching: bergs: Check this out https://www.codefellows.org/blog/this-is-why-learning-rails-is-hard
[23:28:32] VeryBewitching: But then, don't be discouraged.
[23:28:38] Uptime: has joined #RubyOnRails
[23:29:05] tubbo: wah wah wah
[23:29:08] Aeyrix: tubbo: F12 is cross-platform and cross-browser fwiw.
[23:29:14] tubbo: you ever see the object graph for the .NET framework?
[23:29:30] bergs: yeah that makes sense to me
[23:29:36] tubbo: i went to a company's office one time that had the entire thing on a wall. fucking thing was like the entire length of their office.
[23:29:47] tubbo: Aeyrix: you're cross platform
[23:29:48] bergs: F12 doesn't work in chrome on mac. not out of the box, anyway
[23:29:58] phrozen77: has joined #RubyOnRails
[23:30:10] tubbo: i always remap mine to ctrl+`
[23:30:11] bergs: it does on windows
[23:30:33] tubbo: i don't know why but that is always easier to hit for me, even easier than f12 if i'm on a laptop and f12/my volume key are the same thing
[23:30:41] VeryBewitching: tubbo: Do you have a link for that object graph?
[23:30:55] Aeyrix: bergs: wut
[23:31:01] Aeyrix: bergs: I tested it before I said it.
[23:31:16] annlewis: has joined #RubyOnRails
[23:31:16] tubbo: VeryBewitching: no, like i said it was just a big long poster hung up on the wall at this company.
[23:31:17] mices: tubbo: why debug something that i dunno if it's supposed to work, my understanding it's not supposed to work
[23:31:29] bergs: I tested it after you said that.
[23:31:30] Aeyrix: You might need to fn+F12
[23:31:30] Aeyrix: due to F12 without fn not being F12 but in fact volup
[23:31:39] bergs: I tried both
[23:31:56] bergs: you either have some newer version of chrome than me or you made some conf changes that you forgot about
[23:32:24] tubbo: mices: it's definitely not supposed to work, i wanted you to see that by opening up the errors console. it's also a great idea to start getting used to opening up the console and chrome dev tools because it's an invaluable asset when writing javascript code for the browser.
[23:32:29] bergs: "why debug something that I dunno if it's supposed to work" < what?
[23:33:09] mices: tubbo: what if i just added remote: true to the form_for element?
[23:33:25] tubbo: mices: that wouldn't solve your problem.
[23:33:36] mices: tubbo: would it help?
[23:34:07] mices: tubbo: i mean is it part of the solution before i get to the controller
[23:34:15] VeryBewitching: mices: In your function you'll need to make a call to the server if those values are to be dynamic.
[23:34:17] bergs: RubyMine is fighting me every step of the way...
[23:34:27] moei: has joined #RubyOnRails
[23:34:32] tubbo: mices: no, it's completely irrelevant to the solution. the first problem you have is that the javascript code you gave to us is not valid javascript.
[23:34:53] tubbo: mices: there are some issues with the way you're trying to select an element, and your understanding of the change() method.
[23:35:00] gusrub: has joined #RubyOnRails
[23:36:07] tubbo: api.jquery.com has great documentation on every one of its methods, i suggest searching for change and seeing what you find
[23:36:43] Aeyrix: bergs: I just
[23:36:43] Aeyrix: I don't even know.
[23:36:43] Aeyrix: re: "what?"
[23:36:43] Aeyrix: Also RE: Chrome - yes, looks like I did things.
[23:36:51] unreal: has joined #RubyOnRails
[23:36:55] tubbo: it might be a little confusing at first because there are sometimes several mentions of the same function, but that's just the way they document multiple variants on a function's arguments.
[23:37:15] amitchellbullard: has joined #RubyOnRails
[23:38:39] VeryBewitching: bergs: I would suggest learning Rails *first* before using RubyMine with it.
[23:39:33] VeryBewitching: bergs: That IDE will help you more once you have your head firmly wrapped around the basics of everything involved.
[23:39:37] bergs: this may sound naive, but I think I'm okay with rails as a concept. just need to learn the tools and namespace
[23:40:10] bergs: I like to work in VMs though. and using an IDE with that further complicates things
[23:40:14] VeryBewitching: Rails, Rake, Generators, Bundler, etc. The IDE exploits the usefulness of everything while still providing you with shortcuts.
[23:40:17] tubbo: bergs: definitely. one day, you might find yourself quite experienced, and on that day you will no longer be okay with rails as a concept ;)
[23:40:19] bergs: I don't even want to know what's involved in hooking up a remote debugger
[23:40:44] null__: has joined #RubyOnRails
[23:40:44] null__: has joined #RubyOnRails
[23:40:46] tubbo: it's pretty hard even without VMs in my experience..
[23:40:51] VeryBewitching: bergs: I would deploy to a VM to test my deployments, but I don't think I'd work in one personally.
[23:40:53] tubbo: (hooking up a remote debugger)
[23:41:52] bergs: VeryBewitching: is there a reason you'd rather maintain your db server, ruby, gems, etc on the host machine than contained in a VM?
[23:42:04] borkdude: has joined #RubyOnRails
[23:42:14] VeryBewitching: ACTION runs Kubuntu.
[23:42:31] bergs: is that the reason? :P
[23:42:44] Dfoolz: has joined #RubyOnRails
[23:42:59] VeryBewitching: My development environment is going to benefit from the same system libraries and environment as my deployment.
[23:43:07] VeryBewitching: It's faster not to boot up a VM to write code.
[23:43:22] tubbo: i use mac os x, so all of the tools install locally and it's pretty easy to do development on your local machine.
[23:43:36] tubbo: fast development is one of the best parts of rails
[23:43:46] tubbo: VMs slow you down
[23:43:53] bergs: I get that. I do, however, love being able to "vagrant destroy" at will
[23:43:57] VeryBewitching: I run Postgres, MySQL, Redis and my desktop environment on one PC
[23:44:07] oddalot: has joined #RubyOnRails
[23:44:19] VeryBewitching: I idle at 2.1GB of RAM, but meh
[23:44:41] bergs: and it's a good way to weed out weird dependencies that you may have forgotten about. like, if you hire a new developer and are getting them started on the project and they say "wtf this doesn't work"
[23:45:00] htmldrum: has joined #RubyOnRails
[23:45:05] shaman42: has joined #RubyOnRails
[23:45:05] tubbo: that happens with VMs too though
[23:45:17] nickjj: there's always docker, best of both worlds imo
[23:45:26] VeryBewitching: And VMs vs. Production will be different too.
[23:45:36] bergs: I don't get why docker is so popular, tbh
[23:45:42] bergs: I feel like it's a glorified chroot
[23:45:56] Aeyrix: lol docker
[23:46:06] existensil: has joined #RubyOnRails
[23:46:09] nickjj: it's much more than that
[23:46:17] VeryBewitching: bergs: Develop locally, test deploy to VM with specific build (system packages, etc.) that will be require on production
[23:46:30] tubbo: bergs: not really. chroot and linux containers, for example, are not compatible.
[23:46:38] tubbo: that's why afaik docker doesn't work natively on freebsd
[23:46:43] nickjj: it takes literally 2 seconds to spin up or shutdown an entire non-trivial stack
[23:46:51] nickjj: and any developer can run a single command to get it up and running
[23:47:03] Aeyrix: bergs: Don't get me started.
[23:47:03] Aeyrix: You'll get me banned.
[23:47:19] tubbo: Aeyrix: ehh, it's sunday night. go ahead. :P
[23:47:28] VeryBewitching: bergs: My last thought; try not compare what you're about to learn to your experiences with PHP, very different approach.
[23:47:32] Aeyrix: bergs: I am Richard M. Stallman in a crusade against Docker, let me tell you.
[23:47:32] Aeyrix: GNU/crusade.
[23:47:37] bergs: well, I just wanted to introduce myself, here. :P seems like I have a lot of reading to do.
[23:47:45] bergs: VeryBewitching: noted.
[23:47:46] Aeyrix: tubbo: Not for at least half of the oper team it isn't. :v
[23:48:09] tubbo: well just don't say stupid shit and you'll be fine
[23:48:19] cookiez: has joined #RubyOnRails
[23:48:23] VeryBewitching: Restraint Aeyrix, restraint!
[23:48:32] Aeyrix: I say nothing except stupid shit
[23:48:38] Aeyrix: What's that?
[23:48:54] leeky: has joined #RubyOnRails
[23:49:00] VeryBewitching: It's what "The Man" expects of you, so put your 1984 hat on.
[23:49:06] soahccc: has joined #RubyOnRails
[23:49:12] Aeyrix: Fun fact, that hat is ten years older than me.
[23:49:28] bergs: is railsconf worth going to?
[23:49:33] VeryBewitching: Fun fact, it's 7 years younger than me.
[23:49:37] Aeyrix: bergs: ye
[23:49:43] tubbo: fun fact, i'm george orwell
[23:49:52] leslie: has joined #RubyOnRails
[23:49:53] leslie: has joined #RubyOnRails
[23:49:53] spastorino: has joined #RubyOnRails
[23:49:55] VeryBewitching: tubbo: Thanks for scaring me when I was 13
[23:50:00] bergs: damn richard stallman and george orwell in the same channel?
[23:50:00] kapowaz_: has joined #RubyOnRails
[23:50:37] bergs: If I go to RailsConf in kansas city (wtf?) do I have to take amtrak to get there?
[23:50:43] tubbo: it's like an AOL Chat from 1980
[23:51:09] VeryBewitching: tubbo: People Connection on Commodore
[23:51:18] tubbo: bergs: you have to walk fifteen miles in the snow
[23:51:30] tubbo: VeryBewitching: that sounds like a dating service haha
[23:51:31] Aeyrix: both ways
[23:51:57] VeryBewitching: tubbo: 300 Baud too, fast for that time.
[23:52:05] tubbo: so many bauds
[23:52:21] StaticVoid: has joined #RubyOnRails
[23:52:54] bergs: does the robot here track karma?
[23:53:10] Radar: bergs: no
[23:53:21] Radar: bergs: There is no number large enough to hold the karma I should have.
[23:53:29] jiriki: has joined #RubyOnRails
[23:54:16] VeryBewitching: radar.karma.is_a? FuckingHugeNumber
[23:54:38] tubbo: according to my textbooks, the only person responsible for tracking your karma
[23:54:39] VeryBewitching: ACTION apologizes for his language.
[23:54:44] tubbo: namaste, everyone
[23:55:16] tubbo: here is a relaxing meditation for you all to watch: https://www.youtube.com/watch?v=A-cT6SwFIHA
[23:55:28] bergs: tubbo: are those the stolen textbooks?
[23:55:41] tubbo: bergs: no i bought them!
[23:56:13] lacrosse: has joined #RubyOnRails
[23:56:20] ebryn: has joined #RubyOnRails
[23:56:58] Brando753: has joined #RubyOnRails
[23:57:00] amitchellbullard: has joined #RubyOnRails
[23:58:14] targaf_: has left #RubyOnRails: ()
[23:58:32] targaf: has joined #RubyOnRails
[23:58:40] Hazim: has joined #RubyOnRails
[23:59:52] n00bDev: https://gist.github.com/gwong89/744e3555bd315cef5e02
[23:59:57] n00bDev: how do i group by email