« Back to channel list

#RubyOnRails - 14 March 2016

« Back 1 day Forward 1 day »
[00:00:22] foli_: http://paste.ubuntu.com/15380437/ my issue
[00:02:06] qejk: has joined #RubyOnRails
[00:02:57] jenrzzz: has joined #RubyOnRails
[00:05:13] one_zero: has joined #RubyOnRails
[00:10:03] stannard: has joined #RubyOnRails
[00:11:15] delgiudices: has joined #RubyOnRails
[00:19:20] nettoweb: has joined #RubyOnRails
[00:28:24] sleungcy: has joined #RubyOnRails
[00:29:16] paradisaeidae_: has joined #RubyOnRails
[00:31:47] quazimodo: has joined #RubyOnRails
[00:31:49] quazimod1: has joined #RubyOnRails
[00:32:04] i8igmac: has joined #RubyOnRails
[00:35:55] jayp: has joined #RubyOnRails
[00:36:58] achamian: has joined #RubyOnRails
[00:38:02] dalbusch1t: has joined #RubyOnRails
[00:40:31] paradisaeidae_: has joined #RubyOnRails
[00:40:40] chipotle: has joined #RubyOnRails
[00:42:45] RegulationD: has joined #RubyOnRails
[00:43:35] delgiudices: has joined #RubyOnRails
[00:46:56] nettoweb: has joined #RubyOnRails
[00:47:05] SteenJobs: has joined #RubyOnRails
[00:54:43] war_pigs: has joined #RubyOnRails
[00:58:57] Devalo: has joined #RubyOnRails
[01:02:17] ascarter: has joined #RubyOnRails
[01:02:52] SteenJobs: has joined #RubyOnRails
[01:06:31] pawnbox: has joined #RubyOnRails
[01:07:17] ascarter_: has joined #RubyOnRails
[01:12:51] qejk: has joined #RubyOnRails
[01:13:28] norc_: has joined #RubyOnRails
[01:20:00] chipotle: has joined #RubyOnRails
[01:22:38] ascarter: has joined #RubyOnRails
[01:24:50] arBmind: has joined #RubyOnRails
[01:29:04] sleungcy: has joined #RubyOnRails
[01:31:31] baweaver: has joined #RubyOnRails
[01:34:08] blackmesa: has joined #RubyOnRails
[01:36:39] pawnbox: has joined #RubyOnRails
[01:41:28] udiudi: has joined #RubyOnRails
[01:42:46] hahuang65: has joined #RubyOnRails
[01:45:45] TinkerTyper: has joined #RubyOnRails
[01:48:02] aclearman037: has joined #RubyOnRails
[01:52:41] aclearma_: has joined #RubyOnRails
[01:54:16] marcdel: has joined #RubyOnRails
[01:58:52] nettoweb: has joined #RubyOnRails
[01:58:56] maulgoth: has joined #RubyOnRails
[01:59:27] uglybandersnatch: has joined #RubyOnRails
[02:00:50] marcdel: has joined #RubyOnRails
[02:02:58] jenrzzz: has joined #RubyOnRails
[02:07:00] rrrepsaj: has joined #RubyOnRails
[02:07:03] _bogus_: has joined #RubyOnRails
[02:10:05] SeanLazer: has joined #RubyOnRails
[02:10:39] eyeamaye: has joined #RubyOnRails
[02:12:29] ivanskie: has joined #RubyOnRails
[02:15:58] DmitryBochkarev: has joined #RubyOnRails
[02:16:22] nettoweb: has joined #RubyOnRails
[02:17:48] axilaris: has joined #RubyOnRails
[02:18:59] edwinvdgraaf: has joined #RubyOnRails
[02:19:32] uglybandersnatch: has joined #RubyOnRails
[02:19:48] smoitra: has joined #RubyOnRails
[02:21:50] gmas: has joined #RubyOnRails
[02:23:05] Rubie: has joined #RubyOnRails
[02:24:31] chagel: has joined #RubyOnRails
[02:28:09] stardiviner: has joined #RubyOnRails
[02:29:53] sleungcy: has joined #RubyOnRails
[02:30:17] flashpoint9: has joined #RubyOnRails
[02:31:04] SeanLazer: has joined #RubyOnRails
[02:34:04] chipotle: has joined #RubyOnRails
[02:35:09] blackmesa: has joined #RubyOnRails
[02:37:31] norc-2: has joined #RubyOnRails
[02:37:41] achamian: has joined #RubyOnRails
[02:39:12] moeabdol2: has joined #RubyOnRails
[02:47:21] aclearman037: has joined #RubyOnRails
[02:50:25] aclearman037: has joined #RubyOnRails
[02:52:35] aclearman037: has joined #RubyOnRails
[02:55:01] aclearman037: has joined #RubyOnRails
[02:56:45] aclearman037: has joined #RubyOnRails
[02:57:17] _bogus_: hi there.. can I have some help with this? https://gist.github.com/andreycwb/313060d2902da436db7e , there's two contexts to save the model, the normal (:create or :update) which allows_blank fields, and the :generate context, in which blank fields are not allowed.. this is working fine for the create method, but not for the update. I created a new function in the model just like update_attributes , but passing the validation context on sa
[02:57:17] _bogus_: ve, but its not working...
[02:58:30] jarinux1: has joined #RubyOnRails
[03:00:34] akshat: has joined #RubyOnRails
[03:01:18] Devalo: has joined #RubyOnRails
[03:05:03] quazimodo: has joined #RubyOnRails
[03:05:06] quazimod1: has joined #RubyOnRails
[03:07:13] e: has joined #RubyOnRails
[03:09:21] chagel: has joined #RubyOnRails
[03:19:13] Ropeney: has joined #RubyOnRails
[03:19:35] edwinvdgraaf: has joined #RubyOnRails
[03:19:56] enitiz: has joined #RubyOnRails
[03:20:38] Rubie: has joined #RubyOnRails
[03:24:00] chagel: has joined #RubyOnRails
[03:26:07] cabinB_: has joined #RubyOnRails
[03:27:08] lord4163: has joined #RubyOnRails
[03:27:36] diegoviola: has joined #RubyOnRails
[03:29:37] _djbkd: has joined #RubyOnRails
[03:30:34] sleungcy: has joined #RubyOnRails
[03:31:20] clorisu: anybody know whats going on here? http://pastie.org/10758870
[03:33:58] User458764: has joined #RubyOnRails
[03:35:39] paradisaeidae_: has joined #RubyOnRails
[03:36:15] rogue_koder: has joined #RubyOnRails
[03:36:54] blackmesa: has joined #RubyOnRails
[03:39:36] baweaver: has joined #RubyOnRails
[03:40:48] chagel: has joined #RubyOnRails
[03:42:36] liquid-silence: has joined #RubyOnRails
[03:42:36] liquid-silence: has joined #RubyOnRails
[03:43:04] liquid-silence: ok so who here has worked with Json Web Tokens? because I am properly stuck with signing this token
[03:43:51] kknight: has joined #RubyOnRails
[03:43:54] liquid-silence: jwt-ruby is doing something weird when signing the token, or I am not understanding how I should sign it correctly
[03:44:24] kknight: i want to upload html file through usung paperclip gem. How to do that
[03:44:48] kknight: when i write html in place of image it cant uploaded?
[03:46:08] kknight: or you can suggest the way how to upload html file in my app
[03:48:22] chagel: has joined #RubyOnRails
[03:51:20] liquid-silence: kknight I use carrierwave to upload .html / .doc / .pdf etc
[03:53:48] kknight: liquid-silence: in carrirwave what you use in place of html extension
[03:54:06] liquid-silence: not sure what your asking?
[03:54:47] kknight: like in paperclip ifi want to insert image we write only image
[03:55:15] kknight: similalry in carrirwave for html file uploading we write what?
[03:56:59] chagel: has joined #RubyOnRails
[04:02:00] chagel: has joined #RubyOnRails
[04:04:41] liquid-silence: kknight not really understanding sorry, but I have to solve my own shit here
[04:11:39] tjohnson: has joined #RubyOnRails
[04:16:37] braincrash: has joined #RubyOnRails
[04:16:50] pawnbox: has joined #RubyOnRails
[04:18:25] chagel: has joined #RubyOnRails
[04:23:36] SteenJobs: has joined #RubyOnRails
[04:25:27] rrrepsaj: has joined #RubyOnRails
[04:27:10] pawnbox: has joined #RubyOnRails
[04:28:42] chagel: has joined #RubyOnRails
[04:31:15] _djbkd: has joined #RubyOnRails
[04:31:26] sleungcy: has joined #RubyOnRails
[04:31:28] liquid-silence: has joined #RubyOnRails
[04:31:28] liquid-silence: has joined #RubyOnRails
[04:32:50] treaki__: has joined #RubyOnRails
[04:33:42] chagel: has joined #RubyOnRails
[04:33:45] krz: has joined #RubyOnRails
[04:35:39] Uber|Dragon: has joined #RubyOnRails
[04:43:59] RegulationD: has joined #RubyOnRails
[04:45:21] chagel: has joined #RubyOnRails
[04:47:36] achamian: has joined #RubyOnRails
[04:51:24] smoitra: has joined #RubyOnRails
[04:53:57] moei: has joined #RubyOnRails
[05:00:48] njero: has joined #RubyOnRails
[05:02:51] Devalo: has joined #RubyOnRails
[05:07:18] htmldrum: has joined #RubyOnRails
[05:07:37] edwinvdgraaf: has joined #RubyOnRails
[05:09:03] Coldblackice: has joined #RubyOnRails
[05:10:40] sp1rs: has joined #RubyOnRails
[05:10:48] chagel: has joined #RubyOnRails
[05:15:21] Chagel_: has joined #RubyOnRails
[05:15:52] maulgoth: has joined #RubyOnRails
[05:19:19] quazimodo: has joined #RubyOnRails
[05:19:20] quazimod1: has joined #RubyOnRails
[05:22:09] arup_r: has joined #RubyOnRails
[05:23:33] maulgoth1: has joined #RubyOnRails
[05:27:32] techsethi: has joined #RubyOnRails
[05:28:10] duncannz: has joined #RubyOnRails
[05:32:09] sleungcy: has joined #RubyOnRails
[05:34:53] htmldrum: has joined #RubyOnRails
[05:46:50] null__: I accidentally installed development/test gems on this production server
[05:47:00] null__: anyone know the command to undo that?
[05:48:26] chagel: has joined #RubyOnRails
[05:49:13] htmldrum: has joined #RubyOnRails
[05:51:05] uglybandersnatch: has joined #RubyOnRails
[05:51:51] stardiviner: has joined #RubyOnRails
[05:51:53] chipotle: has joined #RubyOnRails
[06:07:16] Devalo: has joined #RubyOnRails
[06:07:52] sp1rs: has joined #RubyOnRails
[06:09:29] matiaslina: has joined #RubyOnRails
[06:09:39] Guest34101: has joined #RubyOnRails
[06:15:42] chagel: has joined #RubyOnRails
[06:16:16] User458764: has joined #RubyOnRails
[06:17:18] techsethi: has joined #RubyOnRails
[06:22:26] arup_r: null__: http://stackoverflow.com/questions/9765007/how-do-you-undo-bundle-install-without
[06:24:21] krz: has joined #RubyOnRails
[06:25:19] null__: yeah I ran across that but I noticed that the spring gem was still around which needed to be manually removed. I just ended up deleting the bundle dirs
[06:31:09] null__: thanks for looking though
[06:32:58] sleungcy: has joined #RubyOnRails
[06:33:18] Palsson: has joined #RubyOnRails
[06:45:04] RegulationD: has joined #RubyOnRails
[06:48:00] Rinalds: has joined #RubyOnRails
[06:52:43] chagel: has joined #RubyOnRails
[06:55:22] arup_r: has joined #RubyOnRails
[06:55:54] sandstrom: has joined #RubyOnRails
[06:56:01] intrigueD: has joined #RubyOnRails
[06:56:04] techsethi: has joined #RubyOnRails
[07:00:37] Pulp: has joined #RubyOnRails
[07:02:22] AntiSpamMeta_: has joined #RubyOnRails
[07:02:59] DoubleMalt: has joined #RubyOnRails
[07:05:12] solars: has joined #RubyOnRails
[07:05:24] icedp: has joined #RubyOnRails
[07:05:52] Junaos_: has joined #RubyOnRails
[07:06:24] Console: has joined #RubyOnRails
[07:07:17] raldu_: has joined #RubyOnRails
[07:07:24] svkurowski_: has joined #RubyOnRails
[07:07:38] sonOfRa_: has joined #RubyOnRails
[07:07:48] TakumoKatekari: has joined #RubyOnRails
[07:07:48] TakumoKatekari: has joined #RubyOnRails
[07:08:53] bahar_: has joined #RubyOnRails
[07:12:34] FastJack_: has joined #RubyOnRails
[07:14:33] tomaw_: has joined #RubyOnRails
[07:14:33] FaresKAl-: has joined #RubyOnRails
[07:14:35] MarqueI: has joined #RubyOnRails
[07:15:23] ayoros: has joined #RubyOnRails
[07:15:25] martinbjeldbak_: has joined #RubyOnRails
[07:15:34] Marquel: has joined #RubyOnRails
[07:15:35] davee__: has joined #RubyOnRails
[07:15:48] djellemah: has joined #RubyOnRails
[07:15:51] decaff: has joined #RubyOnRails
[07:16:12] hello9: has joined #RubyOnRails
[07:16:12] reaVer: has joined #RubyOnRails
[07:16:12] bachmann: has joined #RubyOnRails
[07:16:12] Jasaka: has joined #RubyOnRails
[07:16:12] kies: has joined #RubyOnRails
[07:16:12] callumacrae: has joined #RubyOnRails
[07:16:12] RTG`: has joined #RubyOnRails
[07:16:13] xMopxShell: has joined #RubyOnRails
[07:16:13] _Ducky-: has joined #RubyOnRails
[07:16:13] chrisarcand: has joined #RubyOnRails
[07:16:13] wij32: has joined #RubyOnRails
[07:16:13] bios: has joined #RubyOnRails
[07:16:13] kallisti5: has joined #RubyOnRails
[07:16:13] philtr_: has joined #RubyOnRails
[07:16:13] Helheim: has joined #RubyOnRails
[07:16:13] Gizmokid2005: has joined #RubyOnRails
[07:16:13] ltd_: has joined #RubyOnRails
[07:16:13] phon: has joined #RubyOnRails
[07:16:13] eisi: has joined #RubyOnRails
[07:16:13] hypnosb: has joined #RubyOnRails
[07:16:13] mlitwiniuk: has joined #RubyOnRails
[07:16:13] tbuehlmann: has joined #RubyOnRails
[07:16:57] tbuehlmann: has joined #RubyOnRails
[07:17:41] callumacrae: has joined #RubyOnRails
[07:18:06] jstransky: has joined #RubyOnRails
[07:18:51] Cork: has joined #RubyOnRails
[07:18:57] flopsec: has joined #RubyOnRails
[07:19:14] Helheim: has joined #RubyOnRails
[07:19:37] pawnbox: has joined #RubyOnRails
[07:21:21] sp1rs: has joined #RubyOnRails
[07:23:22] comrad: has joined #RubyOnRails
[07:26:41] phredus: has joined #RubyOnRails
[07:30:17] Palsson: has joined #RubyOnRails
[07:31:26] chagel: has joined #RubyOnRails
[07:33:53] sleungcy: has joined #RubyOnRails
[07:34:09] bmalum: has joined #RubyOnRails
[07:34:19] _djbkd: has joined #RubyOnRails
[07:34:30] squiercaster: has joined #RubyOnRails
[07:42:15] Tempesta: has joined #RubyOnRails
[07:44:08] dionysus69: has joined #RubyOnRails
[07:47:10] chagel: has joined #RubyOnRails
[07:47:11] ziyadb: has joined #RubyOnRails
[07:47:16] sandstrom: has joined #RubyOnRails
[07:50:53] Pazician: has joined #RubyOnRails
[07:51:45] pawnbox: has joined #RubyOnRails
[07:52:54] mhoungbo: has joined #RubyOnRails
[07:53:15] jas02: has joined #RubyOnRails
[07:53:27] pawnbox: has joined #RubyOnRails
[07:55:12] AlexJakeGreen: has joined #RubyOnRails
[07:55:49] moeabdol2: has joined #RubyOnRails
[07:57:24] lxsameer: has joined #RubyOnRails
[08:03:56] Megamos: has joined #RubyOnRails
[08:07:10] darutoko: has joined #RubyOnRails
[08:07:24] bePolite: has joined #RubyOnRails
[08:08:01] sandstrom: has joined #RubyOnRails
[08:10:44] adac: has joined #RubyOnRails
[08:14:26] roshanavand: has joined #RubyOnRails
[08:16:09] chagel: has joined #RubyOnRails
[08:16:56] chandlerbing: has joined #RubyOnRails
[08:17:16] adaedra: GOOD MORNING
[08:17:21] agit0: has joined #RubyOnRails
[08:19:48] blackhuey: has joined #RubyOnRails
[08:21:28] pawnbox: has joined #RubyOnRails
[08:21:57] aganov: has joined #RubyOnRails
[08:23:36] fox_mulder_cp: ~10.30, time for a morning coffee
[08:25:58] roshanavand: has joined #RubyOnRails
[08:32:16] ayoros: has joined #RubyOnRails
[08:34:43] sleungcy: has joined #RubyOnRails
[08:37:58] SteenJobs: has joined #RubyOnRails
[08:39:48] yxejamir: has joined #RubyOnRails
[08:42:12] mark2: has joined #RubyOnRails
[08:47:12] edwinvdgraaf: has joined #RubyOnRails
[08:48:17] futilegames: has joined #RubyOnRails
[08:49:22] ur5us: has joined #RubyOnRails
[08:51:53] pawnbox: has joined #RubyOnRails
[08:52:18] mdw: has joined #RubyOnRails
[08:53:00] Spami: has joined #RubyOnRails
[08:56:34] solars: can anyone recommend a gem to read .xlsx data from a stream/var?
[08:59:53] defsdoor: has joined #RubyOnRails
[09:00:10] msyvich: has joined #RubyOnRails
[09:00:27] jenrzzz: has joined #RubyOnRails
[09:01:33] bosmeeuw: has joined #RubyOnRails
[09:02:27] srinidhi: has joined #RubyOnRails
[09:02:54] srinidhi: has joined #RubyOnRails
[09:03:46] roshanavand: has joined #RubyOnRails
[09:04:27] arup_r: has joined #RubyOnRails
[09:06:02] zer0h: has joined #RubyOnRails
[09:06:50] zer0h: has left #RubyOnRails: ()
[09:07:09] syndikate: has joined #RubyOnRails
[09:08:09] roshanavand: has joined #RubyOnRails
[09:08:35] jsrn: has joined #RubyOnRails
[09:09:29] Pazician: has joined #RubyOnRails
[09:09:32] syndikate: How do I schedule a resque job to execute every 30 minutes? I seem to hittng errors
[09:09:49] apotry: has joined #RubyOnRails
[09:10:28] nerium: has joined #RubyOnRails
[09:11:53] adre: has joined #RubyOnRails
[09:12:45] drptbl: has joined #RubyOnRails
[09:14:23] lxsameer: has joined #RubyOnRails
[09:15:20] sp1rs: has joined #RubyOnRails
[09:15:38] sandstrom: has joined #RubyOnRails
[09:15:41] jhass: has joined #RubyOnRails
[09:15:52] msyvich: has joined #RubyOnRails
[09:16:37] blackmes1: has joined #RubyOnRails
[09:16:44] Ergo: has joined #RubyOnRails
[09:17:01] sonOfRa: has joined #RubyOnRails
[09:17:56] ferr: has joined #RubyOnRails
[09:18:48] gbgdev: has joined #RubyOnRails
[09:21:05] bauruine: has joined #RubyOnRails
[09:21:46] norc: has joined #RubyOnRails
[09:22:27] Guest25683: has left #RubyOnRails: ()
[09:22:36] clorisu: has joined #RubyOnRails
[09:22:38] norc: has joined #RubyOnRails
[09:23:15] norc: Hi. Does ActiveRecord provide some generic interface to reconnect to the database? My oracle enhanced adapter has gotten a bug recently that at times randomly loses the connection...
[09:24:11] norc: (Which can be really frustrating when doing some things in the rails console, since it forces me to restart the console)
[09:24:45] arup_r: has joined #RubyOnRails
[09:24:49] sp1rs: has joined #RubyOnRails
[09:24:55] roshanavand: has joined #RubyOnRails
[09:25:19] norc: Ah, ActiveRecord::Base.establish_connection seems to do the job :)
[09:26:40] kp666: has joined #RubyOnRails
[09:30:08] chagel: has joined #RubyOnRails
[09:30:41] marr: has joined #RubyOnRails
[09:30:56] baweaver: has joined #RubyOnRails
[09:30:56] ferr: has joined #RubyOnRails
[09:32:51] bricker: has joined #RubyOnRails
[09:33:17] nettoweb: has joined #RubyOnRails
[09:35:06] roshanavand: has joined #RubyOnRails
[09:35:21] sleungcy: has joined #RubyOnRails
[09:36:20] _djbkd: has joined #RubyOnRails
[09:37:38] koneko: has joined #RubyOnRails
[09:38:56] clorisu: has joined #RubyOnRails
[09:39:24] techsethi: has joined #RubyOnRails
[09:39:48] pawnbox: has joined #RubyOnRails
[09:39:57] User458764: has joined #RubyOnRails
[09:40:11] arup_r: has joined #RubyOnRails
[09:43:26] srinidhi: has joined #RubyOnRails
[09:49:31] roshanavand: has joined #RubyOnRails
[09:54:55] bePolite: has joined #RubyOnRails
[09:57:44] roshanavand: has joined #RubyOnRails
[10:00:19] smoitra: has joined #RubyOnRails
[10:01:48] emilkarl: has joined #RubyOnRails
[10:02:39] sp1rs: has joined #RubyOnRails
[10:03:04] lxsameer: has joined #RubyOnRails
[10:03:31] arBmind: has joined #RubyOnRails
[10:04:15] roshanavand: has joined #RubyOnRails
[10:04:47] morfin: has joined #RubyOnRails
[10:06:43] emilkarl: I am moving a API-call (updating a credit card) from the controller to an ActiveJob. I think the client will poll the server for current job status. How could I setup an action to track the job status and be able to get the potential error message to the user?
[10:06:52] emilkarl: I guess this is something similar: http://stackoverflow.com/questions/30693577/rails-activejob-and-sse-how-to-update-page-when-an-api-call-is-finished
[10:07:18] merida: has joined #RubyOnRails
[10:08:55] uglybandersnatch: has joined #RubyOnRails
[10:09:19] udiudi: has joined #RubyOnRails
[10:10:17] workmad3: has joined #RubyOnRails
[10:11:01] dgncn: has joined #RubyOnRails
[10:11:04] arup_r: has joined #RubyOnRails
[10:12:03] universa1: emilkarl: where are you stuck?
[10:12:08] universa1: what have you tried?
[10:12:21] emilkarl: universa1 so I've got the job working
[10:12:56] adre: has joined #RubyOnRails
[10:12:56] emilkarl: I am stuck in the client end. I dont track anything atm on the record when the job is queued.
[10:13:45] fox_mulder_cp: syndikate: think about system crontab
[10:14:26] emilkarl: so basically i would like some input on the best way to keep track of the job. maybe it would be to set a state on the subscription like 'processing_card' when the job is queued and update to 'ok/error'. But doesnt seem right to me.
[10:14:52] snowy: has joined #RubyOnRails
[10:14:57] fox_mulder_cp: in r5 active cable - webcockets
[10:15:35] universa1: emilkarl: how about a CardUpdateJob model, which is referenced from wherever... ...and has the status, error messages, ....
[10:15:56] fox_mulder_cp: but in my project i think about make a 'user_messages' (user.id, datetime, message, active)
[10:15:57] emilkarl: Hmm...that could be nice.
[10:16:21] fox_mulder_cp: and make a notice, when se have a unread alerts
[10:17:02] n008f4g_: has joined #RubyOnRails
[10:17:19] fox_mulder_cp: when user press 'x' on warning (bootstrap, yep) it stay to disabled
[10:17:20] emilkarl: So basically creating the CardUpdateJob model, return the ID to the client (so it can be polled) and then updating it with the status from the API call?
[10:17:48] fox_mulder_cp: or, in this case must be 'type'
[10:17:59] fox_mulder_cp: present, for styling in views
[10:18:00] universa1: emilkarl: maybe... ...it's your code... ...try it.
[10:18:35] MaienM: has joined #RubyOnRails
[10:18:52] universa1: fox_mulder_cp, syndikate: http://railscasts.com/episodes/103-site-wide-announcements-revised
[10:21:34] drptbl: has joined #RubyOnRails
[10:22:00] syndikate: Thanks fox_mulder_cp and universa1 , jus to clarify. I have resque working and I was able to get it working when I push to queue immediately. Though when I tried enqueue_at and gave a time, it is not being executed, no error nothing, just it is not executed
[10:22:17] syndikate: I need to have this done dynamically, so I am calling it from the controller
[10:22:31] universa1: syndikate: was jsut guessing on what you were doing from fox_mulder_cp s comments ;)
[10:22:59] syndikate: universa1, ah okay :) I have put my situation above. It is something simple that am missing
[10:24:24] fox_mulder_cp: universa1: u can create user_message after ur resque task ended in my case
[10:24:44] fox_mulder_cp: i use this messaging as a log of tasks too
[10:30:46] ziyadb: has joined #RubyOnRails
[10:31:15] r0bby_: has joined #RubyOnRails
[10:32:11] JMJarCal: has joined #RubyOnRails
[10:36:05] JMJarCal: has left #RubyOnRails: ()
[10:36:17] sleungcy: has joined #RubyOnRails
[10:36:46] JMarCal: has joined #RubyOnRails
[10:36:57] gbgdev: has joined #RubyOnRails
[10:38:53] moeabdol2: has joined #RubyOnRails
[10:39:27] msyvich: has joined #RubyOnRails
[10:41:08] AlexJakeGreen: has joined #RubyOnRails
[10:42:00] blackmes1: has joined #RubyOnRails
[10:43:45] uglybandersnatch: has joined #RubyOnRails
[10:43:46] Mia: has joined #RubyOnRails
[10:43:46] Mia: has joined #RubyOnRails
[10:44:20] syndikate: Update: I figured it out
[10:53:22] rodfersou: has joined #RubyOnRails
[10:53:35] pawnbox: has joined #RubyOnRails
[10:54:38] arup_r: has joined #RubyOnRails
[10:55:08] trosborn: has joined #RubyOnRails
[10:56:11] arup_r: has left #RubyOnRails: ()
[10:56:14] arup_r: has joined #RubyOnRails
[10:57:52] roshanavand: has joined #RubyOnRails
[10:58:04] htmldrum: has joined #RubyOnRails
[10:58:50] tvw: has joined #RubyOnRails
[11:01:17] Surt_Q: has joined #RubyOnRails
[11:02:46] jenrzzz: has joined #RubyOnRails
[11:03:07] aclearman037: has joined #RubyOnRails
[11:06:08] pawnbox: has joined #RubyOnRails
[11:07:54] adlerdias: has joined #RubyOnRails
[11:10:01] chagel: has joined #RubyOnRails
[11:12:23] Megamos: has joined #RubyOnRails
[11:14:13] adre: has joined #RubyOnRails
[11:14:58] sp1rs: has joined #RubyOnRails
[11:21:41] chagel: has joined #RubyOnRails
[11:22:25] emilkarl: has joined #RubyOnRails
[11:23:45] mfaeh: has joined #RubyOnRails
[11:26:09] Quintasan: eh, I can't get nested attributes to work -> https://gist.github.com/Quintasan/30194ab6e19d3bd409d8
[11:26:16] Quintasan: Anyone can tell me what I am doing wrong?
[11:26:53] Quintasan: There are no Unpermitted parameters in the log but nested attributes get stripped anyways.
[11:26:57] meoblast001: has joined #RubyOnRails
[11:28:08] nfk|laptop: has joined #RubyOnRails
[11:28:25] ferr: Quintasan: show ur model file
[11:29:16] Quintasan: ferr: refresh gist, I updated it
[11:30:11] ferr: https://gist.github.com/Quintasan/30194ab6e19d3bd409d8#file-log-rb-L4 are you passing the authenticity token?
[11:30:34] Quintasan: ferr: No, I'm using :null_session because this is an API
[11:30:45] Quintasan: ferr: The Project itself gets saved just fine
[11:30:54] Quintasan: It's like totally ignoring the associated object
[11:31:08] agit0: has joined #RubyOnRails
[11:31:18] PrettyBoy2000: has joined #RubyOnRails
[11:32:01] baweaver: has joined #RubyOnRails
[11:32:40] aclearman037: has joined #RubyOnRails
[11:32:41] arup_r: Quintasan: if you see the params properly, you will see you got the data, but nested data not in project: {..} that's the problem
[11:32:59] arup_r: your nested data is inside params {..}
[11:33:20] arup_r: so, fix the form or whatever from where you are sending data..
[11:33:56] arup_r: your nested data must be wrapped inside project: {} because there you are whitelisting..
[11:34:26] ql6wlld: has joined #RubyOnRails
[11:36:58] trinaldi: has joined #RubyOnRails
[11:37:02] sleungcy: has joined #RubyOnRails
[11:37:21] ldnunes: has joined #RubyOnRails
[11:38:12] _djbkd: has joined #RubyOnRails
[11:38:28] Megamos: has joined #RubyOnRails
[11:41:29] adre: has joined #RubyOnRails
[11:42:34] pawnbox: has joined #RubyOnRails
[11:43:55] bricker: has joined #RubyOnRails
[11:43:55] Quintasan: arup_r: Ah, indeed. My bad.
[11:44:02] universa1: Quintasan: https://github.com/universal/papercropTest/blob/master/config/initializers/wrap_parameters.rb -- this might not wrap your params as you're expecting it to
[11:45:06] universa1: Quintasan: this is what gets you params[:project], but it looks like it doesn't wraps the nested parameters automagically ;)
[11:45:36] universa1: Quintasan: http://api.rubyonrails.org/classes/ActionController/ParamsWrapper.html
[11:45:58] rodfersou: has joined #RubyOnRails
[11:47:26] quazimodo: has joined #RubyOnRails
[11:48:19] Quintasan: universa1: https://github.com/rails/rails/issues/17216 is open since 2014
[11:48:55] pwnd_nsfw: has joined #RubyOnRails
[11:50:36] JamieD: has joined #RubyOnRails
[11:51:31] stannard: has joined #RubyOnRails
[11:51:55] JamieD: has left #RubyOnRails: ()
[11:51:57] JamieD: has joined #RubyOnRails
[11:51:59] squiercaster: has joined #RubyOnRails
[11:54:16] JamieD: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[11:54:20] JamieD: has joined #RubyOnRails
[11:55:22] JamieD: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[11:55:26] JamieD: has joined #RubyOnRails
[11:59:08] JamieD: has joined #RubyOnRails
[11:59:53] PedramT: has joined #RubyOnRails
[12:00:37] sandstrom: has joined #RubyOnRails
[12:00:57] JamieD: has left #RubyOnRails: ()
[12:01:04] JamieD: has joined #RubyOnRails
[12:01:12] arup_r: JamieD: hello
[12:09:08] msyvich: has joined #RubyOnRails
[12:09:25] cabinB_: has joined #RubyOnRails
[12:14:16] bbrowning: has joined #RubyOnRails
[12:15:28] msyvich: has joined #RubyOnRails
[12:16:13] Tekneek: has joined #RubyOnRails
[12:21:51] Didac: has joined #RubyOnRails
[12:22:26] stannard: has joined #RubyOnRails
[12:22:44] mfaeh: has joined #RubyOnRails
[12:27:17] sandstrom: has joined #RubyOnRails
[12:29:16] PedramT: has joined #RubyOnRails
[12:31:54] sadaf2605: has joined #RubyOnRails
[12:36:52] sadaf2606: has joined #RubyOnRails
[12:37:42] sleungcy: has joined #RubyOnRails
[12:42:45] srinidhi: has joined #RubyOnRails
[12:44:26] Detch: has joined #RubyOnRails
[12:46:02] bricker: has joined #RubyOnRails
[12:46:40] pawnbox: has joined #RubyOnRails
[12:47:20] RegulationD: has joined #RubyOnRails
[12:51:09] SeanLazer: has joined #RubyOnRails
[12:53:18] anagha_: has joined #RubyOnRails
[12:53:45] ramortegui: has joined #RubyOnRails
[12:54:26] bePolite: has joined #RubyOnRails
[12:55:27] anagha_: when an application is run,error showing db configuration runtime error.db used in pg..It is already installed.But not able to run the app
[12:56:50] emilkarl: I cant quite figure out the difference on activejob perform_now or perform_later (without timestamp), will perform_now put the job in top of the queue? http://edgeguides.rubyonrails.org/active_job_basics.html#enqueue-the-job
[12:57:12] emilkarl: and perform_later put it in the bottom?
[12:57:26] axilaris: has joined #RubyOnRails
[12:59:10] stannard: has joined #RubyOnRails
[13:02:12] tbuehlmann: emilkarl, that depends on the adapter implementation. perform_now will most likely perform the job when perform_now is called and block until it's finished. perform_later will queue the job up
[13:02:15] arup_r: has joined #RubyOnRails
[13:04:15] jenrzzz: has joined #RubyOnRails
[13:04:38] sandstrom: has joined #RubyOnRails
[13:04:55] Takumo: has joined #RubyOnRails
[13:04:55] Takumo: has joined #RubyOnRails
[13:05:10] Ergo^: has joined #RubyOnRails
[13:07:40] B4daBing73: has joined #RubyOnRails
[13:07:58] yxejamir: has joined #RubyOnRails
[13:07:58] yxejamir: has joined #RubyOnRails
[13:08:28] cabinB_: has joined #RubyOnRails
[13:08:30] bePolite: has joined #RubyOnRails
[13:10:24] pawnbox: has joined #RubyOnRails
[13:10:28] squiercaster: has joined #RubyOnRails
[13:12:41] mfaeh: has joined #RubyOnRails
[13:12:41] jstew: has joined #RubyOnRails
[13:13:27] drbayer: has joined #RubyOnRails
[13:13:40] pawnbox: has joined #RubyOnRails
[13:15:42] msyvich: has joined #RubyOnRails
[13:15:45] aegis3121: has joined #RubyOnRails
[13:20:23] msyvich: has joined #RubyOnRails
[13:21:54] PedramT: has joined #RubyOnRails
[13:24:51] universa1: anagha_: show the error trace in a gist.
[13:26:58] fox_mulder_cp: wow. my webapp can start and stop docker containers. it's progress
[13:27:21] anagha_: https://www.irccloud.com/pastebin/hAYiXFzh/
[13:28:35] udiudi: has joined #RubyOnRails
[13:28:56] universa1: anagha_: see line 2. you have no config/database.yml
[13:28:57] Guest34101: has joined #RubyOnRails
[13:30:07] msyvich: has joined #RubyOnRails
[13:30:36] ziyadb: has joined #RubyOnRails
[13:31:22] anagha_: oh!!okie.So I need to create one.right?
[13:31:27] flashpoint9: has joined #RubyOnRails
[13:32:09] universa1: anagha_: yes. you probably have a database.yml.sample or alike
[13:32:44] baweaver: has joined #RubyOnRails
[13:33:23] techsethi: has joined #RubyOnRails
[13:33:44] momomomomo: has joined #RubyOnRails
[13:35:53] anagha_: yeah.It fixed the problem.Now Letme run the app
[13:36:05] crystal77: has joined #RubyOnRails
[13:38:33] sleungcy: has joined #RubyOnRails
[13:38:42] msyvich: has joined #RubyOnRails
[13:39:18] anagha_: Again showing pg connection problem.I tried restarting the pg.But not able to run the app.
[13:42:37] universa1: again: error trace in a gist(!)
[13:43:00] jottr_: has joined #RubyOnRails
[13:44:09] mfaeh: has joined #RubyOnRails
[13:45:41] sergey_makagon: has joined #RubyOnRails
[13:47:21] bmalum_: has joined #RubyOnRails
[13:47:46] pawnbox: has joined #RubyOnRails
[13:51:00] yellow5: has joined #RubyOnRails
[13:52:53] baweaver: has joined #RubyOnRails
[13:53:22] dadleyy: has joined #RubyOnRails
[13:53:55] anagha_: https://usercontent.irccloud-cdn.com/file/lbTf5Vw2/errory.png
[13:55:09] universa1: anagha_: gist your database.yml
[13:56:18] clorisu: has joined #RubyOnRails
[13:56:28] Zackio: has joined #RubyOnRails
[13:56:51] fernandomm: has joined #RubyOnRails
[13:56:53] clorisu: has joined #RubyOnRails
[13:57:41] clorisu: has joined #RubyOnRails
[13:57:51] PedramT: has joined #RubyOnRails
[13:58:17] clorisu: has joined #RubyOnRails
[13:58:23] bmalum: has joined #RubyOnRails
[13:58:53] msyvich: has joined #RubyOnRails
[13:58:53] HalcyonicStorm: has joined #RubyOnRails
[13:59:09] norc: Is there a simple way to force rails to cache an entire table until I invalide it?
[13:59:43] clorisu: has joined #RubyOnRails
[14:00:08] clorisu: has joined #RubyOnRails
[14:00:14] griffindy: has joined #RubyOnRails
[14:00:34] universa1: norc: what are you trying to do?
[14:01:14] norc: universa1: I have a table that is selected from rather heavily in various places but it rarely gets updated.
[14:01:29] universa1: html table? ...
[14:02:03] norc: Oh sorry. No a database table. ;-)
[14:02:23] msyvich: has joined #RubyOnRails
[14:02:26] universa1: so again: what are you trying to do? ....
[14:03:22] norc: universa1: I dont want rails to select from the table.
[14:03:33] deur-: norc: you probably want to read http://guides.rubyonrails.org/caching_with_rails.html
[14:04:24] universa1: norc: then don't query it. you're talking "too much" about how, and not enough about what you are actually trying to do.
[14:05:22] deur-: norc: you can use either the cache helper method in your views and partials, or you can use Rails.cache.fetch in your controller or any other class. it depends what you're trying to achieve though
[14:06:33] stannard: has joined #RubyOnRails
[14:08:06] yxejamir: has joined #RubyOnRails
[14:08:06] yxejamir: has joined #RubyOnRails
[14:09:45] squiercaster: has joined #RubyOnRails
[14:13:12] jayp: has joined #RubyOnRails
[14:16:49] Cervajz: has joined #RubyOnRails
[14:17:26] mary5030: has joined #RubyOnRails
[14:18:25] marceloeloelo: has joined #RubyOnRails
[14:20:15] meoblast001: has joined #RubyOnRails
[14:20:42] mary5030_: has joined #RubyOnRails
[14:21:11] cabinB_: has joined #RubyOnRails
[14:21:46] andywww: has joined #RubyOnRails
[14:22:26] andywww: I am testing a service class and getting some strange results. My associations don’t seem to be working.. I don’t think?
[14:22:27] andywww: https://gist.github.com/anonymous/fecc79510f0bf003ebc2
[14:23:03] merida: has joined #RubyOnRails
[14:23:09] marceloeloelo: has joined #RubyOnRails
[14:23:30] universa1: andywww: !gist-usage
[14:23:30] helpa: andywww: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[14:23:59] universa1: andywww: @u.trips.reload.size
[14:24:21] pawnbox: has joined #RubyOnRails
[14:25:28] merida: has joined #RubyOnRails
[14:25:53] Sylario: has joined #RubyOnRails
[14:26:44] andywww: ah thats worked, thanks
[14:26:57] myntcake: has joined #RubyOnRails
[14:27:40] marceloeloelo: Hi all, I'm seeing some strange behavior with the use of self.primary_key when integrating with activerecord-sqlserver-adapter-4.2.3/
[14:28:06] marceloeloelo: does anyone has a few mins to help me out?
[14:28:07] krz: has joined #RubyOnRails
[14:29:39] chouhoulis: has joined #RubyOnRails
[14:30:04] chouhoulis: has joined #RubyOnRails
[14:30:07] mary5030_: has joined #RubyOnRails
[14:31:52] mary5030: has joined #RubyOnRails
[14:31:53] marceloeloelo: I have defined self.primary_key in my model but when AREL is constructed, some primary_keys are being set from the the PK definition of the database instead. That affects the order statement when I try to perform an activerecord find
[14:32:07] momomomomo: has joined #RubyOnRails
[14:34:20] Ergo^: has joined #RubyOnRails
[14:34:47] DylanJ: Is there an ENV var in spring I can use locally to tell spring /not/ to run on just my machine? I have coworkers who like it. But i'm not a fan.
[14:35:51] pawnbox: has joined #RubyOnRails
[14:37:03] banister: has joined #RubyOnRails
[14:37:16] axl_: has joined #RubyOnRails
[14:37:44] nettoweb: has joined #RubyOnRails
[14:39:11] sleungcy: has joined #RubyOnRails
[14:40:04] marceloeloelo: @DylanJ: you can use export DISABLE_SPRING=1
[14:41:00] _djbkd: has joined #RubyOnRails
[14:41:02] DylanJ: marceloeloelo: you're a legend.
[14:41:19] DylanJ: ACTION puts it in /etc/environment
[14:41:36] EdwardIII: hey, would you use something like cancancan for handling roles, then devise for handling the rest of auth?
[14:41:44] EdwardIII: or no, cancancan does authz and auth?
[14:41:52] treehug88: has joined #RubyOnRails
[14:42:09] speakingcode: has joined #RubyOnRails
[14:42:11] EdwardIII: Enumerize doesn't support multiple auths and i don't fancy serialising them in the db
[14:42:13] HalcyonicStorm: has joined #RubyOnRails
[14:42:14] EdwardIII: or maybe i just should?
[14:42:56] sp1rs: has joined #RubyOnRails
[14:43:43] JamieD: has joined #RubyOnRails
[14:44:12] EdwardIII: oh scrap that, Enumerize *does* support multiple values
[14:46:14] banister: has joined #RubyOnRails
[14:46:49] djellemah: has joined #RubyOnRails
[14:46:49] trosborn: has joined #RubyOnRails
[14:47:10] msyvich: has joined #RubyOnRails
[14:47:22] bricker: has joined #RubyOnRails
[14:48:36] mary5030_: has joined #RubyOnRails
[14:48:38] RegulationD: has joined #RubyOnRails
[14:49:50] isjaylee: has joined #RubyOnRails
[14:50:26] bosmeeuw: has joined #RubyOnRails
[14:50:29] isjaylee: has left #RubyOnRails: ()
[14:50:48] trosborn: has joined #RubyOnRails
[14:52:44] tbuehlmann: EdwardIII: I'd choose devise with pundit
[14:54:49] jayp: has left #RubyOnRails: ("Using Circe, the loveliest of all IRC clients")
[14:55:07] pawnbox: has joined #RubyOnRails
[14:55:22] EdwardIII: tbuehlmann: thanks, i'll check it out!
[14:55:32] EdwardIII: although i'm puzzled as to why, when i try to save this model, it says: NoMethodError: undefined method `[]' for false:FalseClass
[14:56:59] EdwardIII: https://gist.github.com/EdwardIII/925e463d39b2ca597fd6
[14:58:23] msyvich: has joined #RubyOnRails
[14:59:04] gbgdev: has joined #RubyOnRails
[14:59:30] momomomomo: has joined #RubyOnRails
[14:59:42] tbuehlmann: EdwardIII, what's that `false` doing there?
[14:59:43] aegis3121: has joined #RubyOnRails
[14:59:47] bricker: has joined #RubyOnRails
[14:59:57] EdwardIII: tbuehlmann: yeah that's what i'm not sure about heh
[15:00:18] maxdoubt: has joined #RubyOnRails
[15:00:18] msyvich: has joined #RubyOnRails
[15:00:28] tbuehlmann: https://github.com/rails/rails/blob/493297d13f7d010a896b6cb026c874f64d959ba5/activerecord/lib/active_record/validations.rb#L81-L83
[15:00:44] tbuehlmann: that's what you're hitting (or a similar version at least). it expects a hash, you provide `false`
[15:00:47] pzula: has joined #RubyOnRails
[15:00:55] krz: has joined #RubyOnRails
[15:01:10] tbuehlmann: if you don't want to run validation, `validate: false` would be what you're after instead of just `false`
[15:01:19] mostlybadfly: has joined #RubyOnRails
[15:01:31] ericmeds: has joined #RubyOnRails
[15:01:52] htmldrum: has joined #RubyOnRails
[15:01:55] EdwardIII: that's odd, i'm sure i see docs everywhere saying to just pass 'false' though?
[15:02:02] Ergo^: has joined #RubyOnRails
[15:02:26] bbrowning_: has joined #RubyOnRails
[15:02:37] EdwardIII: ah, further reading shows "
[15:02:39] EdwardIII: Looks like save(false) is depcreated, now should be save(:validate => false)"
[15:02:43] EdwardIII: thanks tbuehlmann
[15:02:54] jsrn: has joined #RubyOnRails
[15:02:58] uglybandersnatch: has joined #RubyOnRails
[15:03:03] SeanLazer_: has joined #RubyOnRails
[15:03:17] msyvich: has joined #RubyOnRails
[15:03:22] tbuehlmann: very welcome
[15:06:10] maxdoubt: trying to troubleshoot csrf errors in rails, everything should be working, i don’t get it!? - https://gist.github.com/maxdoubt/b36d66045326042facfd
[15:06:17] jenrzzz: has joined #RubyOnRails
[15:06:37] sp1rs: has joined #RubyOnRails
[15:07:45] maxdoubt: if verified_request? comes out true, then shouldn’t rails not complain, “ActionController::InvalidCrossOriginRequest (Security warning: an embedded <script”...
[15:08:03] pawnbox: has joined #RubyOnRails
[15:08:03] Rubie: has joined #RubyOnRails
[15:09:16] beingjohnm: anybody recommend a gem for client side validation?
[15:09:27] HalcyonicStorm: has left #RubyOnRails: ()
[15:09:31] adavia: has joined #RubyOnRails
[15:11:10] merida: has joined #RubyOnRails
[15:11:48] joshkovach: has joined #RubyOnRails
[15:12:16] pawnbox: has joined #RubyOnRails
[15:16:31] bricker: has joined #RubyOnRails
[15:16:33] msyvich: has joined #RubyOnRails
[15:17:07] DmitryBochkarev: has joined #RubyOnRails
[15:17:54] dionysus69: has joined #RubyOnRails
[15:18:20] digitalcakes: has joined #RubyOnRails
[15:21:02] momomomomo: has joined #RubyOnRails
[15:23:57] Ericx2x: has joined #RubyOnRails
[15:25:00] ashleyw: has joined #RubyOnRails
[15:25:02] Ericx2x: Hey guys, should I upgrade to rails 5?
[15:25:13] Ericx2x: I have an old application I've developed and I'm beginning to work on it again
[15:25:22] Ericx2x: Not sure if I should bother upgrading though
[15:26:08] polishdub: has joined #RubyOnRails
[15:28:32] disgrntld: has joined #RubyOnRails
[15:31:17] GeorgesLeYeti: has joined #RubyOnRails
[15:31:18] meoblast001: has joined #RubyOnRails
[15:31:18] arup_r: has joined #RubyOnRails
[15:32:31] naftilos76: has joined #RubyOnRails
[15:32:41] sp1rs: has joined #RubyOnRails
[15:32:56] podman_: has left #RubyOnRails: ()
[15:33:12] drbayer: has joined #RubyOnRails
[15:33:13] GeorgesLeYeti: I have a question. How can i return the format of a request. e.g. my request /article.docx I would like to extrat the "docx"
[15:33:25] GeorgesLeYeti: request.format returns me the mime type
[15:33:46] isjaylee: has joined #RubyOnRails
[15:33:58] theunraveler: has joined #RubyOnRails
[15:34:54] shaman42: has joined #RubyOnRails
[15:35:04] banister: has joined #RubyOnRails
[15:36:18] n008f4g_: has joined #RubyOnRails
[15:36:23] CornishPasty: GeorgesLeYeti: you could do something like: File.extname(request.url)
[15:36:36] GeorgesLeYeti: CornishPasty, Ok ty
[15:36:53] CornishPasty: It will return ".docx" iirc
[15:39:15] GeorgesLeYeti: CornishPasty, It works ty a lot
[15:39:29] sp1rs: has joined #RubyOnRails
[15:40:05] sleungcy: has joined #RubyOnRails
[15:42:50] ferr: In html my checkbox is checked, but when I render it with wicked_pdf to pdf, it is not checked. Any ideas? Stylesheets are loaded
[15:42:57] maxx88: has joined #RubyOnRails
[15:42:57] bricker: has joined #RubyOnRails
[15:46:34] shinnya: has joined #RubyOnRails
[15:47:30] yellow5: has joined #RubyOnRails
[15:48:00] Uber|Dragon: has joined #RubyOnRails
[15:49:13] pawnbox: has joined #RubyOnRails
[15:49:59] liquid-silence: has joined #RubyOnRails
[15:49:59] liquid-silence: has joined #RubyOnRails
[15:54:42] sleungcy: has joined #RubyOnRails
[15:55:16] hashtd: has joined #RubyOnRails
[15:56:32] arup_r: ferr: publish your code.. :)
[15:58:23] petor: has joined #RubyOnRails
[15:58:35] codepete: has joined #RubyOnRails
[15:58:42] [Butch]: has joined #RubyOnRails
[15:59:33] rasalghul: has joined #RubyOnRails
[16:01:38] SteenJobs: has joined #RubyOnRails
[16:01:41] isjaylee: has left #RubyOnRails: ()
[16:02:29] sp1rs: has joined #RubyOnRails
[16:04:01] zave: has joined #RubyOnRails
[16:08:37] mary5030: has joined #RubyOnRails
[16:08:41] User458764: has joined #RubyOnRails
[16:10:07] zave: has joined #RubyOnRails
[16:11:23] sandroandrade_: has left #RubyOnRails: ()
[16:11:37] EdwardIII: hrm cocoon doesn't seem to be loading the image models that belong to my room model
[16:13:23] sp1rs: has joined #RubyOnRails
[16:14:52] sergey_m_: has joined #RubyOnRails
[16:15:12] EdwardIII: "room.images.map { |i| i.img.to_s }" looks great
[16:16:03] AzaToth: has joined #RubyOnRails
[16:20:34] _djbkd: has joined #RubyOnRails
[16:20:52] kies: has joined #RubyOnRails
[16:22:10] DoctorMonocular: has joined #RubyOnRails
[16:22:25] sp1rs: has joined #RubyOnRails
[16:23:49] Devalo: has joined #RubyOnRails
[16:24:44] cryo28: has joined #RubyOnRails
[16:25:23] mhoungbo: has joined #RubyOnRails
[16:25:35] sandstrom: has joined #RubyOnRails
[16:29:11] EdwardIII: hrm url_for @some_model doesn't seem to know what to do once i put the resource inside a namespace in my routes.rb
[16:31:13] treehug88: has joined #RubyOnRails
[16:32:34] stannard: has joined #RubyOnRails
[16:33:18] chouhoulis: has joined #RubyOnRails
[16:33:19] hashtd: has joined #RubyOnRails
[16:33:21] armyriad: has joined #RubyOnRails
[16:33:34] n008f4g_: has joined #RubyOnRails
[16:33:52] EdwardIII: ah neat, you can say x_for[:namespace, @model_name]"
[16:34:39] tubbo: EdwardIII: wat
[16:34:46] tubbo: oh you mean form_for/url_for, yeah :D
[16:35:09] sonofdirt: has joined #RubyOnRails
[16:35:24] Devalo: has joined #RubyOnRails
[16:37:56] djbkd: has joined #RubyOnRails
[16:38:21] djbkd: has joined #RubyOnRails
[16:39:32] syndikate: has joined #RubyOnRails
[16:39:57] mrgreenfur: has joined #RubyOnRails
[16:40:33] krz: has joined #RubyOnRails
[16:40:40] fryguy: sigh, openssl upgrades and now I can't compile or use any of my ruby versions
[16:41:48] tubbo: ugh i hate it when that happens
[16:42:05] tubbo: soluton: instead of updating openssl, buy a new computer ;)
[16:42:27] sneakerhax: has joined #RubyOnRails
[16:42:58] FooMunki: has joined #RubyOnRails
[16:43:03] flashpoint9: has joined #RubyOnRails
[16:44:54] ascarter: has joined #RubyOnRails
[16:45:54] Macaveli: has joined #RubyOnRails
[16:46:06] fmcgeough: has joined #RubyOnRails
[16:47:02] EdwardIII: cocoon picks up that there are 2 image objects just fine, but it doens't fill in any of their info heh: https://gist.github.com/EdwardIII/bcfbc09d00bce7b3bcba#file-_image_fields-html-erb-L2
[16:47:13] mrgreenfur: I got a weird testing case. I have a webhook handler that recieves data and makes a post to myself
[16:47:38] mrgreenfur: the spec is working well, and the webhook is received, bu it seems it can’t respond to itself when submitting the data
[16:47:56] mrgreenfur: if i run the server in another command line itw orks, but it’s posting outside the test then
[16:48:04] mrgreenfur: i guess test cases don’t run the real server?
[16:48:46] gingray: has joined #RubyOnRails
[16:50:39] d0nn1e: has joined #RubyOnRails
[16:50:42] dionysus69: has joined #RubyOnRails
[16:51:20] tubbo: mrgreenfur: !code
[16:51:20] helpa: mrgreenfur: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[16:51:34] Guest59337: has joined #RubyOnRails
[16:51:36] bePolite: has joined #RubyOnRails
[16:52:32] baweaver: has joined #RubyOnRails
[16:53:48] nettoweb: has joined #RubyOnRails
[16:54:16] Guest59337: has left #RubyOnRails: ()
[16:54:20] djbkd: has joined #RubyOnRails
[16:54:38] mrgreenfur: https://gist.github.com/benhoxie/a0f10740fece0dff660c
[16:54:57] mrgreenfur: the goal is to receive shopify webhooks and then submit a new event to the events controller
[16:54:58] Guest59337: has joined #RubyOnRails
[16:55:13] mrgreenfur: i have the shopify webhook saved in file for use in the spec
[16:56:01] mrgreenfur: it must be that my local.domain nginx rule is routing to a port that the test server isn’t listening on
[16:56:01] jottr: has joined #RubyOnRails
[16:56:12] nettoweb: has joined #RubyOnRails
[16:56:12] Guest59337: has left #RubyOnRails: ()
[16:56:53] qejk: has joined #RubyOnRails
[16:56:58] Guest59337: has joined #RubyOnRails
[16:57:04] mrgreenfur: i just thought it woul duse 3000 like dev
[16:57:27] chipotle: has joined #RubyOnRails
[16:58:01] helpa: has joined #RubyOnRails
[16:58:05] norc-2: has joined #RubyOnRails
[16:58:22] Guest59337: has left #RubyOnRails: ()
[16:58:24] EdwardIII: definitely seems to be picking up the ids ok: https://gist.github.com/EdwardIII/bcfbc09d00bce7b3bcba#file-out-html-L1
[16:58:45] djgraham|yeah: has joined #RubyOnRails
[16:59:06] kies: has joined #RubyOnRails
[16:59:21] squiercaster: has joined #RubyOnRails
[16:59:35] EdwardIII: i'm not even sure where it's supposed to be getting that info from
[17:00:17] pedro1: has joined #RubyOnRails
[17:00:26] gbgdev: has joined #RubyOnRails
[17:01:14] flashpoint9: has joined #RubyOnRails
[17:01:28] EdwardIII: i'm actually not sure if it's a simple_for_for fields problem or a cocoon issue
[17:01:29] djgraham|yeah: has left #RubyOnRails: ()
[17:02:15] flashpoi_: has joined #RubyOnRails
[17:02:26] htmldrum: has joined #RubyOnRails
[17:02:34] pvertenten: has joined #RubyOnRails
[17:02:46] pvertenten: has left #RubyOnRails: ()
[17:03:30] pedro1: has left #RubyOnRails: ()
[17:03:40] treehug88: has joined #RubyOnRails
[17:04:02] juanca_: has joined #RubyOnRails
[17:05:04] sleungcy: has joined #RubyOnRails
[17:05:23] chipotle: has joined #RubyOnRails
[17:06:16] smathy: has joined #RubyOnRails
[17:07:24] sandstrom: has joined #RubyOnRails
[17:08:20] diegoviola: has joined #RubyOnRails
[17:08:21] jenrzzz: has joined #RubyOnRails
[17:09:16] EdwardIII: does cocoon just not work when you want to do 'edit'?
[17:09:37] manfrin: has joined #RubyOnRails
[17:10:17] FooMunki: has joined #RubyOnRails
[17:11:01] EdwardIII: it saves 'em just fine
[17:11:03] mdw: has joined #RubyOnRails
[17:11:27] EdwardIII: hahaha no it doesn't, stupid!
[17:12:08] anagha_: universa1:i have edited database.yml.But still showing error
[17:12:44] yellow5: has joined #RubyOnRails
[17:12:58] pedro1: has joined #RubyOnRails
[17:13:14] anagha_: this is my database.yml file https://www.irccloud.com/pastebin/RQclenyY/
[17:13:32] pedro1: has left #RubyOnRails: ()
[17:15:47] EdwardIII: hrm how can i get the real instance id or even better real instance for this form when it's in update mode? https://gist.github.com/EdwardIII/e39d3426f2066e648112#file-r-html-erb-L2
[17:16:06] baweaver: has joined #RubyOnRails
[17:16:29] slash_nick: simple fields are not so simple, eh?
[17:16:57] baweaver: has joined #RubyOnRails
[17:16:58] dionysus69: has joined #RubyOnRails
[17:17:27] slash_nick: EdwardIII: I don't get your question...
[17:17:31] 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
[17:17:31] ascarter: has joined #RubyOnRails
[17:17:42] EdwardIII: ok lemme take a step back
[17:17:58] EdwardIII: i want to put a preview image next to an upload box in a nested param getting loaded with cocoon
[17:18:10] EdwardIII: i can do that if i can get the instance
[17:18:13] djbkd: has joined #RubyOnRails
[17:18:34] EdwardIII: ah, you can do f.object, that gets the underlying instance, nice
[17:19:17] slash_nick: Ok, I don't understand... I don't know what you mean by "get the instance"... or why you're using f.object...
[17:19:25] gbgdev: has joined #RubyOnRails
[17:20:47] EdwardIII: slash_nick: this is a more complete example from earlier
[17:22:05] JamieD: has joined #RubyOnRails
[17:23:45] smoitra_: has joined #RubyOnRails
[17:24:32] arup_r: has joined #RubyOnRails
[17:24:37] slash_nick: The workflow I think you're describing: User wants to upload image. Selects upload, browses, chooses file. Now, you want a preview. Mind, nothing has yet been sent to the server. Wouldn't you want to use some javascript to populate a preview?
[17:25:27] pedro1: has joined #RubyOnRails
[17:25:33] Guest45842: has left #RubyOnRails: ()
[17:27:35] claytonzaugg: has joined #RubyOnRails
[17:28:32] trosborn: has joined #RubyOnRails
[17:28:58] User458764: has joined #RubyOnRails
[17:30:02] SteenJobs: are you using any libraries for handling the image uploads?
[17:30:51] pedro1: has left #RubyOnRails: ()
[17:31:11] Macaveli: has joined #RubyOnRails
[17:31:24] mustmodify: has joined #RubyOnRails
[17:32:28] shaman42: has joined #RubyOnRails
[17:32:49] EdwardIII: SteenJobs: yeah i'm new to rails, i just started using paperclip
[17:34:43] yellow5: has joined #RubyOnRails
[17:38:02] EdwardIII: slash_nick: no this is for when you come back an edit a room and it already has a bunch of images
[17:38:14] mustmodify: has left #RubyOnRails: ()
[17:38:26] TvL2386: has joined #RubyOnRails
[17:38:41] EdwardIII: slash_nick: i got it working nicely: https://gist.github.com/EdwardIII/bcfbc09d00bce7b3bcba#file-_image_fields-html-erb-L4-L6
[17:38:49] baweaver: has joined #RubyOnRails
[17:40:15] drale2k: has joined #RubyOnRails
[17:41:05] systemsgotyou: has joined #RubyOnRails
[17:41:24] sandstrom: has joined #RubyOnRails
[17:41:50] chouhoulis: has joined #RubyOnRails
[17:45:58] slash_nick: EdwardIII: nice.. glad you got it working.
[17:46:14] petor: has joined #RubyOnRails
[17:47:31] EdwardIII: slash_nick: thanks!
[17:47:39] EdwardIII: slash_nick: if you think this is a dumb way of doing it, do feel free to say
[17:47:41] mbreedlove: has joined #RubyOnRails
[17:47:53] EdwardIII: or maybe if there a bunch of components that already do stuff like this and i just don't know about them yet
[17:49:20] cryo28: has joined #RubyOnRails
[17:49:54] slash_nick: EdwardIII: i'm not familiar enough with simple_fields to say whether it provides a "better" way... but what you have seems good to me
[17:50:10] RegulationD: has joined #RubyOnRails
[17:50:30] slash_nick: or simple_form, my bad... see what i mean? lol
[17:51:01] pawnbox: has joined #RubyOnRails
[17:51:29] sp1rs: has joined #RubyOnRails
[17:52:15] petor: has joined #RubyOnRails
[17:53:12] SeanLazer: has joined #RubyOnRails
[17:53:18] petor: has joined #RubyOnRails
[17:54:41] emachnic: has joined #RubyOnRails
[17:56:14] pawnbox: has joined #RubyOnRails
[17:56:38] jglover: has joined #RubyOnRails
[17:57:17] DmitryBochkarev: has joined #RubyOnRails
[17:57:54] silverdust: has joined #RubyOnRails
[17:58:03] jglover: I'm trying to implement some statistic analysis as a gem, but I need some ideas for structure. Any of you know of a gem that does some analysis? I want to steal the code structure :P
[17:59:23] trinaldi: has joined #RubyOnRails
[17:59:25] gmas: has joined #RubyOnRails
[18:00:52] slash_nick: jglover: good start: https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=statistics
[18:01:57] netzfisch: has joined #RubyOnRails
[18:02:26] _bogus_: has joined #RubyOnRails
[18:03:48] mclee: has joined #RubyOnRails
[18:07:22] _bogus_: hi there, can I have some help on certificates please? Im trying for days to configure the ActionMailer on production server without success.. already tried the server's sendmail, gmail, and now mailjet (using a gem). Im getting this error: OpenSSL::SSL::SSLError (hostname "in-v3.mailjet.com" does not match the server certificate). With gmail I got this too, but I skipped openssl verify (then I couldnt access the smtp for being an insecur
[18:07:22] _bogus_: e app). Now I cant find ways to skip this using this gem for mailjet... sorry, im totally unfamiliar with ssl certificates, isnt there a simple way to generate this?
[18:08:00] DoubleMalt: has joined #RubyOnRails
[18:08:12] mdw: has joined #RubyOnRails
[18:09:52] TvL2386: has joined #RubyOnRails
[18:10:17] pawnbox: has joined #RubyOnRails
[18:11:01] baweaver: has joined #RubyOnRails
[18:11:04] universa1: has joined #RubyOnRails
[18:12:08] yellow5: has joined #RubyOnRails
[18:12:09] ascarter: has joined #RubyOnRails
[18:12:37] epochwolf: _bogus_: by default OpenSSL doens't have any Cretification Authorities loaded.
[18:13:26] sonofdirt: has joined #RubyOnRails
[18:13:29] epochwolf: You'll need to set the SSL_CERT_FILE environmental variable correctly for your operating system.
[18:13:52] fox_mulder_cp: has joined #RubyOnRails
[18:14:36] epochwolf: or SSL_CERT_DIR if you have a directory of them.
[18:14:55] _bogus_: i dont have any of them i guess... where should I get those certificates?
[18:15:34] epochwolf: I'm not exactly sure. I'm coming across multiple answers.
[18:15:39] DoctorMonocular: has joined #RubyOnRails
[18:15:57] cac: has joined #RubyOnRails
[18:16:15] _bogus_: I was looking about creating self-signed certificates but I guess this isnt the case..
[18:16:33] tubbo: _bogus_: what OS are you running?
[18:16:45] tubbo: pretty sure ubuntu has a script for updating the index of CSRs
[18:16:47] epochwolf: http://serverfault.com/questions/62496/ssl-certificate-location-on-unix-linux
[18:17:14] epochwolf: From that, CentOS should have a single file named /etc/pki/tls/certs/ca-bundle.crt
[18:17:55] arup_r: has joined #RubyOnRails
[18:18:03] _bogus_: right... i have this file
[18:18:27] epochwolf: _bogus_: then set SSL_CERT_FILE to /etc/pki/tls/certs/ca-bundle.crt in the environment and try again.
[18:18:31] meoblast001: has joined #RubyOnRails
[18:19:02] epochwolf: Personally, I'd set it system wide but you could just set it for the rails application.
[18:19:23] epochwolf: If you're using passenger, you can add environmental variables to the environment for the app.
[18:19:41] tubbo: alternatively, you may need to just update it
[18:19:52] tubbo: like maybe it's there, but doesn't have an entry for your host
[18:20:19] epochwolf: tubbo: my (limited) research says OpenSSL isn't configured with any CAs by default.
[18:20:20] merida: has joined #RubyOnRails
[18:20:29] mdw7: has joined #RubyOnRails
[18:20:37] epochwolf: Which is fucking dumb in my opinion.
[18:20:40] tubbo: epochwolf: file could be there, just empty
[18:20:50] tubbo: but yeah i think _OpenSSL_ doesn't come with CAs by default, but most OSes do
[18:21:05] epochwolf: tubbo: if only there was a way to open files and see their contents.
[18:21:21] postmodern: has joined #RubyOnRails
[18:21:21] jottr: Hi all. So I have a slow running db query. I've run explain() on it, and although I have an index under 'possible_keys', it seems that index is not used. What could be the reason for this? https://git.io/va8Pq
[18:21:33] postmodern: is there a tool that can auto-generate rails migrations from an existing db schema?
[18:22:19] epochwolf: jottr: which database?
[18:22:25] jottr: epochwolf: mysql
[18:22:30] _bogus_: the file is there , there's plenty of keys on it.. but im not sure if there's keys for gmail or mailjet (I suppose I need a separate key for each of them)
[18:22:45] tbuehlmann: postmodern, shouldn't `bin/rake db:schema:load` be enough?
[18:23:33] epochwolf: jottr: it's using the index.
[18:23:54] ascarter: has joined #RubyOnRails
[18:23:59] wldcordeiro: has joined #RubyOnRails
[18:24:09] epochwolf: oh, wait, misread.
[18:25:55] ascarter_: has joined #RubyOnRails
[18:25:57] epochwolf: jottr: I'm guessing it decided since it doing SELECT *, it was faster to do a full table scan instead of hitting the index.
[18:26:35] epochwolf: jottr: what happens when you limit the query to 10 users?
[18:26:38] momomomomo: has joined #RubyOnRails
[18:27:13] jottr: epochwolf: Oh, then it's using the index.
[18:27:20] epochwolf: jottr: there you go.
[18:27:27] jottr: epochwolf: neat. thx
[18:27:39] epochwolf: MySQL will skip indices if it thinks a full scan is faster.
[18:27:51] mrgreenfur: anyone know if its possible to get the current server port out of a rails varaibel?
[18:27:58] flashpoint9: has joined #RubyOnRails
[18:28:23] epochwolf: mrgreenfur: what do you mean "current server port"?
[18:28:35] pramsky: has joined #RubyOnRails
[18:28:51] mrgreenfur: epochwolf: I’m trying to find the port that the app runs on in testing. Curious if it’s stored somewhere like Rails.application.port or something in there.
[18:29:07] _bogus_: epochwolf, sorry, I tried to set the var system wide (creating a file /etc/profile.d/ssl_cert.sh with SSL_CERT_FILE=/path/file.crt), but I'm getting the same error still
[18:29:41] _bogus_: is that the case there's no entry for the hosts im trying to access? Or did I do something wrong
[18:30:21] epochwolf: _bogus_: did you restart the bash session you're running the app from?
[18:30:35] epochwolf: Or restart the server that contains the rails app?
[18:30:49] _bogus_: i did restart my bash session, and passenger also..
[18:30:55] epochwolf: okay... hmmm.
[18:31:21] epochwolf: _bogus_: go ahead and use the passenger configuration to set that variable. Passenger may have removed it.
[18:32:11] epochwolf: mrgreenfur: the port capybara is using?
[18:32:12] _bogus_: strangely, when i do 'env' my var doesnt appears in the list
[18:32:43] mrgreenfur: epochwolf: i’m just using rspec-rails now
[18:33:19] epochwolf: _bogus_: then it wasn't being picked up from the global enviroment... My linux is a little rusty. Personally, I'd reboot the entire server and see what happens but don't know if that's an option. :)
[18:33:35] epochwolf: Also, I'm a debian/ubuntu guy.
[18:34:38] epochwolf: mrgreenfur: you're going to love this: http://stackoverflow.com/questions/6807268/rails-port-of-testing-environment
[18:34:58] mrgreenfur: epochwolf: yah saw that one :) seems…. hard.
[18:35:06] mrgreenfur: i guess that’s what i gotta do then so be it!
[18:35:08] epochwolf: Basically, the second answer recommends using lsof from a shell to grab the port.
[18:35:16] epochwolf: Hacky but should work.
[18:35:23] mrgreenfur: at least it’s just for test cases
[18:35:26] mrgreenfur: thanks for the help!
[18:36:04] arup_r: has joined #RubyOnRails
[18:36:22] epochwolf: mrgreenfur: it bugs me... I know there's a way to get it from the ruby process but I don't know how XD
[18:36:37] pawnbox: has joined #RubyOnRails
[18:37:00] epochwolf: Not without whipping out ObjectSpace and scanning every object in memory for a socket :D
[18:37:13] mrgreenfur: epochwolf: maybe somehwere inside rack? I see ti has port as an argument
[18:37:15] _bogus_: epochwolf, yes, i cant restart the server.. I did added export to that file, the var is showing up now with 'env | grep SSL' but only for the normal user and deploy user, not for root
[18:37:33] epochwolf: _bogus_: why are you using root?
[18:37:52] _bogus_: epochwolf, to check this var only...
[18:38:04] _bogus_: not sure but I thought it should be visible for root too..
[18:38:20] pawnbox: has joined #RubyOnRails
[18:38:31] epochwolf: _bogus_: I'd be very, very surpised if the root user used the global configuration for the shell.
[18:38:49] epochwolf: I assume you logged in as root directly.
[18:39:11] _bogus_: yeah, just to check this var.. but what you said makes sense..
[18:41:01] joshkovach: has joined #RubyOnRails
[18:42:21] _bogus_: not sure what to do now...
[18:43:30] eyeamaye: has joined #RubyOnRails
[18:44:17] mrgreenfur: epochwolf: i dont think rails is even starting a webserver in test
[18:44:38] epochwolf: mrgreenfur: It normally doesn't.
[18:45:05] mrgreenfur: hunting fo ra ghost:)
[18:45:13] epochwolf: That's why I thought you were using capybara :P
[18:45:25] mrgreenfur: epochwolf: soundsl ike maybe i should be...
[18:45:50] epochwolf: mrgreenfur: depends what you'd looking to do. Like the rodent, capybara is tempermental.
[18:46:09] emachnic: has joined #RubyOnRails
[18:46:09] jottr_: has joined #RubyOnRails
[18:46:14] mrgreenfur: i am receiving a webhook and processing it and making a request to my public api
[18:46:26] mrgreenfur: in test it all works, but making the request to itself doesn’t becaues no server is running...
[18:46:27] srinidhi: has joined #RubyOnRails
[18:46:32] flashpoint9: has joined #RubyOnRails
[18:48:05] epochwolf: mrgreenfur: I recommend mocking the request. Tests shouldn't call external services or recieve calls from external services.
[18:48:14] mrgreenfur: i guess i’ll test the api endpoint separately and test that this is making a well-formed request
[18:48:39] mrgreenfur: epochwolf: yeah, makes sense.
[18:49:29] intrigueD: has joined #RubyOnRails
[18:49:31] Pazician: has joined #RubyOnRails
[18:51:13] YourManCJ: has joined #RubyOnRails
[18:51:42] YourManCJ: what is the best pratice for securing a web based crud if I don't need a user database?
[18:52:29] epochwolf: YourManCJ: who needs access to the app?
[18:52:44] epochwolf: basic auth over ssl
[18:52:57] YourManCJ: and the public but they dont need to be logged in.
[18:53:12] YourManCJ: can you elaborate?
[18:53:16] petor: has joined #RubyOnRails
[18:53:26] epochwolf: http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Basic.html
[18:53:40] baweaver: has joined #RubyOnRails
[18:54:12] epochwolf: YourManCJ: make sure the app is only accessed over SSL, basic auth does not use encryption.
[18:54:34] YourManCJ: gotcha, thank you very much
[18:54:39] jottr: has joined #RubyOnRails
[18:54:47] epochwolf: You're welcome. :)
[18:54:51] dadleyy: has joined #RubyOnRails
[18:55:06] Surt_Q: has joined #RubyOnRails
[18:59:47] adre: has joined #RubyOnRails
[19:01:44] YourManCJ: so how would I be able to submit the password?
[19:02:39] YourManCJ: would I make a form and tie that to the controller or something? still kinda new to rails
[19:04:13] epochwolf: YourManCJ: your browser will automatically handle that.
[19:04:47] YourManCJ: ok but where would I supply the password to the browser?
[19:04:50] uglybandersnatch: has joined #RubyOnRails
[19:05:25] edwinvdgraaf: has joined #RubyOnRails
[19:05:30] epochwolf: YourManCJ: the browser will pop up a dialog box.
[19:06:37] YourManCJ: alight thanks
[19:06:37] banister: has joined #RubyOnRails
[19:06:52] epochwolf: You'll also want to read this: http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication
[19:07:20] epochwolf: There is no simple way to log someone out from basic auth. The browser will cache the username and password indefinitely.
[19:08:13] User458764: has joined #RubyOnRails
[19:08:32] epochwolf: Correction, chrome only caches them while it is running.
[19:09:19] tubbo: interesting
[19:09:22] jenrzzz: has joined #RubyOnRails
[19:09:37] tubbo: so if i log in with http basic auth to my api as an admin user, will it then use the same account when trying to log in to the web interface?
[19:09:40] tubbo: like will the session data be around?
[19:10:01] epochwolf: tubbo: I'd have to look that up. I think it's based on the domain.
[19:10:13] tubbo: that's what i thought too
[19:10:34] YourManCJ: so would it be all around better to just immpliment a standard user model with permissions but only have one user?
[19:10:40] merqlove: has joined #RubyOnRails
[19:11:06] YourManCJ: or not really better but worth it
[19:11:23] banister: has joined #RubyOnRails
[19:11:30] ascarter: has joined #RubyOnRails
[19:11:42] epochwolf: YourManCJ: you're spending more time talking about it then it would take to implement either option. :P
[19:11:55] YourManCJ: true, thanks
[19:11:59] Felix444: has joined #RubyOnRails
[19:12:09] epochwolf: Honestly, you could just use a hardcoded username and password in the controller and skip the database.
[19:12:36] epochwolf: If you wanted it to act like a traditional login.
[19:14:29] epochwolf: YourManCJ: if you use a hardcoded password use http://apidock.com/rails/ActiveSupport/SecurityUtils/secure_compare/class to check the login form.
[19:14:48] epochwolf: oh, wait. Nevermind.
[19:15:05] epochwolf: You'd need to hash both and then compared.
[19:15:22] epochwolf: Security is hard. :(
[19:16:48] tubbo: you mean has_secure_password don't you? :)
[19:17:01] tubbo: but realistically if you're putting the password in a file it doesn't need to be hashed
[19:17:07] tubbo: if someone can read that file on disk you have bigger problems :)
[19:17:22] epochwolf: tubbo: no, I'm was talking about hard coding a password in the controller.
[19:17:24] pawnbox: has joined #RubyOnRails
[19:17:32] tubbo: yeah that's what i mean
[19:17:55] tubbo: ACTION is more inclined to include that stuff as env vars
[19:18:05] rubyonrailed: has joined #RubyOnRails
[19:18:10] epochwolf: To securely compare passwords, both the input and the password need to be hashed.
[19:18:26] epochwolf: Every attempt to authenicate the password needs to take the same amount of time.
[19:18:41] epochwolf: Otherwise you can figure out the length of the password.
[19:19:07] emachnic: has joined #RubyOnRails
[19:19:08] KnownSyntax: has joined #RubyOnRails
[19:19:11] KnownSyntax: has joined #RubyOnRails
[19:21:08] netzfisch: has joined #RubyOnRails
[19:22:29] baweaver: has joined #RubyOnRails
[19:24:48] krz: has joined #RubyOnRails
[19:25:27] rubyonrailed: delayed_job seems to be not very accurate with seconds. I'm telling it to run 1.25 seconds from now, but it seems to be all over the place when running the job. Does anyone know a better way to run this in 1.25 seconds without using sleep()? That could cause issues. https://gist.github.com/JasonMannon/69947d9756cfe62e1b2f
[19:26:14] epochwolf: rubyonrailed: delayed job is supposed to be asynchronous, it's not guarrented to operate at a specific time.
[19:26:15] reaVer: has joined #RubyOnRails
[19:26:56] intrigueD: has joined #RubyOnRails
[19:27:07] akshat: has joined #RubyOnRails
[19:27:19] rubyonrailed: epochwolf: Do you know something else I could use to achieve my goal?
[19:28:09] emachnic_: has joined #RubyOnRails
[19:28:41] epochwolf: rubyonrailed: why do you need to delay the message?
[19:30:09] rubyonrailed: epochwolf: I want a more humanized interaction between a human and a bot. If I delay the message for a certain amount of time, the human user will see that the bot is typing for that amount of time. Not just a typing notifictaion that appears and disappears
[19:30:44] epochwolf: rubyonrailed: is there any reason you can't just sleep for 1.25 seconds?
[19:31:20] cnk: has joined #RubyOnRails
[19:31:54] _bogus_: please im trying to override this method https://github.com/mailjet/mailjet-gem/blob/333577a4f950690a069e46453359d6d9e07002fd/lib/mailjet/connection.rb what am I doing wrong? https://gist.github.com/andreycwb/19ddbe580fe47814b10f
[19:31:55] rubyonrailed: epochwolf: It could cause issues with multiple users using the app at the same time.
[19:32:05] Pazician: has joined #RubyOnRails
[19:33:51] emachnic: has joined #RubyOnRails
[19:34:21] frozenfoxx: has left #RubyOnRails: ()
[19:35:37] DoctorMonocular: has joined #RubyOnRails
[19:35:55] epochwolf: rubyonrailed: okay, so handle that on the frontend. There's an nginx module that can delay requests: https://github.com/openresty/echo-nginx-module#echo_sleep
[19:35:59] trosborn: has joined #RubyOnRails
[19:37:50] fox_mulder_cp: hi. i have a JSON.generate function from my hashes. api, which i call says, that key false must be without dashes
[19:38:01] fox_mulder_cp: {disabled: false}
[19:38:09] fox_mulder_cp: how to generate it?
[19:42:37] ascarter: has joined #RubyOnRails
[19:43:19] reaVer: has joined #RubyOnRails
[19:45:00] emachnic: has joined #RubyOnRails
[19:49:18] zave: has joined #RubyOnRails
[19:49:18] Guest34101: has joined #RubyOnRails
[19:49:31] _bogus_: is that possible that Rails is not reading system's certificates?
[19:49:54] pvertenten: has joined #RubyOnRails
[19:50:50] sonofdirt: has joined #RubyOnRails
[19:50:58] ascarter: has joined #RubyOnRails
[19:51:15] cnk: _bogus_: context? I wouldn't expect rails s to read certs. Certs are genearlly configured in your web server, not at the app server
[19:52:08] Silox|: has joined #RubyOnRails
[19:53:14] _bogus_: cnk im not sure but im going nuts trying to config this... im trying to configure the smtp for production server and whenever I try something i get those ssl error (certification for host unknown). I tried to disable openssl but cant connect to gmail. Tried mailjet using a gem but cant disable openssl verify
[19:53:39] fox_mulder_cp: ++ for cnk . all world use nginx as frontend proxy with static files caching
[19:53:46] fox_mulder_cp: and ssl offload point
[19:54:14] AntiSpamMeta: has joined #RubyOnRails
[19:54:15] fox_mulder_cp: or prof devices, such as cicsco balancers
[19:54:19] cnk: _bogus_: any decent third party mail host will want you to use ssl to protect whatever secret is authenticating you
[19:54:27] zave: has joined #RubyOnRails
[19:54:29] _bogus_: I already tried to set environment variable $SSL_CERT_FILE , tried to override gem's method not to verify ssl, tried to copy the ca-bundle.crt to lib/ and create an initializer to load it (as ive found on google)
[19:55:08] cnk: I can take a look and see if I see anything obvious
[19:55:14] cnk: what OS is your server?
[19:55:25] cnk: and are you using a commercial cert? or self signed?
[19:56:10] YourManCJ: has left #RubyOnRails: ()
[19:56:18] _bogus_: I believe its a commercial cert.. its a hosting server, there's a yum package ca-certificates (if im not wrong) which is installed too
[19:56:35] fox_mulder_cp: _bogus_: use nginx as front, anyway, app server on front of - bad idea
[19:57:00] zave: has joined #RubyOnRails
[19:57:14] cnk: the yum package will be some stock root certs (the public part of certs yours will connect up to)
[19:57:31] cnk: Does your cert also require an intermediate certificate?
[19:57:39] drbayer: has joined #RubyOnRails
[19:57:49] cnk: all the ones we have actually need a host cert + an intermediate cert
[19:58:13] _bogus_: despite my rails errors, I can connect to gmail smtp using openssl s_client .. (just cant authenticate because of gmail's policy about insecure apps)
[19:58:17] cnk: and is your configuration of the certs working for the apache or nginx part?
[19:58:29] roshanavand: has joined #RubyOnRails
[19:58:54] d0nn1e: has joined #RubyOnRails
[19:59:00] fox_mulder_cp: _bogus_: i use postfix presetted for sending all mail via gmail
[19:59:01] yxejamir: has joined #RubyOnRails
[19:59:01] yxejamir: has joined #RubyOnRails
[19:59:03] cnk: In general you will find better docs and error messages for configuring the cert + ssl on your web server
[19:59:04] _bogus_: cnk, sorry im not sure about this intermediate certificate... im using apache, there's other sites hosted on this machine (not sure if they use smtp but they're working fine as long as I know)
[19:59:09] fox_mulder_cp: with my preferred account
[19:59:51] cnk: And those other sites share a certificate with the one you are trying to use?
[19:59:59] cnk: Are these Subject Alternative Name certs?
[20:01:43] _bogus_: im not very sure... they're wordpress projects, the machine has a cpanel (but im not using it). also, doing a find i see those wp projects has a separate certificate under project/wp-includes/certificates/ca-bundle.crt
[20:02:10] zave: has joined #RubyOnRails
[20:03:18] cnk: I am pretty sure you can configure OpenSSL to read all the certificates in a directory, not just the certs in one file.
[20:03:26] sandstrom: has joined #RubyOnRails
[20:03:50] cnk: but you may have to use symlinks or put your cert in the same directory as the working certs
[20:03:52] _bogus_: cnk, if I can access the smtp server using openssl s_client... does that means the certificates are loaded for openssl ?
[20:03:58] norc-2: has joined #RubyOnRails
[20:04:20] cnk: Sound promising but I frankly have no idea
[20:05:11] _bogus_: the server has also a sendmail which is working in command line, but when I try to use it inside rails I get a 'temporary server error'..
[20:06:20] cnk: Sorry, I am afraid I don't know enough about email to be a lot of help
[20:06:50] jenrzzz: has joined #RubyOnRails
[20:07:30] mrgreenfur: Anyonw know how to check if a job has been enqueue with activejob?
[20:07:36] fox_mulder_cp: use postfix for sending email via google
[20:07:40] mrgreenfur: i’m using sidekiq and rspec, via https://github.com/gocardless/rspec-activejob
[20:08:06] sonofdirt: has joined #RubyOnRails
[20:08:08] _bogus_: cnk, thanks anyway
[20:08:15] _bogus_: fox_mulder_cp, thanks ill google that
[20:08:36] ur5us: has joined #RubyOnRails
[20:08:36] mrgreenfur: i guess i can do it manually via ActiveJob::Base.queue_adapter.enqueued_jobs
[20:09:25] enkristoffer: has joined #RubyOnRails
[20:10:48] futilegames: has joined #RubyOnRails
[20:11:14] fox_mulder_cp: postfix/exim easy to configure for relaying mail to gmail
[20:11:21] moeabdol: has joined #RubyOnRails
[20:12:54] cnk: _bogus_: double check your rpms. I would not be at all surprised that what you are finding at /usr/bin/sendmail isn't postfix's script to provide sendmail compatibility
[20:13:48] ascarter: has joined #RubyOnRails
[20:20:51] bePolite: has joined #RubyOnRails
[20:24:06] Uber|Dragon: has joined #RubyOnRails
[20:25:04] wldcordeiro: has joined #RubyOnRails
[20:26:05] askhat: has joined #RubyOnRails
[20:26:17] emachnic: has joined #RubyOnRails
[20:27:06] reber: has joined #RubyOnRails
[20:28:26] JamieD: has joined #RubyOnRails
[20:29:20] baweaver: has joined #RubyOnRails
[20:30:29] srinidhi: has joined #RubyOnRails
[20:33:22] PedramT: has joined #RubyOnRails
[20:34:28] brg: has joined #RubyOnRails
[20:36:47] Cohedrin: has joined #RubyOnRails
[20:37:59] Cohedrin: has joined #RubyOnRails
[20:38:39] flashpoint9: has joined #RubyOnRails
[20:39:35] jenrzzz: has joined #RubyOnRails
[20:43:21] dopie: has joined #RubyOnRails
[20:45:03] dnewkerk: has joined #RubyOnRails
[20:46:41] momomomomo: has joined #RubyOnRails
[20:46:44] claytonzaugg: has joined #RubyOnRails
[20:46:50] nettoweb: has joined #RubyOnRails
[20:49:51] bePolite: has joined #RubyOnRails
[20:49:51] bePolite: has joined #RubyOnRails
[20:50:31] qbar_: has joined #RubyOnRails
[20:51:31] RegulationD: has joined #RubyOnRails
[20:53:52] _bogus_: has joined #RubyOnRails
[20:54:28] lemur: has joined #RubyOnRails
[20:56:33] qbar_: I am using a 3rd party library that I put in vendor/assets/components. The problem I am having is with the asset pipeline and images referenced in the css.
[20:56:33] htmldrum: has joined #RubyOnRails
[20:57:17] Jasaka: has joined #RubyOnRails
[20:57:38] qbar_: I have to add corresponding lines to my application.css.scss file with updated paths for rails to find the images
[20:57:57] qbar_: How can I avoid doing that?
[20:58:28] jkahn: has joined #RubyOnRails
[20:58:45] arBmind: has joined #RubyOnRails
[21:00:24] n008f4g_: has joined #RubyOnRails
[21:03:11] Pazician: has joined #RubyOnRails
[21:06:00] tubbo: qbar_: if the lib is on bower, you could use rails-assets.org to install it rather than maintaining it in your repo.
[21:06:25] tubbo: qbar_: otherwise, it's probably best to move the files to vendor/assets/javascripts, vendor/assets/stylesheets, and vendor/assets/images...rather than keeping them in components/
[21:07:13] arup_r: qbar_: http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
[21:07:25] arup_r: read from there, answer is there
[21:07:55] arup_r: ok, i am late to answer.. :)
[21:12:54] gingray: has joined #RubyOnRails
[21:13:10] qbar_: I read on there that you have to rewrite third party code to use the asset helpers
[21:13:36] ascarter: has joined #RubyOnRails
[21:13:49] qbar_: I'm testing that now
[21:17:10] SeanLazer: has joined #RubyOnRails
[21:17:37] chipotle: has joined #RubyOnRails
[21:19:38] naftilos76: has joined #RubyOnRails
[21:20:02] choke: has joined #RubyOnRails
[21:21:03] FooMunki: has joined #RubyOnRails
[21:22:38] superlou: has joined #RubyOnRails
[21:23:00] gbgdev: has joined #RubyOnRails
[21:23:02] naftilos76: Hi everyone, i am getting this strange error "ActionController::RoutingError (No route matches [GET] "/lists/worker-html.js"):" while using ACE js editor . Everything works fine though. Does the error mean anything to you? I do not have any entries in the routes.rb . I have no idea why i am getting this error. Should i be entering anything regarding that js file in routes.rb ? The file worker-html.js is in the assets dir by the way.
[21:23:48] fryguy: naftilos76: that file needs to end up in public, either manually or via the asset pipeline
[21:24:25] naftilos76: fryguy, it is already in ../assets/ace dir
[21:24:35] naftilos76: as well as other js files
[21:24:41] fryguy: naftilos76: public, not assets
[21:24:56] naftilos76: ok got it let me try that
[21:26:23] pvertenten: has joined #RubyOnRails
[21:26:39] naftilos76: fryguy, it is not working. I just moved it in public dir . I get the same error
[21:26:51] fryguy: naftilos76: what webserver are you using to serve content from public
[21:27:11] naftilos76: webrick locally
[21:27:44] fryguy: naftilos76: is it configured to serve static content? it usually isn't by default
[21:28:10] Radar: it is in dev
[21:28:26] naftilos76: ok i fixed it by creating a dir 'lists' in public and dropped the js file in there
[21:29:12] mhoungbo: has joined #RubyOnRails
[21:29:57] nettoweb: has joined #RubyOnRails
[21:31:11] baweaver: has joined #RubyOnRails
[21:31:14] naftilos76: fryguy, i moved the dir 'lists' inside the dir /assets/javascript and it still works
[21:32:03] fryguy: it won't once you move into production
[21:35:08] naftilos76: fryguy, yea, i remember something about the public dir when it comes to production . I will have a look when the time comes! Thanks
[21:36:18] pawnbox: has joined #RubyOnRails
[21:37:08] qbar_: So I tried reading through the asset pipeline page on the guide, multiple times, and I still can't figure it out
[21:37:29] qbar_: was hoping to get more help here than to read the guide.
[21:38:14] qbar_: The guide says, Keep in mind that third party code with references to other files also processed by the asset Pipeline (images, stylesheets, etc.), will need to be rewritten to use helpers like asset_path.
[21:38:14] Radar: qbar_: You will need to update the paths in your assets to refer to the assets in the pipeline
[21:38:32] Radar: qbar_: So if it's image-url('/images/foo/thing.jpg') then that should be image-url('foo/thing.jpg')
[21:39:53] qbar_: so every line in the css that references in image needs to be updated, not just to use the helper, but the path as well?
[21:40:06] mostlybadfly: has joined #RubyOnRails
[21:40:23] uglybandersnatch: has joined #RubyOnRails
[21:40:26] qbar_: ugh, that sounds unpleasant
[21:42:32] qbar_: note to self, never update the 3rd party lib
[21:42:44] DoctorMonocular: has joined #RubyOnRails
[21:42:54] Coldblackice: has joined #RubyOnRails
[21:43:13] beauby: has joined #RubyOnRails
[21:43:28] Radar: Which 3rd party lib is it?
[21:43:32] Radar: Maybe there's a RubyGem for it?
[21:43:36] qbar_: Doesn't that make things like trying to add bootstrap via bower pretty much a nightmare?
[21:44:03] Radar: Is it my turn to ask questions and get answers now?
[21:44:09] qbar_: unitegallery
[21:44:09] Radar: Which 3rd party lib is it?
[21:44:11] patrick99e99: has joined #RubyOnRails
[21:44:14] Radar: thank you.
[21:44:33] qbar_: http://unitegallery.net/
[21:44:34] beauby: has joined #RubyOnRails
[21:44:37] Radar: Doesn't look like there is a RubyGem for it.
[21:45:34] patrick99e99: hey everyone.. I am seeing something super weird that I can't seem to figure out.. I've got a model with a belongs_to association declared, and when I do a where clause MyModel.where(:id => 12345) .. I see the belongs_to association loading also, which is giving me an N+1... Is there any reason that a belongs_to would get accessed during a where clause?
[21:46:04] axilaris: has joined #RubyOnRails
[21:46:46] patrick99e99: I don't have an after_initialize callback or anything, so I just don't get how this happens..
[21:46:58] boontdustie: has joined #RubyOnRails
[21:47:11] cnk: patrick99e99: probably not - but do you use anything from the belongs_to object in your view
[21:47:25] cnk: that is often where unexpected n+1s come from
[21:48:07] patrick99e99: cnk, there is no view. I am in the console saying MyModel.where(:id => 12345), and I see the load for MyModel, and then I see another load for the belongs_to
[21:48:28] patrick99e99: I have commented out all code in both the model and the belongs_to's model, and this still happens..
[21:49:31] beauby: What are some best practices when creating a Rails flavor of a gem (extending some of that gem's methods to handle rails-specific stuff, such as AC::Parameters, or adding rails-specific methods)? Any good reads on the matter?
[21:49:34] cnk: use a fresh console - not sure yours is picking up that you removed code from those models
[21:49:56] patrick99e99: cnk, I tried that already...
[21:50:49] patrick99e99: cnk the only thing I can think of is this belong_to has a class name specified.. belongs_to :item_type, :class_name => External::ItemType
[21:51:16] patrick99e99: because I also have belongs_to :user, without a class name specified and there's no loading of users during a where...
[21:52:27] patrick99e99: but that really makes no sesne
[21:53:12] nerium: has joined #RubyOnRails
[21:53:47] cnk: no that isn't it
[21:54:23] cnk: No references to the item_type in methods on the owning class?
[21:55:38] qbar_: radar, I'm trying to use bower to include my package so that it isn't in source control.
[21:55:58] qbar_: Where should I put the css changes if I can't edit the files directly?
[21:56:19] chipotle: has joined #RubyOnRails
[21:57:03] cnk: in a css file that is included after the base one
[21:57:17] patrick99e99: wow... cnk ok... apparently it was from irbtools which does some stuff to render a fancy table in the console.
[21:57:20] GreatDanton: has joined #RubyOnRails
[21:57:24] patrick99e99: so... nevermind!
[21:57:59] cnk: good - because your instinct that that shouldn't happen was correct
[21:58:03] moeabdol1: has joined #RubyOnRails
[21:58:15] blackmesa: has joined #RubyOnRails
[22:01:07] mdw: has joined #RubyOnRails
[22:01:46] emachnic: has joined #RubyOnRails
[22:01:54] baweaver: has joined #RubyOnRails
[22:02:27] qbar_: Thanks for the help
[22:04:27] dukedave__: has joined #RubyOnRails
[22:05:22] DukeDave: has joined #RubyOnRails
[22:06:29] flappynerd: has joined #RubyOnRails
[22:06:44] flappynerd: how much support does rails have for postgres jsonb?
[22:07:02] flappynerd: i.e. I'm considering possibly wanting to use a jsonb column instead of e.g. serialize: JSON
[22:07:21] flappynerd: wondering how much/how well that might be supported (if at all) and or where to look (documentation wise) to find out
[22:07:51] RTG`: patrick99e99: if all else had failed, there are ways to add source-location of queries to the logging
[22:10:34] Radar: flappynerd: t.jsonb :your_field_name goes here
[22:10:37] rtom: has joined #RubyOnRails
[22:10:42] Radar: flappynerd: Where t is the t object you use in migrations
[22:10:50] Devalo: has joined #RubyOnRails
[22:10:53] flappynerd: Radar, ah nice, ok thanks I'll play with that
[22:16:16] pawnbox: has joined #RubyOnRails
[22:17:22] emachnic: has joined #RubyOnRails
[22:17:53] baweaver: has joined #RubyOnRails
[22:25:34] Felix444: has joined #RubyOnRails
[22:26:03] juanca_: has joined #RubyOnRails
[22:27:32] axilaris: hi, can someone guide me in getting my namespace example code working ? http://stackoverflow.com/questions/35989681/admin-management-user-devise-routing-ruby-on-rails-example
[22:27:46] intrigueD: has joined #RubyOnRails
[22:27:53] axilaris: created a simple sample code for this https://github.com/axilaris/admin_user_devise_articles
[22:27:56] SteenJobs: has joined #RubyOnRails
[22:28:42] johns2cb: has joined #RubyOnRails
[22:29:16] drbayer: has joined #RubyOnRails
[22:29:26] Guest683: has joined #RubyOnRails
[22:29:58] petor: has joined #RubyOnRails
[22:29:59] djbkd: has joined #RubyOnRails
[22:31:25] ashleyw: has joined #RubyOnRails
[22:31:48] Guest683: has joined #RubyOnRails
[22:31:58] Radar: axilaris: Where is Admin::ArticlesController?
[22:32:38] Radar: Please make sure to link to the right branch
[22:32:39] Radar: https://github.com/axilaris/admin_user_devise_articles/tree/test_namespace_branch
[22:32:49] axilaris: Radar: thats one thing im not sure where to put https://github.com/axilaris/admin_user_devise_articles/blob/test_namespace_branch/app/controllers/articles_admin_controller.rb
[22:33:02] axilaris: i wanted to put in here but not sure how to define
[22:33:09] Radar: Why is that not at app/controllers/admin/articles_controller.rb?
[22:33:35] axilaris: should i define like this ?
[22:33:35] axilaris: class Admin < ArticlesController
[22:33:35] Radar: And defined like https://gist.github.com/radar/bfceba37dde16bd91bd4
[22:34:20] Radar: Please refer to the "Generating a namespaced controller" section in Chapter 7 of Rails 4 in Action if you have any more questions.
[22:35:57] emachnic: has joined #RubyOnRails
[22:38:47] axilaris: https://www.manning.com/books/rails-4-in-action this book i guess
[22:39:15] htmldrum: has joined #RubyOnRails
[22:39:55] guest56: has joined #RubyOnRails
[22:40:42] guest56: has joined #RubyOnRails
[22:42:01] SeanLazer: has joined #RubyOnRails
[22:43:07] roshanavand: has joined #RubyOnRails
[22:43:12] guest56: has joined #RubyOnRails
[22:46:19] pawnbox: has joined #RubyOnRails
[22:46:43] axl__: has joined #RubyOnRails
[22:46:43] digitalcakes: has joined #RubyOnRails
[22:46:56] postmodern: has left #RubyOnRails: ("Leaving")
[22:47:00] jottr: has joined #RubyOnRails
[22:48:51] bePolite: has joined #RubyOnRails
[22:50:08] axilaris: trying to find an alternative free resource for Namespaces
[22:50:22] blackhuey: has joined #RubyOnRails
[22:50:34] axilaris: stumbled on this "Admin is not a module"
[22:50:52] axilaris: trying to scour github for namespace example
[22:51:23] axilaris: trying to learn from example
[22:52:04] eljimmy: has joined #RubyOnRails
[22:53:46] fox_mulder_cp: can anybody help me, plz. i have a JSON.generated object, and it must be send by http patch method to api server
[22:54:00] fox_mulder_cp: now have error 'end of file reached'
[22:54:11] queequeg1: has joined #RubyOnRails
[22:54:16] fox_mulder_cp: when try to use req = Net::HTTP::Patch.new(uri)
[22:54:43] one_zero: has joined #RubyOnRails
[22:55:50] axl__: has joined #RubyOnRails
[22:56:35] juanca_: has joined #RubyOnRails
[22:57:08] greengriminal: has joined #RubyOnRails
[22:57:11] jottr_: has joined #RubyOnRails
[22:57:14] lemur: has joined #RubyOnRails
[22:59:09] uglybandersnatch: has joined #RubyOnRails
[22:59:39] roshanavand: has joined #RubyOnRails
[22:59:43] greengriminal: Hey all, if i want to skip authenticity token I should only have to add: skip_before_action :verify_authenticity_token, only: [:action1 :action2]
[23:00:19] SteenJobs: has left #RubyOnRails: ()
[23:00:30] SteenJobs: has joined #RubyOnRails
[23:00:30] greengriminal: in addition if the request is coming through as XML or JSON will this matter?
[23:00:43] workmad3: greengriminal: !try
[23:00:43] helpa: greengriminal: Why don't you try it and find out for yourself?
[23:01:04] greengriminal: workmad3, I am reading the docs: Reading the docs here: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html
[23:01:22] greengriminal: and i can't exactly try myself as its an external API that is making the request to my api.
[23:01:41] workmad3: greengriminal: you could always, I don't know... do a fake request to your API to try it out :P
[23:01:48] emachnic: has joined #RubyOnRails
[23:03:48] rapha: is there any way to make something like @phrases.all.each {|p| <%= p.something %>; p.translations.all.each {|t| <%= t.something_else %>}} ?
[23:04:17] kies: has joined #RubyOnRails
[23:04:18] ur5us: has joined #RubyOnRails
[23:04:45] SteenJobs: what’s the helper to use in this case?
[23:05:15] SteenJobs: rapha: meaning a way to use that code in a view file?
[23:05:43] nfk|laptop: has joined #RubyOnRails
[23:05:50] rapha: SteenJobs: well, i am using that in a view, but as there's 1200 phrases and each has 0-5 translations, it's slow as heck.
[23:06:18] SteenJobs: wait so what’s the question
[23:06:32] rapha: whoops ... the sentence should have ended "to make something like [...] faster?"
[23:06:46] SteenJobs: well at least we’ve solved my confusion
[23:07:11] rapha: i mean this has got to be a problem lots of people have had in the past, right?
[23:08:10] deur-_: has joined #RubyOnRails
[23:08:46] SteenJobs: check this out http://blog.codeship.com/speed-up-activerecord/
[23:09:43] SteenJobs: seems that you should start by making the AR query for all phrases in your controller
[23:10:08] SteenJobs: have the data already on page load, and simply iterate rather than fetching as well
[23:10:18] Radar: And you'll likely want to do something like @phrases = Phrase.includes(:translations) to stop it making a new query per phrase.
[23:10:26] rapha: SteenJobs: yeah, i was wondering about that i should do that but so far can't figure out how
[23:10:49] rapha: ACTION goes read that blog article
[23:10:57] SteenJobs: Radar: heyyy, my link said that first!
[23:11:27] SteenJobs: but there’s nothing like a Radar confirmation
[23:11:53] rapha: Radar: wow, that was like a 1000-fold speed increase already, thank you!
[23:12:01] workmad3_: has joined #RubyOnRails
[23:12:04] rapha: well okay so then thanks to you both :)
[23:12:16] SteenJobs: nice! glad it worked
[23:12:55] rapha: i think the only way it could get any faster than that now would be if TurboLinks implemented static partials again :)
[23:12:59] Radar: have you heard of our lord and saviour, indexes?
[23:15:22] i8igmac: when i try to run `rails g controller Pages home about tools` it seems to just sit there doing nothing
[23:16:12] i8igmac: it should only take a second to complete this task, but my console just sits there.
[23:16:12] pawnbox: has joined #RubyOnRails
[23:16:19] i8igmac: i dont know if its a installation error
[23:16:26] makerops: i8igmac, what OS?
[23:16:30] mdw: has joined #RubyOnRails
[23:16:31] Radar: makerops: too fast
[23:16:32] i8igmac: linux mint
[23:16:34] Radar: plz slow down
[23:16:50] rapha: Radar: i do, but it seems postgres already put an index_translations_on_phrase_id there by itself.
[23:16:52] makerops: i8igmac, strace it
[23:16:56] Radar: makerops: You asked the question before I typed a single char
[23:17:00] Radar: i8igmac: How did you install Ruby?
[23:17:03] trogdor_jr: has joined #RubyOnRails
[23:17:05] Radar: rapha: oh good :)
[23:17:16] rapha: Radar: that's quite nice of it, methinks :)
[23:17:34] i8igmac: by a curl command, curl https://get.rvm.io | bash -s stable --rails
[23:20:22] stannard: has joined #RubyOnRails
[23:20:54] nerium: has joined #RubyOnRails
[23:23:17] rogue_koder: has joined #RubyOnRails
[23:29:46] Megamos: has joined #RubyOnRails
[23:30:18] TheMoonMaster: has joined #RubyOnRails
[23:30:34] s2013: has joined #RubyOnRails
[23:31:40] statelesscode: has joined #RubyOnRails
[23:31:47] DLSteve: has joined #RubyOnRails
[23:31:58] bronson: has joined #RubyOnRails
[23:35:23] moses: has joined #RubyOnRails
[23:37:59] Radar: -q moses!*@*
[23:38:29] Radar: i8igmac: RVM? That might be the problem.
[23:38:39] Radar: i8igmac: run rvm implode --force
[23:38:45] Radar: i8igmac: Then follow this guide http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you//
[23:38:51] Radar: +q moses!*@*
[23:39:00] i8igmac: ill check it out
[23:39:02] rogue_koder: has joined #RubyOnRails
[23:39:20] Radar: +b *!*@unaffiliated/madar
[23:43:02] quazimodo: has joined #RubyOnRails
[23:43:03] emachnic: has joined #RubyOnRails
[23:43:56] chouhoulis: has joined #RubyOnRails
[23:44:35] Radar: Arcaire: srsly
[23:44:38] Radar: I've seen this before.
[23:44:45] Arcaire: idk what you're doing
[23:44:51] Radar: Arcaire: wrt to what?
[23:44:57] Arcaire: op / quiet / ban
[23:45:13] Radar: Arcaire: please step into my office
[23:45:20] chouhoulis: has joined #RubyOnRails
[23:46:01] ChanServ: +b *!*@unaffiliated/madara
[23:46:01] ChanServ: ChanServ kicked moses: is banned from this channel
[23:46:17] Radar: -q moses!*@*
[23:46:27] Radar: -b *!*@unaffiliated/madar
[23:46:49] Radar: Shame that sometimes idiots like that get through the filters.
[23:47:22] flappynerd: can I manually retrieve the CSRF token that will/would be given for a form?
[23:47:32] flappynerd: I'd like to do some manual form submits through e.g. Postman
[23:47:32] Radar: flappynerd: For what purpose?
[23:47:44] Radar: flappynerd: $('#authenticity_token').val() or whatever the ID is.
[23:47:53] Radar: It's a meta tag in the head of the page
[23:47:54] Haydos: has joined #RubyOnRails
[23:48:04] flappynerd: hmm, well I was hoping to do it without making an actual rendering request to get/draw the form
[23:48:04] Radar: You could always disable CSRF protection for that action while you're testing it
[23:48:19] flappynerd: hmm, I suppose that might work
[23:48:26] Radar: skip_before_action :verify_authenticity_token, only: [:action] in the controller
[23:50:07] flappynerd: could I just spit out the auth token in JSON?
[23:50:22] flappynerd: that'd be easier, I mean I suppose I could do a request to render the form and then grab #authenticity_token
[23:50:29] sevenseacat: has joined #RubyOnRails
[23:50:30] flappynerd: but it would be easier to be able to spit that out via json
[23:50:33] Radar: Yes, you could do that. I would just disable the verification while I'm doing testing.
[23:50:52] Haydos: has joined #RubyOnRails
[23:52:22] ariedler: has joined #RubyOnRails
[23:53:09] RegulationD: has joined #RubyOnRails
[23:53:39] Radar: i8igmac: how's it going now? Trucking along smoothly?
[23:55:01] baweaver: has joined #RubyOnRails
[23:55:46] bricker: has joined #RubyOnRails
[23:56:21] aloneintheworld: has joined #RubyOnRails
[23:56:31] mary5030: has joined #RubyOnRails
[23:57:06] pawnbox: has joined #RubyOnRails
[23:57:14] siaW: has joined #RubyOnRails