« Back to channel list

#RubyOnRails - 13 December 2015

« Back 1 day Forward 1 day »
[00:00:50] rgrmatt: has joined #RubyOnRails
[00:01:24] grayjedi: has joined #RubyOnRails
[00:01:40] Or1on: has joined #RubyOnRails
[00:01:56] Or1on: has joined #RubyOnRails
[00:03:46] shock_one: has joined #RubyOnRails
[00:07:07] nertzy: has joined #RubyOnRails
[00:07:25] rubyonrailed: has joined #RubyOnRails
[00:07:44] ruid: has joined #RubyOnRails
[00:07:45] ruid: has joined #RubyOnRails
[00:09:11] _Tariq: has joined #RubyOnRails
[00:09:29] cassioscabral: has joined #RubyOnRails
[00:12:31] shanemcd: has joined #RubyOnRails
[00:13:28] reaVer: has joined #RubyOnRails
[00:16:18] kuroro: has joined #RubyOnRails
[00:18:30] alex88: has joined #RubyOnRails
[00:20:06] annlewis: has joined #RubyOnRails
[00:22:43] bronson: has joined #RubyOnRails
[00:24:24] hardtail: has joined #RubyOnRails
[00:25:00] phantummm: has joined #RubyOnRails
[00:25:24] rhizome: has_and_belongs_to_many is the only time join-model-naming matters
[00:25:57] DLSteve: has joined #RubyOnRails
[00:26:13] qejk: has joined #RubyOnRails
[00:36:12] smathy: has joined #RubyOnRails
[00:39:51] FCser: has joined #RubyOnRails
[00:43:45] wethu: has joined #RubyOnRails
[00:45:15] DavidDudson: has joined #RubyOnRails
[00:45:35] thejamespinto: has joined #RubyOnRails
[00:45:38] owenjones: has joined #RubyOnRails
[00:53:50] wethu: has joined #RubyOnRails
[00:54:24] rgrmatt: has joined #RubyOnRails
[00:54:46] Cache_Money: rhizome: gotcha. thanks
[00:59:44] tenderlove: has joined #RubyOnRails
[01:00:34] jmrepetti: has joined #RubyOnRails
[01:00:55] ornerymoose: has joined #RubyOnRails
[01:00:58] thejamespinto: has joined #RubyOnRails
[01:02:32] jmrepetti: has joined #RubyOnRails
[01:04:25] jmrepetti: has joined #RubyOnRails
[01:06:28] jmrepetti: has joined #RubyOnRails
[01:06:43] DavidDudson: has joined #RubyOnRails
[01:08:10] jmrepetti: has joined #RubyOnRails
[01:10:08] jmrepetti: has joined #RubyOnRails
[01:11:58] jmrepetti: has joined #RubyOnRails
[01:13:55] jmrepetti: has joined #RubyOnRails
[01:15:50] jmrepetti: has joined #RubyOnRails
[01:17:47] jmrepetti: has joined #RubyOnRails
[01:19:41] jmrepetti: has joined #RubyOnRails
[01:20:30] duderonomy: has joined #RubyOnRails
[01:21:33] jmrepetti: has joined #RubyOnRails
[01:21:36] hackeron: has joined #RubyOnRails
[01:23:26] jmrepetti: has joined #RubyOnRails
[01:24:27] viiralvx: has joined #RubyOnRails
[01:25:23] jmrepetti: has joined #RubyOnRails
[01:27:16] jmrepetti: has joined #RubyOnRails
[01:29:11] jmrepetti: has joined #RubyOnRails
[01:29:56] Sawbones: has joined #RubyOnRails
[01:30:51] greg: has joined #RubyOnRails
[01:31:05] jmrepetti: has joined #RubyOnRails
[01:31:40] atumzin: has joined #RubyOnRails
[01:31:52] atumzin: has joined #RubyOnRails
[01:32:57] jmrepetti: has joined #RubyOnRails
[01:34:57] jmrepetti: has joined #RubyOnRails
[01:35:46] pwnd_nsfw: has joined #RubyOnRails
[01:36:50] jmrepetti: has joined #RubyOnRails
[01:38:47] jmrepetti: has joined #RubyOnRails
[01:39:07] greg: Wap a prog to print abhove output?
[01:39:30] DavidDudson: has joined #RubyOnRails
[01:40:14] bronson: has joined #RubyOnRails
[01:40:42] jmrepetti: has joined #RubyOnRails
[01:42:20] one_zero: has joined #RubyOnRails
[01:42:35] jmrepetti: has joined #RubyOnRails
[01:44:26] jmrepetti: has joined #RubyOnRails
[01:45:43] bronson: has joined #RubyOnRails
[01:46:21] jmrepetti: has joined #RubyOnRails
[01:47:53] fryguy: how can i define a method on a class that has a runtime-determined number of arguments?
[01:48:13] FailBit: using define_method or just def?
[01:48:20] fryguy: using define_method
[01:48:22] jmrepetti: has joined #RubyOnRails
[01:48:27] FailBit: procs can take varargs
[01:48:40] FailBit: and kwargs iirc
[01:49:07] fryguy: doesn't seem to be working for me. hold on, gonna paste
[01:49:27] FailBit: define_method :some_method {|*args| p args }
[01:50:08] fryguy: yah that's not working, pasting
[01:50:13] jmrepetti: has joined #RubyOnRails
[01:50:55] fryguy: https://gist.github.com/bryanalves/905c9420f7d8febd0093
[01:51:28] fryguy: whoops, I mispasted, the "klass.dynamic_method" line is supposed to be "klass.new.dynamic_method"
[01:51:54] shock_one: has joined #RubyOnRails
[01:52:10] jmrepetti: has joined #RubyOnRails
[01:52:45] FailBit: works for me
[01:52:52] FailBit: even when using #pry in the middle
[01:53:11] fryguy: what version of ruby?
[01:53:30] fryguy: hrmm, i'm on a 2.1 right now
[01:53:43] FailBit: I think that should still work on 2.1
[01:54:03] jmrepetti: has joined #RubyOnRails
[01:54:10] fryguy: what version of pry?
[01:54:45] fryguy: i'm confused now
[01:54:52] fryguy: what else could be different ?
[01:55:07] FailBit: I called pry instead of binding.pry
[01:55:10] FailBit: let me try again with binding.pry
[01:55:30] FailBit: nah, still works
[01:55:38] fryguy: pry works
[01:55:42] fryguy: but binding.pry doesn't
[01:55:56] jmrepetti: has joined #RubyOnRails
[01:56:20] FailBit: I saw people using binding.pry all over the place
[01:56:24] FailBit: and I read up on how binding works
[01:56:29] FailBit: and I realized that all that was baloney
[01:56:51] FailBit: because pry is available in Binding
[01:56:54] FailBit: it's always there
[01:57:10] FailBit: (provided it's loaded, ofc)
[01:58:03] jmrepetti: has joined #RubyOnRails
[01:59:13] FailBit: https://gist.github.com/liamwhite/e1203d1a04be6150c5fa
[01:59:46] owenjones: has joined #RubyOnRails
[01:59:56] jmrepetti: has joined #RubyOnRails
[02:01:59] jmrepetti: has joined #RubyOnRails
[02:03:09] zamerick_: has joined #RubyOnRails
[02:03:15] reaVer: has joined #RubyOnRails
[02:03:34] owenjones: has joined #RubyOnRails
[02:03:53] jmrepetti: has joined #RubyOnRails
[02:05:47] jmrepetti: has joined #RubyOnRails
[02:06:13] shanemcd: has joined #RubyOnRails
[02:07:42] jmrepetti: has joined #RubyOnRails
[02:09:37] jmrepetti: has joined #RubyOnRails
[02:10:48] Palsson: has joined #RubyOnRails
[02:11:10] alex88: has joined #RubyOnRails
[02:11:32] jmrepetti: has joined #RubyOnRails
[02:11:36] hardtail: has joined #RubyOnRails
[02:13:23] jmrepetti: has joined #RubyOnRails
[02:14:00] LambdaSource: has joined #RubyOnRails
[02:15:17] jmrepetti: has joined #RubyOnRails
[02:17:15] jmrepetti: has joined #RubyOnRails
[02:17:35] chouhoulis: has joined #RubyOnRails
[02:19:04] tenderlove: has joined #RubyOnRails
[02:19:05] jmrepetti: has joined #RubyOnRails
[02:19:32] tenderlove: has joined #RubyOnRails
[02:20:59] jmrepetti: has joined #RubyOnRails
[02:21:55] hardtail: has joined #RubyOnRails
[02:22:55] jmrepetti: has joined #RubyOnRails
[02:24:50] jmrepetti: has joined #RubyOnRails
[02:25:35] owenjones: has joined #RubyOnRails
[02:26:31] tenderlove: has joined #RubyOnRails
[02:26:43] jmrepetti: has joined #RubyOnRails
[02:28:35] jmrepetti: has joined #RubyOnRails
[02:30:44] jmrepetti: has joined #RubyOnRails
[02:30:51] rickmasta: has joined #RubyOnRails
[02:32:23] juddey: has joined #RubyOnRails
[02:32:25] jmrepetti: has joined #RubyOnRails
[02:34:00] LambdaSource: has joined #RubyOnRails
[02:34:15] jmrepetti: has joined #RubyOnRails
[02:36:12] jmrepetti: has joined #RubyOnRails
[02:38:06] jmrepetti: has joined #RubyOnRails
[02:40:02] jmrepetti: has joined #RubyOnRails
[02:41:49] _Tariq: has joined #RubyOnRails
[02:41:55] jmrepetti: has joined #RubyOnRails
[02:43:51] jmrepetti: has joined #RubyOnRails
[02:44:51] yfeldblum: has joined #RubyOnRails
[02:45:41] jmrepetti: has joined #RubyOnRails
[02:47:32] bronson: has joined #RubyOnRails
[02:47:36] jmrepetti: has joined #RubyOnRails
[02:47:54] chipotle: has joined #RubyOnRails
[02:49:29] jmrepetti: has joined #RubyOnRails
[02:49:35] Babelfish: has left #RubyOnRails: ()
[02:49:44] Denarii: has joined #RubyOnRails
[02:51:24] jmrepetti: has joined #RubyOnRails
[02:53:19] jmrepetti: has joined #RubyOnRails
[02:55:12] jmrepetti: has joined #RubyOnRails
[02:55:54] grayjedi: has joined #RubyOnRails
[02:57:05] jmrepetti: has joined #RubyOnRails
[02:59:03] jmrepetti: has joined #RubyOnRails
[03:00:58] jmrepetti: has joined #RubyOnRails
[03:01:34] shiru: has joined #RubyOnRails
[03:01:40] tenderlove: has joined #RubyOnRails
[03:02:04] cassioscabral: has joined #RubyOnRails
[03:02:49] jmrepetti: has joined #RubyOnRails
[03:03:28] owenjones: has joined #RubyOnRails
[03:03:48] User458764: has joined #RubyOnRails
[03:04:42] jmrepetti: has joined #RubyOnRails
[03:06:07] djbkd: has joined #RubyOnRails
[03:06:39] jmrepetti: has joined #RubyOnRails
[03:08:32] jmrepetti: has joined #RubyOnRails
[03:09:18] pyemkey: has joined #RubyOnRails
[03:10:24] jmrepetti: has joined #RubyOnRails
[03:10:31] cassioscabral: has joined #RubyOnRails
[03:12:23] jmrepetti: has joined #RubyOnRails
[03:13:43] kkeuning: has joined #RubyOnRails
[03:14:14] jmrepetti: has joined #RubyOnRails
[03:15:12] DavidDudson: has joined #RubyOnRails
[03:15:38] kkeuning: has joined #RubyOnRails
[03:16:09] jmrepetti: has joined #RubyOnRails
[03:18:01] jmrepetti: has joined #RubyOnRails
[03:18:29] chouhoulis: has joined #RubyOnRails
[03:19:11] annlewis: has joined #RubyOnRails
[03:19:56] jmrepetti: has joined #RubyOnRails
[03:20:26] chipotle: has joined #RubyOnRails
[03:21:51] jmrepetti: has joined #RubyOnRails
[03:23:44] jmrepetti: has joined #RubyOnRails
[03:25:37] jmrepetti: has joined #RubyOnRails
[03:26:44] djbkd: has joined #RubyOnRails
[03:27:34] jmrepetti: has joined #RubyOnRails
[03:28:50] atomical: has joined #RubyOnRails
[03:29:17] nibbo: has joined #RubyOnRails
[03:29:26] jmrepetti: has joined #RubyOnRails
[03:29:40] kuroro: has joined #RubyOnRails
[03:31:22] jmrepetti: has joined #RubyOnRails
[03:39:14] shanemcd: has joined #RubyOnRails
[03:39:46] The_Phoenix: has joined #RubyOnRails
[03:40:53] shock_one: has joined #RubyOnRails
[03:44:04] lessless: has joined #RubyOnRails
[03:44:07] Coldblackice: has joined #RubyOnRails
[03:44:12] yinliu: has joined #RubyOnRails
[03:44:23] brt: has joined #RubyOnRails
[03:47:39] lessless: Hey guys, maybe anyone can help with rubocop - how to allow extra spaces for the line formatting http://cl.ly/3I1p0r252S19 ?
[03:49:36] nyaa: has joined #RubyOnRails
[03:50:16] Cohedrin: you could disable the cop
[03:50:23] Cohedrin: is that what you want to do?
[03:52:30] Cohedrin: https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
[03:52:59] Cohedrin: you could check here and disable that cop with the syntax rubocop:disable copnamehere
[03:53:31] Cohedrin: I'm not sure the exact name of that cop, I would guess something to do with extra spacing, though sublime usually gives you hints to the name
[03:57:50] FailBit: rubocop can be annoying at times
[03:57:58] sucks: has joined #RubyOnRails
[03:58:05] cassioscabral: has joined #RubyOnRails
[04:15:24] braincrash: has joined #RubyOnRails
[04:16:04] ss_much: has joined #RubyOnRails
[04:18:55] nertzy: has joined #RubyOnRails
[04:19:14] chouhoulis: has joined #RubyOnRails
[04:22:42] hardtail: has joined #RubyOnRails
[04:23:56] LambdaSource: has joined #RubyOnRails
[04:30:51] chipotle: has joined #RubyOnRails
[04:31:54] Hazim: has joined #RubyOnRails
[04:32:29] nocd: has joined #RubyOnRails
[04:32:35] hardtail: has joined #RubyOnRails
[04:39:28] Sawbones: has joined #RubyOnRails
[04:42:18] hardtail: has joined #RubyOnRails
[04:42:54] eddiegrey: has joined #RubyOnRails
[04:42:59] eddiegrey_: has joined #RubyOnRails
[04:43:34] eddiegrey: has joined #RubyOnRails
[04:47:34] atumzin: has joined #RubyOnRails
[04:47:35] shanemcd: has joined #RubyOnRails
[04:48:27] annlewis: has joined #RubyOnRails
[04:51:33] hardtail: has joined #RubyOnRails
[04:54:30] shibabu: has joined #RubyOnRails
[04:58:39] jmimi: has joined #RubyOnRails
[05:03:46] phantummm: has joined #RubyOnRails
[05:05:56] darkxploit: has joined #RubyOnRails
[05:06:00] kiez0rd: has joined #RubyOnRails
[05:06:35] darkxploit: has joined #RubyOnRails
[05:10:08] pulgalipe: has joined #RubyOnRails
[05:11:16] wethu: has joined #RubyOnRails
[05:12:27] pyemkey: has joined #RubyOnRails
[05:18:09] quazimodo: has joined #RubyOnRails
[05:20:30] chouhoulis: has joined #RubyOnRails
[05:23:30] Sawbones: has joined #RubyOnRails
[05:27:45] yogeshrt: has joined #RubyOnRails
[05:28:01] rickmasta: has joined #RubyOnRails
[05:30:20] quazimodo: has joined #RubyOnRails
[05:30:31] rubyonrailed: has joined #RubyOnRails
[05:33:10] dviola: has joined #RubyOnRails
[05:45:36] jessemcgilallen: has joined #RubyOnRails
[05:48:58] bronson: has joined #RubyOnRails
[05:49:15] annlewis: has joined #RubyOnRails
[05:50:48] Secretmapper: has joined #RubyOnRails
[06:03:06] tenderlove: has joined #RubyOnRails
[06:03:22] dviola: has joined #RubyOnRails
[06:08:04] Secretmapper: has joined #RubyOnRails
[06:09:46] jmimi: has joined #RubyOnRails
[06:10:42] Secretmapper: Hello, can anyone take a look at my gist: https://gist.github.com/Secretmapper/b54d2a9243922e8cd3a1
[06:10:52] Secretmapper: It's a model/relation question/problem
[06:11:04] Secretmapper: I can get the items owned by my object but not it's owner
[06:11:40] shanemcd: has joined #RubyOnRails
[06:11:51] djbkd: has joined #RubyOnRails
[06:12:02] rdavila: has joined #RubyOnRails
[06:12:29] user083_: has joined #RubyOnRails
[06:14:37] tenderlove: has joined #RubyOnRails
[06:15:17] Moeh: has joined #RubyOnRails
[06:17:09] Moeh: Is there any way to pass an object between two controller actions without saving it to the database? Say I have users#foo where I do "@user = User.new" and "@user.firstname = 'paul' and I have users#baa where I would like to do "@user.lastname = 'stone'"? Is there any way to achieve this behavior?
[06:18:12] yfeldblum: has joined #RubyOnRails
[06:19:26] Secretmapper: Moeh: why not just use a private method?
[06:19:35] Secretmapper: to create the user or something
[06:19:44] Secretmapper: seems like you're coupling these things
[06:19:45] tpendragon: has joined #RubyOnRails
[06:21:14] chouhoulis: has joined #RubyOnRails
[06:22:10] Moeh: Secretmapper: Let me provide some context. I make heavy use of the sync gem (https://github.com/chrismccord/sync) to update my views. However, syncing the partials through the sync gem is invoked when the model is saved. That is usually not a problem, but now I would like to enable the user to do changes to a model, get the synced partials but in the end allow to either "Save" or "Cancel". If I save the model in between, I have prob
[06:22:25] Moeh: If I don't save it, I am not sure how to call the sync action.
[06:23:06] Moeh: That is why my idea was to have a new controller action called "sync", that would call "sync_update @model" so that the partials are synced. However this should happen on the modified object that is not saved.
[06:29:35] andrew9184: has joined #RubyOnRails
[06:29:54] framling: has joined #RubyOnRails
[06:38:49] sadaf2606: has joined #RubyOnRails
[06:41:12] tenderlove: has joined #RubyOnRails
[06:43:15] raunicolae: has joined #RubyOnRails
[06:45:15] srinidhi: has joined #RubyOnRails
[06:45:21] sarink: has joined #RubyOnRails
[06:50:00] annlewis: has joined #RubyOnRails
[06:54:59] shibabu: has joined #RubyOnRails
[07:00:29] annlewis: has joined #RubyOnRails
[07:01:02] shanemcd: has joined #RubyOnRails
[07:04:50] shock_one: has joined #RubyOnRails
[07:13:19] yardenbar: has joined #RubyOnRails
[07:14:59] lessless: has joined #RubyOnRails
[07:15:14] pulgalipe: has joined #RubyOnRails
[07:15:22] pyemkey: has joined #RubyOnRails
[07:16:18] M-shine: has joined #RubyOnRails
[07:19:09] shock_one: has joined #RubyOnRails
[07:19:40] agoldboi: has joined #RubyOnRails
[07:20:18] dionysus69: has joined #RubyOnRails
[07:22:01] chouhoulis: has joined #RubyOnRails
[07:22:54] tildes: has joined #RubyOnRails
[07:24:18] lxsameer: has joined #RubyOnRails
[07:25:53] Hazim: has joined #RubyOnRails
[07:27:12] agoldboi: has joined #RubyOnRails
[07:37:24] DavidDudson: has joined #RubyOnRails
[07:37:51] NBarnes: has joined #RubyOnRails
[07:38:31] User458764: has joined #RubyOnRails
[07:41:16] Cohedrin: has joined #RubyOnRails
[07:48:55] darutoko: has joined #RubyOnRails
[07:51:13] bronson: has joined #RubyOnRails
[07:53:45] iateadonut: has joined #RubyOnRails
[07:55:13] ibouvousaime: has joined #RubyOnRails
[08:04:31] Hazim: has joined #RubyOnRails
[08:06:57] yogeshrt: has joined #RubyOnRails
[08:08:52] User458764: has joined #RubyOnRails
[08:11:27] johnflux_: has joined #RubyOnRails
[08:11:27] johnflux_: has joined #RubyOnRails
[08:11:30] thejamespinto: has joined #RubyOnRails
[08:14:38] lessless: has joined #RubyOnRails
[08:15:18] Hazim: has joined #RubyOnRails
[08:16:49] solars: has joined #RubyOnRails
[08:17:59] Hazim: has joined #RubyOnRails
[08:22:30] johnflux: has joined #RubyOnRails
[08:22:30] johnflux: has joined #RubyOnRails
[08:22:49] chouhoulis: has joined #RubyOnRails
[08:26:33] ibouvousaime: has joined #RubyOnRails
[08:28:42] brt: has joined #RubyOnRails
[08:31:19] ewnd9: has joined #RubyOnRails
[08:39:40] brt_: has joined #RubyOnRails
[08:42:58] darutoko-: has joined #RubyOnRails
[08:44:27] srinidhi: has joined #RubyOnRails
[08:46:54] rubyonrailed: has joined #RubyOnRails
[08:53:09] zamerick_: has joined #RubyOnRails
[08:57:34] agit0: has joined #RubyOnRails
[08:58:24] shibabu: has joined #RubyOnRails
[09:02:06] arBmind: has joined #RubyOnRails
[09:03:16] shanemcd: has joined #RubyOnRails
[09:12:36] srinidhi: has joined #RubyOnRails
[09:15:44] ace05: has joined #RubyOnRails
[09:17:16] Pazician: has joined #RubyOnRails
[09:17:21] pyemkey: has joined #RubyOnRails
[09:22:26] codergeek: has joined #RubyOnRails
[09:23:31] chouhoulis: has joined #RubyOnRails
[09:24:44] lacrymology: has joined #RubyOnRails
[09:28:57] Cervajz: has joined #RubyOnRails
[09:30:41] jmrepetti: has joined #RubyOnRails
[09:30:48] zpe: has joined #RubyOnRails
[09:31:09] Cervajz_: has joined #RubyOnRails
[09:34:49] AzaToth: has joined #RubyOnRails
[09:38:31] dici: has joined #RubyOnRails
[09:39:04] NBarnes: has joined #RubyOnRails
[09:42:57] ewilliam_: has joined #RubyOnRails
[09:44:43] jmimi: has joined #RubyOnRails
[09:48:27] pulgalipe: has joined #RubyOnRails
[09:51:32] baweaver: has joined #RubyOnRails
[09:57:01] bmalum: has joined #RubyOnRails
[09:57:15] berserk_ren: has joined #RubyOnRails
[10:02:14] shock_one: has joined #RubyOnRails
[10:05:58] cornerma1: has joined #RubyOnRails
[10:07:01] Radar: jhass: !gist-usage
[10:07:01] helpa: jhass: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[10:07:05] Radar: ACTION disappears again
[10:07:16] SteenJobs: has joined #RubyOnRails
[10:09:46] teclator: has joined #RubyOnRails
[10:11:24] dopie: has joined #RubyOnRails
[10:11:43] neanderslob: has joined #RubyOnRails
[10:12:07] dopie: https://gist.github.com/anonymous/66aa35d659780beca6a1
[10:12:23] dopie: cannot find route matching post
[10:12:25] dopie: i checked my route
[10:12:33] dopie: and its there... i don't know what I'm doing wrong ....
[10:12:52] dopie: my form is for a new comment
[10:15:48] ewnd9: has joined #RubyOnRails
[10:18:13] pyemkey: has joined #RubyOnRails
[10:21:41] The_Phoenix: has joined #RubyOnRails
[10:23:27] SteenJobs: has joined #RubyOnRails
[10:24:22] chouhoulis: has joined #RubyOnRails
[10:26:59] czetter: has joined #RubyOnRails
[10:27:50] agoldboi: has joined #RubyOnRails
[10:28:16] ornerymoose: has joined #RubyOnRails
[10:30:08] mostlybadfly: has joined #RubyOnRails
[10:31:31] jlyndon: has joined #RubyOnRails
[10:34:20] n008f4g_: has joined #RubyOnRails
[10:40:50] n008f4g_: has joined #RubyOnRails
[10:41:02] jord: has joined #RubyOnRails
[10:42:56] ELCALOR: has joined #RubyOnRails
[10:43:10] Guest4184___: has joined #RubyOnRails
[10:43:10] jxf: has joined #RubyOnRails
[10:43:14] MiracleBlue_: has joined #RubyOnRails
[10:43:38] BBHoss: has joined #RubyOnRails
[10:44:03] daxroc: has joined #RubyOnRails
[10:44:15] mjc_: has joined #RubyOnRails
[10:44:15] dotty: has joined #RubyOnRails
[10:44:16] corioliss: has joined #RubyOnRails
[10:44:23] lbotos: has joined #RubyOnRails
[10:44:51] neilfse: has joined #RubyOnRails
[10:45:00] newton: has joined #RubyOnRails
[10:45:03] danlucraft: has joined #RubyOnRails
[10:45:08] ewilliam_: has joined #RubyOnRails
[10:45:08] alxndr: has joined #RubyOnRails
[10:45:10] kumavis: has joined #RubyOnRails
[10:45:19] Hates_: has joined #RubyOnRails
[10:45:30] Cervajz: has joined #RubyOnRails
[10:45:37] krainboltgreene: has joined #RubyOnRails
[10:45:50] zrl: has joined #RubyOnRails
[10:46:30] chancancode___: has joined #RubyOnRails
[10:46:33] Phoop____: has joined #RubyOnRails
[10:46:38] amitchellbullard: has joined #RubyOnRails
[10:46:50] Lloyd: has joined #RubyOnRails
[10:47:06] uranther: has joined #RubyOnRails
[10:47:12] Somnius: has joined #RubyOnRails
[10:47:39] zemmihates: has joined #RubyOnRails
[10:47:44] iamdevnul__: has joined #RubyOnRails
[10:47:58] jmimi: has joined #RubyOnRails
[10:48:05] feignt: has joined #RubyOnRails
[10:48:32] jlpeters: has joined #RubyOnRails
[10:48:45] The_Phoenix: has joined #RubyOnRails
[10:48:47] pfg: has joined #RubyOnRails
[10:49:19] pulgalipe: has joined #RubyOnRails
[10:49:40] machty: has joined #RubyOnRails
[10:49:44] czetter: has joined #RubyOnRails
[10:50:08] barttenbrinke: has joined #RubyOnRails
[10:50:09] golgaroth: has joined #RubyOnRails
[10:50:25] shwoodard____: has joined #RubyOnRails
[10:50:32] creyes: has joined #RubyOnRails
[10:50:43] SuppliedRelic: has joined #RubyOnRails
[10:51:03] DysonReturns: has joined #RubyOnRails
[10:51:04] joaomdmoura__: has joined #RubyOnRails
[10:51:05] kitsuneyo: has joined #RubyOnRails
[10:51:09] lacrosse: has joined #RubyOnRails
[10:51:57] spastorino: has joined #RubyOnRails
[10:51:58] jlyndon: has joined #RubyOnRails
[10:52:13] trbox____: has joined #RubyOnRails
[10:52:15] benlakey: has joined #RubyOnRails
[10:52:32] lxkm: has joined #RubyOnRails
[10:52:34] Obi_obi: has joined #RubyOnRails
[10:52:57] faisal_: has joined #RubyOnRails
[10:53:11] ahills: has joined #RubyOnRails
[10:53:25] DysonReturns: hey guys, I'm stuck on something stupid. can I get a hand please?
[10:53:44] CornishPasty: has joined #RubyOnRails
[10:53:48] DysonReturns: a guy is posting me un-nested params :name, :surname instead of {:person => {:name, :surname}} . I don't know how to do the .require and .permit if its not nested within :person
[10:54:31] DysonReturns: ForbiddenAttributesError is what I get
[10:54:42] kapowaz_: has joined #RubyOnRails
[10:54:47] DysonReturns: when trying to save the person model then.
[10:55:12] tbuehlmann: DysonReturns, don't you just need to call .permit(...) on the params then?
[10:55:34] DysonReturns: is "required" not necessary aswell then?
[10:55:43] DysonReturns: ".require" i mean\
[10:56:03] rubyonrailed: has joined #RubyOnRails
[10:57:08] tbuehlmann: yup, just not needed
[10:57:38] DysonReturns: what else might be the cause of that error then. sorry i'm not going to pastebin two lines. incoming:
[10:57:47] DysonReturns: params.permit(:name,:surname)
[10:57:48] DysonReturns: Person.create(params)
[10:58:18] DysonReturns: ForbiddenAttributesError rails 4.2
[10:58:19] tbuehlmann: try this: `person_params = params.permit(:name, :surname); Person.create(person_params)`
[10:59:42] DysonReturns: thanks, I can't guess as to why that works.
[11:00:03] DysonReturns: assuming "permit" returns something with a different class than params
[11:00:27] DysonReturns: whats the right way to trigger an error if :name or :surname is missing?
[11:00:40] DysonReturns: just do them individually, i suppose with .require, right?
[11:00:56] tbuehlmann: I'd do that with a model validation rather than checking the params
[11:01:47] DysonReturns: thanks for your time dude.
[11:02:18] shibabu: has joined #RubyOnRails
[11:05:37] shanemcd: has joined #RubyOnRails
[11:08:13] kitsuneyo: has joined #RubyOnRails
[11:08:41] yfeldblum: has joined #RubyOnRails
[11:08:45] jhass: Radar: ty!
[11:15:17] shapeshifter: I have a problem with submitting a form. The submit button is created using this: <%= submit_tag Spree.t(:redeem), id: 'redeem_coupon', name: 'redeem_coupon', class: 'btn btn-lg btn-success' %> and it is rendered like this: <input id="redeem_coupon" class="btn btn-lg btn-success" type="submit" value="Einl??sen" name="redeem_coupon"> The problem is, that the button name/value is not submitted in t
[11:15:39] shapeshifter: Even though it has both name and value, and I click it manually (not using js submit)
[11:17:55] quazimodo: has joined #RubyOnRails
[11:18:03] maesitos: has joined #RubyOnRails
[11:25:08] chouhoulis: has joined #RubyOnRails
[11:27:09] jbrhbr: has joined #RubyOnRails
[11:28:02] zpe: has joined #RubyOnRails
[11:32:24] pyemkey: has joined #RubyOnRails
[11:37:01] Ergo: has joined #RubyOnRails
[11:38:29] bronson: has joined #RubyOnRails
[11:39:37] NBarnes: has joined #RubyOnRails
[11:42:24] shock_one: has joined #RubyOnRails
[11:44:06] codergeek: has joined #RubyOnRails
[11:45:06] pyemkey: has joined #RubyOnRails
[11:45:42] agit0: has joined #RubyOnRails
[11:48:46] pyemkey_: has joined #RubyOnRails
[11:51:11] shapeshifter: nvm, identified the Problem. There's a "disable button on click" feature that messes with the submitted params
[11:52:46] baweaver: has joined #RubyOnRails
[11:54:24] pyemkey: has joined #RubyOnRails
[11:56:39] pyemkey: has joined #RubyOnRails
[11:57:23] rubyonrailed: has joined #RubyOnRails
[11:57:52] bmalum: has joined #RubyOnRails
[11:58:44] agoldboi: has joined #RubyOnRails
[11:58:59] pyemkey: has joined #RubyOnRails
[12:01:55] cornerman: has joined #RubyOnRails
[12:04:00] pyemkey_: has joined #RubyOnRails
[12:04:34] shibabu: has joined #RubyOnRails
[12:05:31] c355E3B: has joined #RubyOnRails
[12:07:29] Hazim: has joined #RubyOnRails
[12:08:00] diego1: has joined #RubyOnRails
[12:08:04] diego1: has joined #RubyOnRails
[12:08:44] pyemkey: has joined #RubyOnRails
[12:16:30] codergeek: has joined #RubyOnRails
[12:16:39] yogeshrt: has joined #RubyOnRails
[12:18:29] nfk|laptop: has joined #RubyOnRails
[12:19:42] SteenJobs: has joined #RubyOnRails
[12:20:28] diego1: has joined #RubyOnRails
[12:20:32] diego1: has joined #RubyOnRails
[12:25:51] chouhoulis: has joined #RubyOnRails
[12:27:11] Palsson: has joined #RubyOnRails
[12:29:23] diego1: has joined #RubyOnRails
[12:29:29] diego1: has joined #RubyOnRails
[12:30:15] pyemkey: has joined #RubyOnRails
[12:31:35] bigbob: has joined #RubyOnRails
[12:35:05] danneu: has joined #RubyOnRails
[12:36:15] pyemkey: has joined #RubyOnRails
[12:39:50] pyemkey: has joined #RubyOnRails
[12:42:05] thejamespinto: has joined #RubyOnRails
[12:45:05] pyemkey: has joined #RubyOnRails
[12:50:30] pyemkey: has joined #RubyOnRails
[12:52:55] pyemkey: has joined #RubyOnRails
[12:54:25] dideler: has joined #RubyOnRails
[12:54:36] FernandoBasso: has joined #RubyOnRails
[12:54:52] tknz: has joined #RubyOnRails
[12:57:34] cabotto: has joined #RubyOnRails
[12:59:30] bmalum: has joined #RubyOnRails
[12:59:54] Hazim: has joined #RubyOnRails
[13:00:31] pyemkey: has joined #RubyOnRails
[13:03:53] FooMunki: has joined #RubyOnRails
[13:07:21] shanemcd: has joined #RubyOnRails
[13:07:57] thebastl: has joined #RubyOnRails
[13:09:42] nickenchuggets: has joined #RubyOnRails
[13:09:42] nickenchuggets: has joined #RubyOnRails
[13:10:27] zamerick_: has joined #RubyOnRails
[13:12:58] jmrepetti: has joined #RubyOnRails
[13:13:59] weihan: has joined #RubyOnRails
[13:14:49] pyemkey: has joined #RubyOnRails
[13:18:24] bmalum: has joined #RubyOnRails
[13:19:55] qurve: has joined #RubyOnRails
[13:20:10] User458764: has joined #RubyOnRails
[13:21:02] qurve: Has anyone had a problem switching the session store to redis using reddis-rails and then having csrf token verification fail? I have a feeling I am doing something very dumb, but I'm at a loss.
[13:21:10] shanemcd: has joined #RubyOnRails
[13:21:17] qurve: I've used this in past projects, but for the life of me, I can't fix this in my new one.
[13:21:28] pulgalipe: has joined #RubyOnRails
[13:21:46] qurve: I can see it writing a cookie to the client, and there's a key in redis with that id, but the csrf_token stored in redis is not the same as the one in the meta tag.
[13:24:33] shock_one: has joined #RubyOnRails
[13:25:31] NBarnes: has joined #RubyOnRails
[13:26:12] qurve: And of course, as soon as I type that, I figure it out. Apparently you can't use the key: attribute to control the session cookie name with :redis_store.
[13:26:15] iateadonut: has joined #RubyOnRails
[13:26:38] chouhoulis: has joined #RubyOnRails
[13:27:10] pawnbox: has joined #RubyOnRails
[13:33:46] nocd: has joined #RubyOnRails
[13:36:55] pyemkey: has joined #RubyOnRails
[13:39:15] pyemkey: has joined #RubyOnRails
[13:41:10] bronson: has joined #RubyOnRails
[13:41:35] pyemkey: has joined #RubyOnRails
[13:44:10] pyemkey: has joined #RubyOnRails
[13:46:06] ruid: has joined #RubyOnRails
[13:46:06] ruid: has joined #RubyOnRails
[13:46:30] pyemkey_: has joined #RubyOnRails
[13:48:12] arBmind: has joined #RubyOnRails
[13:49:31] lessless: has joined #RubyOnRails
[13:49:32] loren: has joined #RubyOnRails
[13:50:09] loren: has left #RubyOnRails: ()
[13:52:08] arup_r: has joined #RubyOnRails
[13:53:28] baweaver: has joined #RubyOnRails
[13:55:41] akshat: has joined #RubyOnRails
[13:59:50] pyemkey: has joined #RubyOnRails
[14:02:26] Bloomer: has joined #RubyOnRails
[14:06:24] wmdrossard: has joined #RubyOnRails
[14:07:48] shibabu: has joined #RubyOnRails
[14:13:01] zpe: has joined #RubyOnRails
[14:15:30] pyemkey: has joined #RubyOnRails
[14:16:21] tildes: has joined #RubyOnRails
[14:27:22] chouhoulis: has joined #RubyOnRails
[14:28:30] dionysus69: has joined #RubyOnRails
[14:28:30] workmad3: has joined #RubyOnRails
[14:28:35] pyemkey: has joined #RubyOnRails
[14:30:13] Sylario: has joined #RubyOnRails
[14:30:18] thejamespinto: has joined #RubyOnRails
[14:32:02] stannard: has joined #RubyOnRails
[14:32:07] pyemkey_: has joined #RubyOnRails
[14:34:26] johnflux: has joined #RubyOnRails
[14:34:27] johnflux: has joined #RubyOnRails
[14:37:41] pyemkey: has joined #RubyOnRails
[14:40:01] pyemkey: has joined #RubyOnRails
[14:41:10] darkxploit: has joined #RubyOnRails
[14:43:16] shock_one: has joined #RubyOnRails
[14:49:07] Xentil: has joined #RubyOnRails
[14:50:15] hardtail: has joined #RubyOnRails
[14:52:26] Pazician: has joined #RubyOnRails
[14:52:27] shock_one: has joined #RubyOnRails
[14:53:16] loren: has joined #RubyOnRails
[14:53:30] hardtail: When redirection domains with Heroku, will the .com stay in the address bar for the whole application or will it just take us to the herokuapp address and show it in the address bar?
[14:53:33] loren321: has joined #RubyOnRails
[14:55:10] ibouvousaime: has joined #RubyOnRails
[14:56:04] IFrank00: has joined #RubyOnRails
[15:00:08] bmalum: has joined #RubyOnRails
[15:01:24] ElSif: has joined #RubyOnRails
[15:05:22] shanemcd: has joined #RubyOnRails
[15:06:23] netzfisch: has joined #RubyOnRails
[15:07:55] adavia: has joined #RubyOnRails
[15:10:02] zpe: has joined #RubyOnRails
[15:14:35] kitsuneyo: has joined #RubyOnRails
[15:14:57] pyemkey: has joined #RubyOnRails
[15:15:52] johnflux: has joined #RubyOnRails
[15:15:53] johnflux: has joined #RubyOnRails
[15:17:04] rubyonrailed: has joined #RubyOnRails
[15:17:12] ewnd9: has joined #RubyOnRails
[15:17:33] pyemkey: has joined #RubyOnRails
[15:18:53] owenjones: has joined #RubyOnRails
[15:20:14] shanemcd: has joined #RubyOnRails
[15:21:03] pyemkey: has joined #RubyOnRails
[15:22:04] FailBit: Hardtail: what?
[15:24:27] hardtail: FailBit: hi, thanks for your time. I have my first Heroku app ready to be released to its community. I set inside the Heroku CLI it's respective domain. Just waiting on the owner to redirect his domain to the heroku app. I am wondering if the address bar will actually display the .com throughout the whole app or will it show the Heroku address?
[15:24:48] thejamespinto: has joined #RubyOnRails
[15:25:12] Or1on: has joined #RubyOnRails
[15:25:12] Or1on: has joined #RubyOnRails
[15:25:18] ace05: has joined #RubyOnRails
[15:25:47] FailBit: IIRC, Socket.gethostname will show the heroku address but redirect_to etc will all use the correct domain
[15:25:59] FailBit: I have the same app running across 3 domains and it works fine
[15:26:20] NBarnes: has joined #RubyOnRails
[15:26:48] arBmind: has joined #RubyOnRails
[15:26:54] FailBit: 4, actually, if you count its onion address
[15:28:08] chouhoulis: has joined #RubyOnRails
[15:28:53] kuroro: has joined #RubyOnRails
[15:29:21] netzfisch: has joined #RubyOnRails
[15:30:06] ja: onion address, huh? ( ???? ???? ????)
[15:30:10] hardtail: Failbit ok so I must add redirect_to inside my app on top of https://devcenter.heroku.com/articles/custom-domains ?
[15:30:30] FailBit: you shouldn't have to do anything if you followed convention
[15:30:40] hardtail: ok, thank you
[15:30:46] hardtail: sorry for the misunderstanding
[15:31:24] FailBit: ja: https://ronxgr5zb4dkwdpt.onion/
[15:32:07] FailBit: btw people that use fancy bruteforced prefixes in the onion address are morons
[15:33:16] YankNYC: has joined #RubyOnRails
[15:34:07] shock_one: has joined #RubyOnRails
[15:34:28] YankNYC: Good morning everyone
[15:34:58] jmimi: has joined #RubyOnRails
[15:35:06] YankNYC: So I'm working on a rails project and trying to figure out exactly how this proc is working in the given context
[15:35:15] ja: ACTION installs TorBrowser
[15:35:17] workmad3: has joined #RubyOnRails
[15:35:46] DiCablo: has joined #RubyOnRails
[15:37:57] stannard: has joined #RubyOnRails
[15:38:07] YankNYC: https://gist.github.com/anonymous/26135115d8d14e9859e3
[15:38:29] YankNYC: ok so lets assume indeed these methods do exist in the Task model
[15:38:59] YankNYC: i understand the proc is checking task for the methods but it's trippy
[15:39:15] YankNYC: kinda don't know what to google if i want to dissect this further
[15:39:39] YankNYC: i'll try debugging to_proc in pry
[15:40:06] FailBit: first of all
[15:40:10] FailBit: please use this syntax instead https://gist.github.com/liamwhite/08d71211b36bc04359b8
[15:40:14] FailBit: it is FAR more readable
[15:40:36] loren321: has left #RubyOnRails: ("Leaving")
[15:40:43] FailBit: second of all, to_proc on a symbol creates a C method so you can't debug it in pry anyways
[15:40:46] ja: ???Maximizing Tor Browser can allow websites to determine your monitor size, which can be used to track you. We recommend that you leave Tor Browser windows in their original default size.??? ??? lol!
[15:40:50] YankNYC: yes syntax highlighting is for registered accounts i believe
[15:41:00] FailBit: that's not what I meant and no it's for everyone
[15:41:07] ja: FailBit: Cool site. Why do you have an onion address for that?
[15:41:08] FailBit: you just have to name it as .rb
[15:41:14] FailBit: ja: russia blocked us
[15:41:21] ja: fuckers
[15:41:30] FailBit: we had some content that is too hot for putin
[15:41:54] ja: haha, I can imagine
[15:41:59] ja: long live Tor!
[15:41:59] YankNYC: sorry i didn't name the file so it didn't use syntax highlighting
[15:42:07] FailBit: YankNYC: what I meant was to put the function definition as its own line
[15:42:19] ace05: has joined #RubyOnRails
[15:42:19] FailBit: the syntax highlighting is a bonus and I can live without it
[15:42:38] YankNYC: haha omg i'm so sorry
[15:42:42] hardtail: FailBit do I need an onion router to view that link?
[15:42:47] goodcodeguy: has joined #RubyOnRails
[15:42:56] YankNYC: i was pasting from the stupid pdf
[15:43:22] Bloomer: has joined #RubyOnRails
[15:43:30] FailBit: Hardtail: you need tor
[15:43:31] ibouvousaime: has joined #RubyOnRails
[15:43:43] YankNYC: so can u explain how a proc works in the given context?
[15:44:12] marr: has joined #RubyOnRails
[15:44:20] FailBit: the unary & operator converts a block to a proc, or a symbol to a proc
[15:44:43] FailBit: maybe you've seen something like def method_missing(name, *args, &block)
[15:44:55] pyemkey: has joined #RubyOnRails
[15:45:08] YankNYC: there is no fail
[15:45:16] YankNYC: i'm just wondering how the proc works
[15:45:22] YankNYC: specifically
[15:46:07] shock_one: has joined #RubyOnRails
[15:46:15] YankNYC: ok i get it
[15:46:33] YankNYC: it's procing from the original object at the beginning of the method chain
[15:46:46] YankNYC: that's how it knows where to look for the method
[15:47:00] FailBit: &:thing creates a proc like this (but called from C, so invisible to pry) {|obj| obj.thing}
[15:47:20] FailBit: since ruby is duck typed it doesn't care what you call the method on, so long as the object has that method
[15:48:04] ja: Indeed, `foo(&:bar)` is just like doing `foo { |obj| obj.bar }`
[15:49:18] YankNYC: i almost wanted to say that's sort of like functional programming but not really since it's a reflection of ducktyping and how ruby looks through inheritance for methods
[15:49:32] FailBit: ruby is weird about inheritance because of eigenclasses
[15:49:52] FailBit: `include Mixin` is considered ancestry
[15:51:10] YankNYC: include statements sorta work like memory pointers but to an interface
[15:51:14] YankNYC: that's why it's useful
[15:51:46] YankNYC: we can share a common interface amongst many objects
[15:51:56] FailBit: interfaces are for java programmers
[15:52:05] FailBit: the ruby paradigm is to use duck typing for that
[15:52:21] YankNYC: when i articulate it, it comes from Sandi Metz
[15:52:34] YankNYC: that's the context i'm referring to.
[15:52:45] FailBit: mixins are still useful for code reuse and stuff
[15:52:49] YankNYC: loose coupling for high cohesion has to do with a flexible interface
[15:53:01] FCser: Hmm so I must be overlooking somethnig simple... I'm attempting to make a Cinch bot reply to it's own nick. But don't know how to access the bot's nick from within a plugin... (based on megahal plugin within this project https://github.com/woodruffw/yossarian-bot)...
[15:53:02] YankNYC: bottom line it's good 'ish
[15:53:26] YankNYC: thank you for being an awesome soundboard and teaching me new things today
[15:54:11] baweaver: has joined #RubyOnRails
[15:54:17] FailBit: now go explore the difference between lambda, proc, and block
[15:54:25] FailBit: that will make your eyes go wild with "wtf"
[15:54:44] YankNYC: lol yeah i've done that before.. the differences are minor.
[15:55:04] YankNYC: actually i'm working on rails 4 test prescriptions from pragmatic programmer
[15:55:14] YankNYC: that's where the sample of code was from
[15:55:32] YankNYC: great book but it made me switch from minitest to rspec lol
[15:55:49] FailBit: I hate rspec
[15:55:54] FailBit: ACTION steps down from soapbox
[15:55:54] YankNYC: it has source code for minitest but he really gets into it
[15:55:55] YankNYC: haha me too
[15:56:49] YankNYC: minitest is much simpler and lightweight. They try to make things very natural to read but i think it's a lot of extra work for little reward. However lots of companies in nyc use it so.. might as well know both.
[15:57:02] Bearie: has joined #RubyOnRails
[15:57:38] n008f4g_: has joined #RubyOnRails
[15:59:23] FailBit: eh that's what google is for
[15:59:28] Kilo`byte: has joined #RubyOnRails
[15:59:53] pyemkey: has joined #RubyOnRails
[16:03:23] pyemkey: has joined #RubyOnRails
[16:04:22] YankNYC: FailBit thanks again btw sorry about the lack of newlines and highlighting lol smh
[16:06:54] pyemkey: has joined #RubyOnRails
[16:08:47] jgt1: has joined #RubyOnRails
[16:09:08] StevenXL: has joined #RubyOnRails
[16:10:34] pyemkey_: has joined #RubyOnRails
[16:10:40] nfk|laptop: has joined #RubyOnRails
[16:10:43] shibabu: has joined #RubyOnRails
[16:12:52] Kilo`byte: has joined #RubyOnRails
[16:13:49] Cohedrin: has joined #RubyOnRails
[16:14:09] njero: has joined #RubyOnRails
[16:16:10] bronson: has joined #RubyOnRails
[16:17:31] NBarnes: has joined #RubyOnRails
[16:18:13] pyemkey: has joined #RubyOnRails
[16:18:43] thejamespinto: has joined #RubyOnRails
[16:20:41] YankNYC: fcser did you still need help with your bot
[16:28:54] chouhoulis: has joined #RubyOnRails
[16:29:08] Hazim: has joined #RubyOnRails
[16:32:18] jmrepetti: has joined #RubyOnRails
[16:34:52] srinidhi: has joined #RubyOnRails
[16:34:56] FCser: YankNYC: yea I'm still tinkering with it - I can use bot.nick inside methods
[16:35:03] nocd: has joined #RubyOnRails
[16:35:07] FCser: but I can't use it inside the match #{bot.nick} like I would expect
[16:36:44] hxegon: has joined #RubyOnRails
[16:37:49] YankNYC: why don't you put your code into a gist
[16:38:06] YankNYC: and we can werk it out
[16:39:49] StevenXL: has joined #RubyOnRails
[16:39:51] FCser: http://pastebin.com/dBc8jVfB is an example
[16:39:54] FCser: at the bottom
[16:40:12] StevenXL: Hi guys. I'm trying to get some help on testing out a modal.
[16:40:20] StevenXL: I was wondering if anyone here had experience doing that.
[16:40:34] FCser: the match "hey" / match "#{bot.nick}" / match /#{bot.nick}/ is what I've tried but bot.nick apparently is not defined in those scenarios
[16:40:37] StevenXL: What type of test would a modal be? I'm guessing a feature test?
[16:40:58] YankNYC: that's line 51
[16:41:15] FCser: when I try line 51 I get bot not defined
[16:41:17] FCser: will double check
[16:41:26] YankNYC: so it looks like you're trying to use a regular expression with ruby's interpolation
[16:42:22] FCser: apparently that is the correct syntax - it can be done without regex too - bot.nick is still undefined outsine the methods
[16:42:31] FCser: like bot.nick returns correct value inside foobar
[16:42:51] FailBit: YankNYC: regexp with interpolation is valid
[16:43:08] YankNYC: you're out of scope
[16:43:16] FailBit: and yes, wrong scope
[16:43:16] FCser: If I uncomment that line - I get megahal.rb:54:in `<class:HAL>': undefined local variable or method `bot' for HAL:Class (NameError)
[16:43:31] YankNYC: you're using a local variable bot when it should be the instance variable version :P
[16:43:32] FCser: yes scope somethnig I'm misunderstanding
[16:43:33] ibouvousaime: has joined #RubyOnRails
[16:43:37] FailBit: if cinch supports lambda syntax for that you need to use that
[16:43:44] YankNYC: @bot not bot
[16:43:52] FailBit: if it dosen't I think it has a chokepoint for all messages
[16:43:57] FCser: I was trying that too with no luck - will try @bot again
[16:44:20] FailBit: I suspect that's not gonna work either
[16:44:30] FCser: so still weird scope issue
[16:44:30] FCser: megahal.rb:54:in `<class:HAL>': undefined method `nick' for nil:NilClass (NoMethodError)
[16:44:31] FailBit: match runs in class scope
[16:44:33] FailBit: not in instance scope
[16:44:34] FCser: correct FailBit
[16:44:52] YankNYC: you already have @botnick
[16:44:54] FCser: so lamda is the way..
[16:44:57] FCser: Yes that was my testing
[16:45:04] FCser: that @botnick is emtpy though for some reason
[16:46:19] sucks: has joined #RubyOnRails
[16:46:42] YankNYC: it's empty because you're not passing it a string. it's expecting a bot opbject and a message of nick
[16:46:48] YankNYC: which returns nil
[16:47:09] YankNYC: depending on if that variable exists
[16:47:18] YankNYC: @var and var are not the same thing in Ruby
[16:47:31] YankNYC: this is not so much a rails problem as a Ruby problem too
[16:47:42] YankNYC: we can move this convo to #Ruby and i'm happy to help
[16:47:47] FCser: I should have asked in ruby - just always idle here
[16:47:53] FCser: ok this is getting me in the right direction though
[16:50:32] agit0: has joined #RubyOnRails
[17:02:49] pyemkey: has joined #RubyOnRails
[17:04:01] srinidhi1: has joined #RubyOnRails
[17:04:39] rgrmatt_: has joined #RubyOnRails
[17:06:04] WizJin: has joined #RubyOnRails
[17:06:59] robinjam: has joined #RubyOnRails
[17:09:39] Moeh: has joined #RubyOnRails
[17:10:53] Moeh: Is there a straightforward way to generate a form lists all of the model properties and it's associations. So say I pass @user to a form partial and I don't know which attributes of user are new / edited and I want to save every and in addition also save @user.comments.
[17:12:15] ePascoal: has joined #RubyOnRails
[17:12:55] thejamespinto: has joined #RubyOnRails
[17:13:16] ePascoal: Hi guys, im learning ruby on rails... I made a mistake generating a model using rails g model ..
[17:13:34] ePascoal: how can i re generate again?
[17:13:35] YankNYC: ePascoal you can destroy a model too
[17:13:43] YankNYC: rails g destroy Model
[17:14:43] ePascoal: oh i have to destroy it and generate again, i was thinking that maybe there was a -f force command to replace the existing one
[17:14:45] YankNYC: rails destroy Model
[17:16:07] YankNYC: for help with destroy 'rails destroy -h' or to see flags you can pass to generate 'rails g -h' or 'rails generate --help'
[17:18:08] jmimi: has joined #RubyOnRails
[17:18:41] ePascoal: YankNYC: thanks ;)
[17:23:43] agit0: has joined #RubyOnRails
[17:25:11] pyemkey: has joined #RubyOnRails
[17:25:36] agit0: has joined #RubyOnRails
[17:27:22] StevenXL: has joined #RubyOnRails
[17:27:55] thebastl: has joined #RubyOnRails
[17:29:42] pyemkey: Hello :) I've spent couple hours to try figure out how to interact with checkboxes in capybara. I gave up :) Nothing works for me. I prepared gist https://gist.github.com/pyemkey/a69c7fc153685e028de3 with html and scenario where I put couple example I've tried. Any hints?. I have to add that checkbox has css display: none. I don't use standard checkbox controls.
[17:29:43] chouhoulis: has joined #RubyOnRails
[17:31:41] edwinvdgraaf: has joined #RubyOnRails
[17:33:13] Cervajz_: has joined #RubyOnRails
[17:33:29] nocd: has left #RubyOnRails: ()
[17:36:00] rhizome: pyemkey: seems self-explanatory
[17:36:21] pyemkey: you mean diplay: none?
[17:36:49] tvw: has joined #RubyOnRails
[17:43:00] Bearie: has joined #RubyOnRails
[17:49:27] Yomero2: has joined #RubyOnRails
[17:50:53] ace05_: has joined #RubyOnRails
[17:50:57] smathy: has joined #RubyOnRails
[17:52:42] rgrmatt: has joined #RubyOnRails
[17:53:09] Cache_Money: has joined #RubyOnRails
[17:53:46] jbrhbr: has joined #RubyOnRails
[17:56:01] ace05: has joined #RubyOnRails
[18:01:23] rhizome: you're trying to check a hidden checkbox.
[18:01:34] rhizome: it's saying it doesn't want to do that
[18:02:56] rickmasta: has joined #RubyOnRails
[18:07:04] thejamespinto: has joined #RubyOnRails
[18:07:16] kapowaz_: has joined #RubyOnRails
[18:07:57] nickenchuggets: has joined #RubyOnRails
[18:07:58] nickenchuggets: has joined #RubyOnRails
[18:07:59] pyemkey_: has joined #RubyOnRails
[18:08:16] pawnbox_: has joined #RubyOnRails
[18:08:19] jmrepetti: has joined #RubyOnRails
[18:08:37] edwinvdg_: has joined #RubyOnRails
[18:08:56] c355E3B_: has joined #RubyOnRails
[18:08:59] shwoodard____: has joined #RubyOnRails
[18:09:01] uranther_: has joined #RubyOnRails
[18:09:08] Lloyd: has joined #RubyOnRails
[18:09:11] MiracleBlue_: has joined #RubyOnRails
[18:09:12] jxf: has joined #RubyOnRails
[18:09:14] moloch: has joined #RubyOnRails
[18:09:19] contradictioned: has joined #RubyOnRails
[18:09:22] tejasmanohar_: has joined #RubyOnRails
[18:09:22] yaewa: has joined #RubyOnRails
[18:09:28] danlucraft_: has joined #RubyOnRails
[18:09:29] Somnius_: has joined #RubyOnRails
[18:09:32] CornishPasty_: has joined #RubyOnRails
[18:09:34] iamdevnul__: has joined #RubyOnRails
[18:09:41] zemmihates_: has joined #RubyOnRails
[18:09:50] jbrhbr1: has joined #RubyOnRails
[18:09:51] czetter_: has joined #RubyOnRails
[18:09:58] kmckelvin: has joined #RubyOnRails
[18:10:12] Bloomer_: has joined #RubyOnRails
[18:10:18] zrl: has joined #RubyOnRails
[18:10:28] Obi_obi_: has joined #RubyOnRails
[18:10:30] newton2: has joined #RubyOnRails
[18:10:53] machty_: has joined #RubyOnRails
[18:11:13] PlasmaStar: has joined #RubyOnRails
[18:11:20] camilasan: has joined #RubyOnRails
[18:11:29] benlakey_: has joined #RubyOnRails
[18:12:36] chandlerbing: has joined #RubyOnRails
[18:12:39] StaticVo1d: has joined #RubyOnRails
[18:12:51] Yomero3: has joined #RubyOnRails
[18:12:52] kadoppe_: has joined #RubyOnRails
[18:12:56] nyanz: has joined #RubyOnRails
[18:13:02] hackeron_: has joined #RubyOnRails
[18:13:58] silverdust: has joined #RubyOnRails
[18:14:20] gremly: has joined #RubyOnRails
[18:14:24] atomical: has joined #RubyOnRails
[18:14:50] BLuEGoD: has joined #RubyOnRails
[18:17:20] braincrash: has joined #RubyOnRails
[18:17:31] juddey: has joined #RubyOnRails
[18:17:46] shock_one: has joined #RubyOnRails
[18:18:26] tomaw_: has joined #RubyOnRails
[18:18:29] bronson: has joined #RubyOnRails
[18:20:12] agoldboi: has left #RubyOnRails: ()
[18:20:20] Cervajz__: has joined #RubyOnRails
[18:20:29] waldi_: has joined #RubyOnRails
[18:20:32] silverdust: has joined #RubyOnRails
[18:20:38] marienz_: has joined #RubyOnRails
[18:20:38] Sylario: has joined #RubyOnRails
[18:20:41] doge__: has joined #RubyOnRails
[18:21:34] WizJin: has joined #RubyOnRails
[18:21:40] danneu: has joined #RubyOnRails
[18:21:46] Denarii: has joined #RubyOnRails
[18:21:51] trbox____: has joined #RubyOnRails
[18:22:01] kuroro: has joined #RubyOnRails
[18:24:11] srinidhi: has joined #RubyOnRails
[18:24:18] Superman_: has joined #RubyOnRails
[18:24:31] Fridtjof: has joined #RubyOnRails
[18:25:14] boxofrox: has joined #RubyOnRails
[18:25:20] _Tariq: has joined #RubyOnRails
[18:26:19] eduardodeoh: has joined #RubyOnRails
[18:26:31] darkxploit: has joined #RubyOnRails
[18:26:45] djbkd: has joined #RubyOnRails
[18:26:52] n008f4g_: has joined #RubyOnRails
[18:27:01] jmimi: has joined #RubyOnRails
[18:27:02] silverdu1t: has joined #RubyOnRails
[18:27:52] maesitos: has joined #RubyOnRails
[18:28:06] ewnd9: has joined #RubyOnRails
[18:28:13] bmalum: has joined #RubyOnRails
[18:30:27] chouhoulis: has joined #RubyOnRails
[18:31:19] bauruine: has joined #RubyOnRails
[18:33:13] rgrmatt: has joined #RubyOnRails
[18:34:13] maesitos: has joined #RubyOnRails
[18:35:34] sonofdirt: has joined #RubyOnRails
[18:36:16] yardenbar: has joined #RubyOnRails
[18:37:14] pyemkey: has joined #RubyOnRails
[18:39:52] chouhoulis: has joined #RubyOnRails
[18:41:25] baweaver: has joined #RubyOnRails
[18:42:27] kiez0rd: has joined #RubyOnRails
[18:46:21] dandaman: has joined #RubyOnRails
[18:46:26] StevenXL: has joined #RubyOnRails
[18:47:04] sarink: has joined #RubyOnRails
[18:47:52] dandaman: so i have my front end being produced by a gulp command so my js file ends up being like app-<randomnumber>.js I want my router to be able to route properly to them; how do i do this? I want something like "get 'js/:app', :to => redirect('/angularapp/js/'+params[:app])" but that is obviously the wrong syntax
[18:48:28] ruid: has joined #RubyOnRails
[18:48:28] ruid: has joined #RubyOnRails
[18:49:39] dandaman: nvm got it with %{variablename}
[18:49:47] pawnbox: has joined #RubyOnRails
[18:50:07] joshsmith: has joined #RubyOnRails
[18:50:46] lxsameer: has joined #RubyOnRails
[18:50:47] lxsameer: has joined #RubyOnRails
[18:56:56] gremax: has joined #RubyOnRails
[18:58:33] _Tariq: has joined #RubyOnRails
[18:58:40] FooMunki: has joined #RubyOnRails
[18:59:51] tildes: has joined #RubyOnRails
[19:00:42] _Tariq: has joined #RubyOnRails
[19:01:01] thejamespinto: has joined #RubyOnRails
[19:05:06] stannard: has joined #RubyOnRails
[19:05:53] doodlehaus: has joined #RubyOnRails
[19:06:56] thejamespinto: has joined #RubyOnRails
[19:07:22] rubyonrailed: has joined #RubyOnRails
[19:09:56] kegan_: has joined #RubyOnRails
[19:10:36] andrew9184: has joined #RubyOnRails
[19:12:54] yardenbar: has joined #RubyOnRails
[19:13:56] fcser_: has joined #RubyOnRails
[19:15:29] pyemkey: has joined #RubyOnRails
[19:15:59] jessemcgilallen: has joined #RubyOnRails
[19:16:45] chouhoulis: has joined #RubyOnRails
[19:21:03] alethea: has joined #RubyOnRails
[19:22:33] ace05: has joined #RubyOnRails
[19:24:03] cjk101010: has joined #RubyOnRails
[19:24:08] soahccc: has joined #RubyOnRails
[19:24:24] drPoggs: has joined #RubyOnRails
[19:24:58] vedu: has joined #RubyOnRails
[19:28:18] dandaman: has joined #RubyOnRails
[19:29:56] _Tariq: has joined #RubyOnRails
[19:32:21] NBarnes: has joined #RubyOnRails
[19:33:06] owenjones: has joined #RubyOnRails
[19:35:56] existensil: has joined #RubyOnRails
[19:35:56] tomaw: has joined #RubyOnRails
[19:35:56] jtperreault: has joined #RubyOnRails
[19:35:56] melonstorm: has joined #RubyOnRails
[19:35:56] ciree: has joined #RubyOnRails
[19:35:56] maxx88: has joined #RubyOnRails
[19:35:56] sparr: has joined #RubyOnRails
[19:35:56] monoprotic: has joined #RubyOnRails
[19:35:56] funnel: has joined #RubyOnRails
[19:35:56] mhenrixon_: has joined #RubyOnRails
[19:35:56] digneety: has joined #RubyOnRails
[19:35:56] w0bni: has joined #RubyOnRails
[19:35:56] ereslibre: has joined #RubyOnRails
[19:35:56] Ray`: has joined #RubyOnRails
[19:35:56] MissionCritical: has joined #RubyOnRails
[19:35:57] philtr: has joined #RubyOnRails
[19:35:57] scrooloose: has joined #RubyOnRails
[19:35:57] segy: has joined #RubyOnRails
[19:35:57] capin: has joined #RubyOnRails
[19:35:57] BaNzounet: has joined #RubyOnRails
[19:35:57] aujt74: has joined #RubyOnRails
[19:35:57] DylanJ: has joined #RubyOnRails
[19:35:57] slash_nick: has joined #RubyOnRails
[19:35:57] sung: has joined #RubyOnRails
[19:35:57] confact: has joined #RubyOnRails
[19:35:57] insu_: has joined #RubyOnRails
[19:35:57] n88_: has joined #RubyOnRails
[19:35:57] OmegaA_: has joined #RubyOnRails
[19:35:57] joeytwiddle: has joined #RubyOnRails
[19:35:57] kiki_lamb: has joined #RubyOnRails
[19:35:57] mduca_: has joined #RubyOnRails
[19:35:57] raidiant_: has joined #RubyOnRails
[19:35:57] sunya7a_: has joined #RubyOnRails
[19:35:57] phon: has joined #RubyOnRails
[19:35:57] Mchl: has joined #RubyOnRails
[19:35:57] DefV_: has joined #RubyOnRails
[19:35:57] uxp: has joined #RubyOnRails
[19:35:57] \13k_: has joined #RubyOnRails
[19:35:57] veloutin: has joined #RubyOnRails
[19:35:57] dualbus: has joined #RubyOnRails
[19:35:57] Bugson_: has joined #RubyOnRails
[19:35:58] rarruda: has joined #RubyOnRails
[19:35:58] ekem: has joined #RubyOnRails
[19:35:58] Radar: has joined #RubyOnRails
[19:35:58] Depili: has joined #RubyOnRails
[19:35:58] xybre: has joined #RubyOnRails
[19:35:58] ja: has joined #RubyOnRails
[19:35:58] noodle: has joined #RubyOnRails
[19:35:58] CheckYourSix: has joined #RubyOnRails
[19:35:58] queequeg1: has joined #RubyOnRails
[19:35:58] Helheim: has joined #RubyOnRails
[19:35:58] braidn: has joined #RubyOnRails
[19:35:58] 18VAADMSM: has joined #RubyOnRails
[19:35:58] ngr: has joined #RubyOnRails
[19:35:58] rclements: has joined #RubyOnRails
[19:35:58] wkoszek: has joined #RubyOnRails
[19:35:58] boshhead: has joined #RubyOnRails
[19:35:58] dlitz: has joined #RubyOnRails
[19:35:58] oddalot: has joined #RubyOnRails
[19:35:58] kramsee: has joined #RubyOnRails
[19:35:58] PaulePanter: has joined #RubyOnRails
[19:35:58] alol: has joined #RubyOnRails
[19:35:58] Gabriel403: has joined #RubyOnRails
[19:35:58] weltzooo: has joined #RubyOnRails
[19:35:58] mosez: has joined #RubyOnRails
[19:35:58] thorgi: has joined #RubyOnRails
[19:35:58] Mession: has joined #RubyOnRails
[19:35:58] suffice: has joined #RubyOnRails
[19:35:59] coffeejunk: has joined #RubyOnRails
[19:35:59] wenchenx_: has joined #RubyOnRails
[19:35:59] vigasdeep: has joined #RubyOnRails
[19:35:59] hightower4: has joined #RubyOnRails
[19:35:59] Skelz0r: has joined #RubyOnRails
[19:35:59] six: has joined #RubyOnRails
[19:35:59] fluchtreflex: has joined #RubyOnRails
[19:36:04] tildes: has joined #RubyOnRails
[19:36:30] doodleha_: has joined #RubyOnRails
[19:36:56] Quintasan: has joined #RubyOnRails
[19:36:56] Quintasan: has joined #RubyOnRails
[19:37:21] AntiSpamMeta: has joined #RubyOnRails
[19:37:22] symbol: has joined #RubyOnRails
[19:37:23] aclearman037: has joined #RubyOnRails
[19:37:23] FailBit: jesus freenode why
[19:37:23] moeabdol: has joined #RubyOnRails
[19:37:25] phrozen77: has joined #RubyOnRails
[19:37:32] Helheim: has joined #RubyOnRails
[19:38:51] joaomdmoura__: has joined #RubyOnRails
[19:39:05] TheMonster: has joined #RubyOnRails
[19:39:09] dandaman: has joined #RubyOnRails
[19:39:39] Haydos: has joined #RubyOnRails
[19:39:52] sami: has joined #RubyOnRails
[19:39:59] ajb: has joined #RubyOnRails
[19:40:14] Xentil: has joined #RubyOnRails
[19:40:33] RTG`: has joined #RubyOnRails
[19:40:35] ebertx: has joined #RubyOnRails
[19:41:08] rhizome: is there a thing happening
[19:41:58] Hans267: has joined #RubyOnRails
[19:42:49] _Tariq: has joined #RubyOnRails
[19:43:24] gbailey: has joined #RubyOnRails
[19:43:41] dandaman: has joined #RubyOnRails
[19:46:01] dandaman: has joined #RubyOnRails
[19:46:45] pontiki: there's always a thing happening
[19:47:09] DavidDudson: has joined #RubyOnRails
[19:47:30] MissionCritical: has joined #RubyOnRails
[19:48:49] pyemkey: has joined #RubyOnRails
[19:49:08] sonofdirt: has joined #RubyOnRails
[19:49:15] ap4y: has joined #RubyOnRails
[19:50:39] atomical: has joined #RubyOnRails
[19:51:10] silverdu1t: has left #RubyOnRails: ()
[19:51:51] silverdust: has joined #RubyOnRails
[19:52:06] sucks: has joined #RubyOnRails
[19:52:47] _Tariq: has joined #RubyOnRails
[19:53:48] ben_vulpes: has joined #RubyOnRails
[19:54:09] rubyonrailed: has joined #RubyOnRails
[19:55:06] ben_vulpes: is it a common thing to have scripts/{console,rails} in rails projects? i don't rails that much, found that rinari was looking for a rails entrypoint in RAILS_ROOT/scripts/rails and wanted to get a sanity-check
[19:55:11] drptbl: has joined #RubyOnRails
[19:55:33] rhizome: ben_vulpes: that's a rails 2 thing
[19:55:59] dandaman: has joined #RubyOnRails
[19:56:56] rubyonra_: has joined #RubyOnRails
[19:57:09] rhizome: rails 3 still had script/rails unless i didnt' remove it at some point
[19:57:20] rhizome: just lookin at my own stuff here
[19:58:15] ben_vulpes: rinari mentions poor compatibility with rails 3, i wonder if it ever caught up to rails 4
[19:58:36] ben_vulpes: welp, any suggestions on emacsing-up for rails projects?
[19:59:39] ben_vulpes: ACTION notes the 2013 dates on these github issues for the first time, facepalms
[20:00:54] ornerymoose: has joined #RubyOnRails
[20:02:21] rhizome: eh, whaddyagonnado
[20:05:35] ben_vulpes: anyone in here diddle the rails with emacs? care to share your preferred packages?
[20:05:43] bigbob: has joined #RubyOnRails
[20:06:19] dandaman: has joined #RubyOnRails
[20:06:30] n00bDev: has joined #RubyOnRails
[20:07:44] pyemkey: has joined #RubyOnRails
[20:08:02] yardenbar: has joined #RubyOnRails
[20:08:25] pontiki: ben_vulpes: just ruby-mode and ruby-tools
[20:08:37] kitsuneyo: has joined #RubyOnRails
[20:10:12] dandaman: has joined #RubyOnRails
[20:11:49] pontiki: ben_vulpes: i do use yasnippets a lot, guess that counts. also hide-show.
[20:12:14] owenjones: has joined #RubyOnRails
[20:14:13] smathy: has joined #RubyOnRails
[20:14:34] doodlehaus: has joined #RubyOnRails
[20:14:42] ben_vulpes: pontiki: do you run the rails server from within emacs?
[20:15:25] Scripore: has joined #RubyOnRails
[20:15:32] pontiki: ben_vulpes: no; 90% of my rails work is using vagrant; i just have a term open on the side
[20:15:33] djbkd: has joined #RubyOnRails
[20:16:20] pontiki: i *could* have a term in emacs, i've just never liked working with shell windows in emacs
[20:16:31] ben_vulpes: no, i don't either.
[20:17:10] ben_vulpes: okay well i can run the server from a compile-mode buffer, that's nifty.
[20:18:10] pyemkey: has joined #RubyOnRails
[20:18:19] pontiki: i've tried running an async shell command, but even that get's old over vagrant
[20:19:16] ben_vulpes: well i have this particular hairball running on my mac, so i'll see how far i can push the 'lisp machine' envelope with it.
[20:19:38] pontiki: sure, love to hear what you find
[20:19:38] sonofdirt: has joined #RubyOnRails
[20:19:58] Cache_Money: Can I access a method with my ApplicationController within a rake task?
[20:20:32] pontiki: probably, but there's also probably a better way to do it, Cache_Money
[20:20:46] Cache_Money: pontiki: what would you recommend?
[20:21:00] reaVer: has joined #RubyOnRails
[20:21:11] bronson: has joined #RubyOnRails
[20:21:13] pontiki: turn whatever method you want to use into a service object, then you can call it from anywhere
[20:21:22] ruid: has joined #RubyOnRails
[20:21:49] Cache_Money: i've never used a service object before.. i'll do some research
[20:24:22] Graphettion: has joined #RubyOnRails
[20:27:53] chouhoulis: has joined #RubyOnRails
[20:29:19] StevenXL: has joined #RubyOnRails
[20:31:03] StevenXL: has left #RubyOnRails: ()
[20:32:32] ben_vulpes: ACTION rips out rinari with prejudice
[20:33:07] ben_vulpes: i should probably sit down and actually write out what i want from a rails integration, it'd make this process a lot easier.
[20:33:39] rgrmatt: has joined #RubyOnRails
[20:34:53] dandaman: has joined #RubyOnRails
[20:36:44] pyemkey: has joined #RubyOnRails
[20:39:48] dandaman: has joined #RubyOnRails
[20:39:55] doodlehaus: has joined #RubyOnRails
[20:40:42] nfk|laptop: has joined #RubyOnRails
[20:41:54] ben_vulpes: http://rubyforge.org/ << is this normal?
[20:43:24] FailBit: no I don't think so
[20:43:27] fox_mulder_cp: Cache_Money: hm. you write you cash control app too?:)
[20:43:57] jessemcgilallen: has joined #RubyOnRails
[20:44:07] sadaf2605: has joined #RubyOnRails
[20:45:31] pontiki: i think rubyforge is dead
[20:47:07] Scripore: has joined #RubyOnRails
[20:47:26] graphettion_: has joined #RubyOnRails
[20:47:50] AntiSpamMeta: has joined #RubyOnRails
[20:48:49] atumzin: has joined #RubyOnRails
[20:48:49] atumzin: has joined #RubyOnRails
[20:49:06] shock_one: has joined #RubyOnRails
[20:49:30] pyemkey: has joined #RubyOnRails
[20:50:34] otherj: has joined #RubyOnRails
[20:51:01] herenow: has joined #RubyOnRails
[20:58:19] atumzin: has joined #RubyOnRails
[20:58:20] atumzin: has joined #RubyOnRails
[20:59:57] hxegon: has joined #RubyOnRails
[21:02:38] ruid: has joined #RubyOnRails
[21:02:38] ruid: has joined #RubyOnRails
[21:02:42] rgrmatt: has joined #RubyOnRails
[21:03:00] meoblast001: has joined #RubyOnRails
[21:04:29] atomical: has joined #RubyOnRails
[21:05:16] pyemkey: has joined #RubyOnRails
[21:06:08] Moeh: has joined #RubyOnRails
[21:06:41] rgrmatt: has joined #RubyOnRails
[21:06:44] Moeh: Is there a way to have rails objects that can be passed between controller actions without writing them to the db?
[21:07:25] rhizome: you probably don't really want to do that
[21:07:36] FailBit: ^what rhizome said
[21:07:44] fox_mulder_cp: Moeh: you may use non-ActionRecord way without db
[21:08:03] fox_mulder_cp: but you must really know, what and why you need it
[21:09:44] k1io: has joined #RubyOnRails
[21:09:55] Sirecote: has joined #RubyOnRails
[21:10:00] alexblom: has joined #RubyOnRails
[21:10:02] maxmanders: has joined #RubyOnRails
[21:10:04] blowmage: has joined #RubyOnRails
[21:10:33] Moeh: Well, my flows currently looks like this: It starts with users#new, where I create a new instance of the user model. Then, I would like to invoke a "sync_model" action a couple of times to execute the sync gem. When the model is ready to be saved, I will call create. In order to get the unsaved model to the "sync_model" function I currently use a form with post, however it would be nicer if the object could persist without saving it
[21:11:24] Moeh: In the best case I would create the object in users#new, pass it back and forth to "sync_model" and save it when it is ready.
[21:11:28] fox_mulder_cp: why you need some abstraction, such as sync_model and create..
[21:11:46] jgt1: has joined #RubyOnRails
[21:12:03] FailBit: you can pass the object using memcached and a parameter if it's a complex object, or just using parameters if it's a simple object
[21:12:25] Moeh: In order to sychronize the views using the sync gem (https://github.com/chrismccord/sync), I need to execute a controller action.
[21:12:35] Moeh: At least that is what I assume
[21:12:36] clamstar: has joined #RubyOnRails
[21:12:52] pulgalipe: has joined #RubyOnRails
[21:13:12] FailBit: SecureRandom.uuid
[21:13:36] Moeh: FailBit: The thing is, the model has associations and I would like to pass the associations as well.
[21:14:00] FailBit: presumably they cannot be constructed in the second action?
[21:14:59] Moeh: No, because the user should be able to edit them in users#new
[21:15:45] FailBit: then you will have to create a temporary store for the object if it absolutely cannot be written to the database
[21:16:00] FailBit: writing incomplete objects to a cache store is a really bad hack
[21:16:03] rhizome: just do your stuff in #create
[21:16:19] FailBit: it works, but writing to the database is so much better
[21:17:07] sonofdirt: has joined #RubyOnRails
[21:17:47] Moeh: FailBit: Well of course it could, but I would like the user to be able to click "Save" and "Cancel". If the clicks "Cancel", nothing should be there (naturally). Therefore, if I write it to the db before and the user just closes the tab, it would persist. Therefore a solution where it would only be created in the DB if the user clicks "Save" would be optimal.
[21:18:23] Moeh: Maybe I'm a little dumb and don't see the obvious solution to this problem, but somehow I don't really see a good way to solve this.
[21:18:35] atomical: has joined #RubyOnRails
[21:19:22] dandaman: has joined #RubyOnRails
[21:19:28] blowmage: has joined #RubyOnRails
[21:19:57] rgrmatt: has joined #RubyOnRails
[21:20:00] Moeh: So basically it should work like the standard rails flow, e.g. "users#new" -> "users#create" except that in between I need to execute "users#sync_model"
[21:21:47] rhizome: what is the sync? you're not using the same thing in #create that you built in #new
[21:24:46] Moeh: Well, yes, my current hacky solution to "pass" the object is: 1. I create the object in #new, pass it to the view. In the view, I have a form where I edit attributes, then I call #sync_model using form_for and post. 2. Inside sync_model, I create a new user instance and fill it with the attributes. 3. From the sync_model action I pass this object to the view. 4. Inside of the view, I iterate over all the attributes and create a form
[21:24:47] rgrmatt: has joined #RubyOnRails
[21:24:56] Moeh: I must admit it feels quite dirty when I write it down like this :)
[21:26:04] dopie: has joined #RubyOnRails
[21:26:08] sarink: has joined #RubyOnRails
[21:26:37] Cervajz: has joined #RubyOnRails
[21:26:46] rgrmatt: has joined #RubyOnRails
[21:27:03] pulgalipe: has joined #RubyOnRails
[21:27:35] Cervajz_: has joined #RubyOnRails
[21:27:42] Moeh: But it brought me another idea: I could actually save the object to the db and then on "Cancel" I would destroy it and on "Save" I would edit a field called "real" and change it from false to true. I would need to regularly delete all objects where real = false and it would unnecessarily increase my IDs.
[21:27:52] Hans267: Moeh: Sounds like you???re trying to do a form wizard, am i understanding that right? If so, check this out https://github.com/schneems/wicked
[21:28:17] arBmind: has joined #RubyOnRails
[21:28:33] aurails: has joined #RubyOnRails
[21:29:09] _Tariq: has joined #RubyOnRails
[21:29:46] smathy: has joined #RubyOnRails
[21:30:52] blowmage: has joined #RubyOnRails
[21:31:04] aurails: Someone has experienced Rails with AngularJS ?
[21:31:20] havenwood: aurails: #=> true
[21:31:58] aurails: Have you enjoyed it ? :)
[21:32:51] atomical: has joined #RubyOnRails
[21:34:32] rgrmatt: has joined #RubyOnRails
[21:34:35] FailBit: >JS >enjoyed
[21:34:41] aurails: has joined #RubyOnRails
[21:34:56] FailBit: it would be sin to combine those two words in a sentence other than to express lack
[21:34:59] havenwood: aurails: Yeah, it seemed nice in the little experience I've had (less in both than many others here).
[21:37:03] aurails: I wonder if it's worth to use both
[21:37:56] havenwood: aurails: I suppose don't use Angular until it salves a pain you're having.
[21:38:27] chouhoulis: has joined #RubyOnRails
[21:38:57] ben_vulpes: if y'r gonna build a webapp with js, may as well make it a single page js app from the get-go...
[21:39:05] FailBit: https://www.youtube.com/watch?v=4Diu2N8TGKA everyone's favorite authorization gem
[21:39:37] sonofdirt: has joined #RubyOnRails
[21:40:28] stannard: has joined #RubyOnRails
[21:40:38] Moeh: Hans267: Thanks, it looks like they use the session to store incomplete objects (https://github.com/schneems/wicked/wiki/Building-objects-without-saving-to-the-database) That would of course also be a possibility for me.
[21:41:03] doodlehaus: has joined #RubyOnRails
[21:41:04] pulgalipe: has joined #RubyOnRails
[21:42:00] FailBit: if your objects are small
[21:42:08] FailBit: if they are big you'll run out of room in your session and get errors
[21:42:40] aurails: has joined #RubyOnRails
[21:43:36] workmad3: has joined #RubyOnRails
[21:44:29] rubyonrailed: has joined #RubyOnRails
[21:47:53] rgrmatt: has joined #RubyOnRails
[21:48:57] rgrmatt: has joined #RubyOnRails
[21:50:47] aurails: has joined #RubyOnRails
[21:51:07] kitsuneyo: has joined #RubyOnRails
[21:51:09] roshanavand: has joined #RubyOnRails
[21:51:57] qejk: has joined #RubyOnRails
[21:52:02] yfeldblum: has joined #RubyOnRails
[21:52:43] aurails: I think angular is best for realtime
[21:53:07] aurails: for feed for example
[21:53:34] Quintasan: has joined #RubyOnRails
[21:53:34] Quintasan: has joined #RubyOnRails
[21:53:59] nickenchuggets: has joined #RubyOnRails
[21:53:59] nickenchuggets: has joined #RubyOnRails
[21:56:40] FailBit: feed is kind of tricky because you have to be sure you have enough appservers to deal with it
[21:57:04] FailBit: or do something special with nginx, or something
[21:58:55] marienz: has joined #RubyOnRails
[22:00:26] Moeh: FailBit: I should be able to work around this with: https://github.com/rails/activerecord-session_store
[22:00:29] rodfersou: has joined #RubyOnRails
[22:01:33] FailBit: that still incurs a write to DB
[22:01:37] FailBit: just to a different table
[22:02:03] kitsuneyo: has joined #RubyOnRails
[22:02:34] htmldrum: has joined #RubyOnRails
[22:02:35] waka: has joined #RubyOnRails
[22:03:37] maesitos: has joined #RubyOnRails
[22:03:46] Moeh: But the main difference is that it won't leave incomplete objects in the main users table, I guess?
[22:05:27] roshanavand: has joined #RubyOnRails
[22:05:40] Shidash: has joined #RubyOnRails
[22:05:44] hardtail: has joined #RubyOnRails
[22:06:08] NBarnes: has joined #RubyOnRails
[22:10:27] pyemkey: has joined #RubyOnRails
[22:15:29] ben_vulpes: pontiki: robe for code navigation/completion, rails in shell for jump-to-file stuff (i use helm-find-files, which inspects thing-under-mark for filename-likeness and populates the minibuffer with that string for rapid jumping to files)
[22:15:39] ben_vulpes: robe is p. dope, jumping into libraries
[22:16:07] ben_vulpes: found the 'at' method in sidekiq workers in about 1 minute, which my employee couldn't find for all the google in the world last week.
[22:16:14] ben_vulpes: OK THIS WILL WORK
[22:16:24] ben_vulpes: oh yeah and tests via compile
[22:16:42] rgrmatt: has joined #RubyOnRails
[22:17:18] bklane: has joined #RubyOnRails
[22:19:15] shibabu: has joined #RubyOnRails
[22:19:44] Rodya_: has joined #RubyOnRails
[22:20:34] hardtail: has joined #RubyOnRails
[22:22:53] AliasLStoRM: has joined #RubyOnRails
[22:24:27] Ikri: has joined #RubyOnRails
[22:25:42] kitsuneyo: has joined #RubyOnRails
[22:25:48] bronson: has joined #RubyOnRails
[22:26:58] sarink: has joined #RubyOnRails
[22:29:00] User458764: has joined #RubyOnRails
[22:29:37] shock_one: has joined #RubyOnRails
[22:32:09] tenderlove: has joined #RubyOnRails
[22:32:14] wildlander: has joined #RubyOnRails
[22:35:10] bklane: has joined #RubyOnRails
[22:40:26] jmrepetti: has joined #RubyOnRails
[22:42:16] Moeh: Is there a way to serialize an object with associations to json / hash? Say I would not only to serizalize "user" but also automatically its associations, e.g. "user.comments".
[22:43:35] jmrepetti: has joined #RubyOnRails
[22:43:44] doodlehaus: has joined #RubyOnRails
[22:43:49] rickmasta: has joined #RubyOnRails
[22:44:59] Cohedrin: has joined #RubyOnRails
[22:45:46] mdhopkins: has joined #RubyOnRails
[22:47:07] raldu: has joined #RubyOnRails
[22:47:17] bklane: has joined #RubyOnRails
[22:47:57] steffkes: has joined #RubyOnRails
[22:47:57] steffkes: has joined #RubyOnRails
[22:49:30] markh: has joined #RubyOnRails
[22:50:38] Scripore: has joined #RubyOnRails
[22:53:36] quazimodo: has joined #RubyOnRails
[22:53:56] rubyonrailed: has joined #RubyOnRails
[22:54:51] arooni: has joined #RubyOnRails
[22:56:06] bigbob: has joined #RubyOnRails
[22:57:23] Or1on: has joined #RubyOnRails
[22:57:24] Or1on: has joined #RubyOnRails
[22:57:25] Cohedrin: has joined #RubyOnRails
[22:57:34] Moeh: FailBit: You mean with this? https://github.com/rails-api/active_model_serializers
[22:57:34] tenderlove: has joined #RubyOnRails
[22:58:16] tenderlove: has joined #RubyOnRails
[22:59:20] juddey: has joined #RubyOnRails
[22:59:21] FailBit: I wasn't specifically referring to AMS
[22:59:22] StevenXL: has joined #RubyOnRails
[22:59:29] FailBit: that will probably more of a pain in the ass than it's worth
[22:59:43] monoprotic: has joined #RubyOnRails
[22:59:44] monoprotic: has joined #RubyOnRails
[22:59:51] Moeh: Okay, but how would I do it otherwise?
[23:01:52] FailBit: def as_json(*) super.merge(comments: self.comments.as_json); end
[23:02:11] bklane: has joined #RubyOnRails
[23:05:07] meoblast: has joined #RubyOnRails
[23:05:57] bklane_: has joined #RubyOnRails
[23:06:34] rubyonrailed: has joined #RubyOnRails
[23:07:19] rgrmatt: has joined #RubyOnRails
[23:08:03] crack__david: has joined #RubyOnRails
[23:09:32] Moeh: FailBit: Great, thanks, that works. Now last question for today: How would I recreate user and comments from the json? First level works with Usew.new(JSON.parse(json)) but for comments I get: ActiveRecord::AssociationTypeMismatch, Comment expected, got Hash
[23:09:46] pulgalipe: has joined #RubyOnRails
[23:10:12] FailBit: it would have to be configured as a nested attribute
[23:11:45] Moeh: In my user model I already have "accepts_nested_attributes_for :comments", plus of course the has_many / belongs_to relation. Anywhere else where it needs to be set?
[23:12:59] Darkman738: has joined #RubyOnRails
[23:14:04] jmimi: has joined #RubyOnRails
[23:20:51] jgt1: has joined #RubyOnRails
[23:20:53] sonofdirt: has joined #RubyOnRails
[23:21:08] StevenXL: has joined #RubyOnRails
[23:21:10] StevenXL: has joined #RubyOnRails
[23:23:11] bklane: has joined #RubyOnRails
[23:23:40] bronson: has joined #RubyOnRails
[23:25:26] siaW: has joined #RubyOnRails
[23:25:54] siaW: with the new RSpec syntax what will be the correct way of writing this please ???Movie.should_receive(:similar_directors).with('Star Wars???)???
[23:27:39] FailBit: allow(Movie).to receive(:similar_directors).with('Star Wars')
[23:28:36] sonofdirt: has joined #RubyOnRails
[23:29:47] FailBit: you need to fix your smart quotes
[23:30:17] rgrmatt: has joined #RubyOnRails
[23:30:32] bklane: has joined #RubyOnRails
[23:31:33] johnflux: has joined #RubyOnRails
[23:31:34] johnflux: has joined #RubyOnRails
[23:31:43] shock_one: has joined #RubyOnRails
[23:31:46] ja: siaw: In the menu bar: Edit ??? Subsitutions ??? Smart Quotes
[23:33:17] StevenXL: has joined #RubyOnRails
[23:33:17] StevenXL: has joined #RubyOnRails
[23:33:34] heyrhett: has joined #RubyOnRails
[23:34:37] heyrhett: hi, with a new project in rails 4, I'm trying to make a list of items with a boolean attribute represented by a checkbox. If I check the box, I want it to update the item, and hide it from the screen
[23:34:53] heyrhett: I'm using form_for :remote => true for each item
[23:35:02] rhizome: so a to-do list
[23:35:16] heyrhett: and :onchange => "this.form.submit();" for the checkbox
[23:35:48] heyrhett: and this in my update.js.erb $("product_#<%= @product.id-%>").hide();
[23:36:15] heyrhett: is there an easier way to do it?
[23:36:40] heyrhett: I'm yeah, kind of like a check list, rhizome
[23:37:05] rhizome: the style you're using is old, but that's pretty much what you have to do
[23:37:29] heyrhett: what's old about it?
[23:37:32] heyrhett: what's the new style?
[23:37:44] duncannz: has joined #RubyOnRails
[23:41:40] jessemcgilallen: has joined #RubyOnRails
[23:43:56] rhizome: unobtrusive js, which would involve moving the onchange out of the html
[23:44:38] pyemkey: has joined #RubyOnRails
[23:46:40] moei: has joined #RubyOnRails
[23:47:56] z-non: has joined #RubyOnRails
[23:49:27] bklane_: has joined #RubyOnRails
[23:50:42] djbkd: has joined #RubyOnRails
[23:52:27] StevenXL: has joined #RubyOnRails
[23:52:27] StevenXL: has joined #RubyOnRails
[23:56:31] siaW: can someone please fork and write this in new RSpec syntax for me? https://gist.github.com/siaw23/9788efd59f0773ba04c3 i???m trying to help someone else did everything except i can???t turn this to new RSpec syntax
[23:57:41] FailBit: that is a really stupid test
[23:57:58] FailBit: you're testing if ruby works instead of if the model logic is sound
[23:58:15] FailBit: but anyways https://gist.github.com/liamwhite/6b359f0744eb9818b39d
[23:58:21] n1lo: has joined #RubyOnRails