« Back to channel list

#RubyOnRails - 10 July 2018

« Back 1 day Forward 1 day »
[00:24:17] mroutis: has joined #RubyOnRails
[00:31:58] jonno112: has joined #RubyOnRails
[00:36:13] jhack: has joined #RubyOnRails
[00:41:38] jhack: has joined #RubyOnRails
[00:42:27] lxsameer: has joined #RubyOnRails
[00:56:13] sevenseacat: has joined #RubyOnRails
[00:56:49] lxsameer: has joined #RubyOnRails
[00:59:44] eckhardt_: has joined #RubyOnRails
[01:01:53] tpendragon: has joined #RubyOnRails
[01:02:54] jhack: has joined #RubyOnRails
[01:06:50] apeiros: has joined #RubyOnRails
[01:13:22] woohoou: has joined #RubyOnRails
[01:14:34] lxsameer: has joined #RubyOnRails
[01:15:38] npgm: has joined #RubyOnRails
[01:26:04] Technodrome: has joined #RubyOnRails
[01:26:24] ephemer0l: has joined #RubyOnRails
[01:29:04] apeiros: has joined #RubyOnRails
[01:55:19] apeiros: has joined #RubyOnRails
[01:57:13] tdy: has joined #RubyOnRails
[01:58:45] Technodrome: has joined #RubyOnRails
[02:11:38] alfiemax: has joined #RubyOnRails
[02:12:22] Xiti`: has joined #RubyOnRails
[02:14:43] Kilobyte22: has joined #RubyOnRails
[02:14:59] dustinm`_: has joined #RubyOnRails
[02:15:06] DTZUZU2: has joined #RubyOnRails
[02:15:13] duderono_: has joined #RubyOnRails
[02:15:29] Karpah: has joined #RubyOnRails
[02:16:38] hellekin: has joined #RubyOnRails
[02:21:54] dviola: has joined #RubyOnRails
[02:25:54] thortron: has joined #RubyOnRails
[02:27:55] thortron: has joined #RubyOnRails
[02:32:44] mroutis: has joined #RubyOnRails
[02:40:08] apeiros: has joined #RubyOnRails
[02:55:27] Guest84006: has joined #RubyOnRails
[03:00:38] benlieb: has joined #RubyOnRails
[03:06:09] dblessing: has joined #RubyOnRails
[03:07:39] Axsuul: has joined #RubyOnRails
[03:09:49] braincrash: has joined #RubyOnRails
[03:09:58] psychoslave: has joined #RubyOnRails
[03:13:11] psychoslave_: has joined #RubyOnRails
[03:15:04] Guest84006: has joined #RubyOnRails
[03:23:53] vedu_: has joined #RubyOnRails
[03:26:32] apeiros: has joined #RubyOnRails
[03:28:55] SteenJobs: has joined #RubyOnRails
[03:32:56] Guest84006: has joined #RubyOnRails
[03:35:43] kakekongen: has joined #RubyOnRails
[03:35:57] dblessing: has joined #RubyOnRails
[03:41:42] timdotrb: has joined #RubyOnRails
[03:45:17] tenderlove: has joined #RubyOnRails
[03:45:41] chkhanch: has joined #RubyOnRails
[03:47:24] chkhanch: hello, how can I test it in the rspec = has_many :somethings, -> { where something: 'something' } ? THX
[03:47:51] hahuang65: chkhanch: can you elaborate on what you mean?
[03:49:46] chkhanch: how can i check rspec whether the constraint is being executed
[03:50:07] apeiros: has joined #RubyOnRails
[03:58:04] Technodrome: has joined #RubyOnRails
[03:59:50] Guest84006: has joined #RubyOnRails
[04:12:56] apeiros: has joined #RubyOnRails
[04:16:24] ephemer0l: has joined #RubyOnRails
[04:17:49] ephemer0l: has joined #RubyOnRails
[04:34:22] apeiros: has joined #RubyOnRails
[04:43:52] darkhanb: has joined #RubyOnRails
[04:45:10] Guest84006: has joined #RubyOnRails
[05:02:49] Guest84006: has joined #RubyOnRails
[05:14:45] za1b1tsu: has joined #RubyOnRails
[05:18:16] Saukk: has joined #RubyOnRails
[05:24:02] Guest84006: has joined #RubyOnRails
[05:32:02] tenderlove: has joined #RubyOnRails
[05:32:12] mtkd: has joined #RubyOnRails
[05:32:21] timdotrb: has joined #RubyOnRails
[05:40:58] jackhum: has joined #RubyOnRails
[05:47:49] tenderlove: has joined #RubyOnRails
[05:51:54] apeiros: has joined #RubyOnRails
[05:53:27] reber: has joined #RubyOnRails
[05:53:59] tenderlove: has joined #RubyOnRails
[05:55:44] tbuehlmann: chkhanch: if you really want to test it, what about creating two associated somethings, one with something == 'something', one with a different value and then check that only one is included in parent.somethings?
[06:04:54] ur5us: has joined #RubyOnRails
[06:08:59] sidx64: has joined #RubyOnRails
[06:09:12] vedu_: has joined #RubyOnRails
[06:15:12] Guest84006: has joined #RubyOnRails
[06:18:12] syndikate: In one of my methods I have to call params[:date] three times since I am passing it to different methods. Rubocop highlights this and tells me I am calling it multiple times. I am not sure how to address this, is assigning that to a variable and using it a good practice? Or I just ignore it?
[06:18:25] syndikate: There has to be some reason the rule exists, so was wondering about it
[06:23:28] tbuehlmann: probably because you're repeating calling that method (with that argument?). you could assign that value to a variable, but it's really not that important and I wouldn't trust rubocop on this
[06:28:16] syndikate: Yeah so I was calling that hash more than once but I saw no use in assigning it to a variable. Alright, thanks.
[06:28:47] jackhum: has joined #RubyOnRails
[06:31:31] za1b1tsu: has joined #RubyOnRails
[06:33:36] tenderlove: has joined #RubyOnRails
[06:35:31] tenderlove: has joined #RubyOnRails
[06:40:45] tenderlove: has joined #RubyOnRails
[06:41:45] tenderlove: has joined #RubyOnRails
[06:42:10] srinidhi: has joined #RubyOnRails
[06:42:54] tenderlove: has joined #RubyOnRails
[06:44:04] tenderlove: has joined #RubyOnRails
[06:45:16] Guest84006: has joined #RubyOnRails
[06:46:39] srinidhi: has joined #RubyOnRails
[06:51:13] psychoslave: has joined #RubyOnRails
[06:58:12] ariejan: has joined #RubyOnRails
[06:58:18] nsalunke: has joined #RubyOnRails
[06:58:35] dionysus69: has joined #RubyOnRails
[06:59:16] nsalunke: has left #RubyOnRails: ()
[07:03:46] ariejan_: has joined #RubyOnRails
[07:05:33] Technodrome: has joined #RubyOnRails
[07:09:30] Tempesta: has joined #RubyOnRails
[07:10:23] za1b1tsu: has joined #RubyOnRails
[07:11:38] sidx64: has joined #RubyOnRails
[07:19:21] Dbugger: has joined #RubyOnRails
[07:23:30] ams__: has joined #RubyOnRails
[07:25:23] Technodrome: has joined #RubyOnRails
[07:26:29] ams__: has joined #RubyOnRails
[07:35:43] blackmesa: has joined #RubyOnRails
[07:52:13] srinidhi: has joined #RubyOnRails
[08:10:42] za1b1tsu: has joined #RubyOnRails
[08:13:10] Fridtjof: has joined #RubyOnRails
[08:24:02] mikecmpbll: has joined #RubyOnRails
[08:25:06] za1b1tsu: has joined #RubyOnRails
[08:26:38] sidx64: has joined #RubyOnRails
[08:44:44] za1b1tsu: has joined #RubyOnRails
[08:44:51] Sylario: has joined #RubyOnRails
[08:56:14] sidx64: has joined #RubyOnRails
[09:01:19] ur5us: has joined #RubyOnRails
[09:04:11] dionysus69: has joined #RubyOnRails
[09:08:50] Technodrome: has joined #RubyOnRails
[09:10:26] duderonomy: has joined #RubyOnRails
[09:17:57] ariejan: has joined #RubyOnRails
[09:18:49] tenderlove: has joined #RubyOnRails
[09:19:26] sidx64: has joined #RubyOnRails
[09:22:38] dionysus70: has joined #RubyOnRails
[09:23:45] mikecmpbll: has joined #RubyOnRails
[09:25:41] tenderlove: has joined #RubyOnRails
[09:29:47] dionysus70: has joined #RubyOnRails
[09:32:17] tenderlove: has joined #RubyOnRails
[09:32:58] tenderlove: has joined #RubyOnRails
[09:33:01] psychoslave: has joined #RubyOnRails
[09:37:25] timdotrb: has joined #RubyOnRails
[09:37:46] tenderlove: has joined #RubyOnRails
[09:38:07] timdotrb: has joined #RubyOnRails
[09:44:11] tenderlove: has joined #RubyOnRails
[09:48:48] psychoslave: has joined #RubyOnRails
[09:53:23] za1b1tsu: has joined #RubyOnRails
[09:54:16] sidx64: has joined #RubyOnRails
[09:54:54] jottr: has joined #RubyOnRails
[10:01:28] madsj: has joined #RubyOnRails
[10:08:38] sidx64: has joined #RubyOnRails
[10:28:27] Saukk: has joined #RubyOnRails
[10:41:36] jottr: has joined #RubyOnRails
[10:42:41] psychoslave: has joined #RubyOnRails
[10:49:29] ur5us: has joined #RubyOnRails
[10:55:14] ur5us: has joined #RubyOnRails
[11:01:14] Xiti: has joined #RubyOnRails
[11:01:18] ur5us: has joined #RubyOnRails
[11:02:21] sidx64: has joined #RubyOnRails
[11:07:16] sidx64: has joined #RubyOnRails
[11:31:54] sidx64: has joined #RubyOnRails
[11:37:09] apparition: has joined #RubyOnRails
[11:46:41] nzst: has joined #RubyOnRails
[11:50:37] GodFather: has joined #RubyOnRails
[11:52:19] conta: has joined #RubyOnRails
[12:11:28] lunarkitty7: has joined #RubyOnRails
[12:15:00] sidx64: has joined #RubyOnRails
[12:19:15] alfiemax: has joined #RubyOnRails
[12:21:27] GodFather: has joined #RubyOnRails
[12:26:02] Terens: has joined #RubyOnRails
[12:26:53] sidx64: has joined #RubyOnRails
[12:27:13] tenderlove: has joined #RubyOnRails
[12:27:21] srinidhi: has joined #RubyOnRails
[12:27:34] Terens: If you had 1000 requests per minute would it make sense to store value as is (sql query) and not parse it if json?
[12:28:11] Terens: A specific request that sends json data if you use model then you have to parse this json first and then serialize it
[12:28:20] tenderlove: has joined #RubyOnRails
[12:28:23] Terens: but if you do insert you skip this step
[12:30:41] tenderlove: has joined #RubyOnRails
[12:31:40] tenderlove: has joined #RubyOnRails
[12:32:09] epistrephein: has joined #RubyOnRails
[12:32:53] tenderlove: has joined #RubyOnRails
[12:33:11] za1b1tsu: has joined #RubyOnRails
[12:39:32] jottr: has joined #RubyOnRails
[12:39:35] tenderlove: has joined #RubyOnRails
[12:40:35] tenderlove: has joined #RubyOnRails
[12:42:49] GodFather: has joined #RubyOnRails
[12:43:42] TvL2386: terens: I have no idea what you are trying to do or ask
[12:45:23] TvL2386: are you asking whether to instanciate ActiveRecord objects from a json POST and then save vs inserting the data into sql yourself?
[12:46:07] TvL2386: what kind of data, are you asking to bypass a model or are you asking to skip the model completely?
[12:46:58] TvL2386: I would think you would need to parse the json anyway, or will you insert json strings into some column 1000 times per minute
[12:47:20] TvL2386: And if so: how will you retrieve it again
[12:47:32] TvL2386: TL;DR; Depends on your use case
[12:53:30] chkhanch: how to check the uniqueness of a record in two fields
[12:53:50] mroutis: has joined #RubyOnRails
[12:54:09] sidx64: has joined #RubyOnRails
[12:55:55] jhill: has joined #RubyOnRails
[12:56:29] fmcgeough: has joined #RubyOnRails
[13:03:57] mikecmpbll: has joined #RubyOnRails
[13:06:20] tenderlove: has joined #RubyOnRails
[13:11:43] sidx64: has joined #RubyOnRails
[13:24:02] Technodrome: has joined #RubyOnRails
[13:26:58] mtkd: has joined #RubyOnRails
[13:27:06] tenderlove: has joined #RubyOnRails
[13:28:05] tenderlove: has joined #RubyOnRails
[13:43:45] uks: has joined #RubyOnRails
[13:45:09] jottr: has joined #RubyOnRails
[13:47:49] lupine: has joined #RubyOnRails
[13:52:54] lupine: has joined #RubyOnRails
[13:56:03] chkhanch: `validates_uniqueness_of :number, scope: :parallel` why this might not work
[13:56:45] conta: has joined #RubyOnRails
[13:58:43] tenderlove: has joined #RubyOnRails
[13:59:42] tenderlove: has joined #RubyOnRails
[14:00:51] tenderlove: has joined #RubyOnRails
[14:02:20] tenderlove: has joined #RubyOnRails
[14:02:59] tenderlove: has joined #RubyOnRails
[14:03:19] GodFather: has joined #RubyOnRails
[14:04:08] tenderlove: has joined #RubyOnRails
[14:05:14] sirensari2: has joined #RubyOnRails
[14:05:27] srinidhi: has joined #RubyOnRails
[14:05:49] sirensari2: why is this happening http://termbin.com/ld07
[14:06:04] sirensari2: the route is `post 'paypal/events', to: "donations#paypal_events"`
[14:06:11] sidx64: has joined #RubyOnRails
[14:06:30] tenderlove: has joined #RubyOnRails
[14:07:12] srinidhi: has joined #RubyOnRails
[14:10:01] sidx64: has joined #RubyOnRails
[14:13:33] sidx64: has joined #RubyOnRails
[14:17:24] tenderlove: has joined #RubyOnRails
[14:18:31] tenderlove: has joined #RubyOnRails
[14:20:12] tenderlove: has joined #RubyOnRails
[14:21:10] tenderlove: has joined #RubyOnRails
[14:21:34] conta: has joined #RubyOnRails
[14:22:22] tenderlove: has joined #RubyOnRails
[14:32:02] dblessing: has joined #RubyOnRails
[14:33:39] tenderlove: has joined #RubyOnRails
[14:34:12] dviola: has joined #RubyOnRails
[14:36:38] tdy: has joined #RubyOnRails
[14:41:45] conta: has joined #RubyOnRails
[14:44:11] GodFather: has joined #RubyOnRails
[14:54:53] tenderlove: has joined #RubyOnRails
[15:00:47] conta: has joined #RubyOnRails
[15:03:56] GodFather: has joined #RubyOnRails
[15:12:54] timdotrb: has joined #RubyOnRails
[15:17:55] Technodrome: has joined #RubyOnRails
[15:26:31] tcopeland: has joined #RubyOnRails
[15:42:16] jottr: has joined #RubyOnRails
[15:42:32] za1b1tsu: has joined #RubyOnRails
[15:47:56] dviola: has joined #RubyOnRails
[15:50:10] GodFather: has joined #RubyOnRails
[15:51:04] troys: has joined #RubyOnRails
[15:51:40] tenderlove: has joined #RubyOnRails
[16:04:24] dviola: has joined #RubyOnRails
[16:04:34] jcarl43: has joined #RubyOnRails
[16:11:49] enkeyz: has joined #RubyOnRails
[16:12:29] enkeyz: yo guys, a beginner here: what are your suggestion, if somebody wanna start out with backend development?
[16:12:40] za1b1tsu: has joined #RubyOnRails
[16:13:20] enkeyz: sadly, I'm living in a small country, and don't know, what will be the best language/framework, to get a job on this field, in Hungary
[16:16:05] sirensari2: has joined #RubyOnRails
[16:27:22] GodFather: has joined #RubyOnRails
[16:29:09] tdy: has joined #RubyOnRails
[16:37:27] mtkd: has joined #RubyOnRails
[16:46:29] jottr: has joined #RubyOnRails
[16:49:38] cheater: has joined #RubyOnRails
[16:49:52] dbugger_: has joined #RubyOnRails
[16:50:26] benlieb: has joined #RubyOnRails
[16:50:39] nzst: has joined #RubyOnRails
[16:50:43] cheater: i am unfamiliar with ruby and rails. in a tutorial i read a command like this: rails r "SiteSetting.notification_email = 'discourse@yoursite.com'". how can i get and print out the setting, rather than overwrite it?
[16:54:48] agent_white: has joined #RubyOnRails
[16:56:30] cheater: oh, i guess rails r "puts SiteSetting.notification_email"
[16:56:46] GodFather: has joined #RubyOnRails
[16:59:38] Guest84006: has joined #RubyOnRails
[17:00:10] havenwood: cheater: Yup, `r` just runs the code you provide.
[17:09:54] Guest84006: has joined #RubyOnRails
[17:19:49] Guest84006: has joined #RubyOnRails
[17:26:14] benlieb: has joined #RubyOnRails
[17:29:58] Guest84006: has joined #RubyOnRails
[17:30:29] apeiros_: has joined #RubyOnRails
[17:36:52] ule: has joined #RubyOnRails
[17:38:49] sameerynho: has joined #RubyOnRails
[17:39:19] eckhardt_: has joined #RubyOnRails
[17:40:13] Guest84006: has joined #RubyOnRails
[17:48:17] Technodrome: has joined #RubyOnRails
[17:50:31] Guest84006: has joined #RubyOnRails
[18:00:38] Guest84006: has joined #RubyOnRails
[18:01:18] mroutis: has joined #RubyOnRails
[18:10:51] Guest84006: has joined #RubyOnRails
[18:12:45] mikecmpbll: has joined #RubyOnRails
[18:18:16] tdy: has joined #RubyOnRails
[18:21:09] Guest84006: has joined #RubyOnRails
[18:27:55] GodFather: has joined #RubyOnRails
[18:31:21] Guest84006: has joined #RubyOnRails
[18:33:12] mtkd: has joined #RubyOnRails
[18:37:51] tdy: has joined #RubyOnRails
[18:38:57] moei: has joined #RubyOnRails
[18:41:34] Guest84006: has joined #RubyOnRails
[18:44:39] stephenmac7: has joined #RubyOnRails
[18:44:49] IanMalcolm: has joined #RubyOnRails
[18:45:32] stephenmac7: Hey, I'm trying to test the download capabilities of my application, but I can't seem to get the files to download to the correct directory. I'm using selenium with chromedriver. Here is my config: https://pastebin.com/0EyfCjWb
[18:51:50] Guest84006: has joined #RubyOnRails
[18:53:56] cjohnson: I have a config/development.json and config/test.json which seem to get loaded
[18:54:01] cjohnson: Is this something native to rails?
[18:54:05] cjohnson: A gem somebody knows about?
[18:59:56] za1b1tsu: has joined #RubyOnRails
[19:00:13] dgsan: has joined #RubyOnRails
[19:02:04] Guest84006: has joined #RubyOnRails
[19:05:37] ellcs: has joined #RubyOnRails
[19:12:22] Guest84006: has joined #RubyOnRails
[19:20:19] mikecmpbll: has joined #RubyOnRails
[19:22:31] Guest84006: has joined #RubyOnRails
[19:22:45] tenderlove: has joined #RubyOnRails
[19:26:53] eckhardt_: has joined #RubyOnRails
[19:32:00] desperek: has joined #RubyOnRails
[19:32:48] Guest84006: has joined #RubyOnRails
[19:35:19] havenwood: cjohnson: It's not something I've ever seen. Is it being used by?: config/environements/{development,test}.rb
[19:35:27] havenwood: environments*
[19:38:16] mikecmpbll: has joined #RubyOnRails
[19:39:54] cjohnson: No. Figured it out, it's some internal garbage
[19:42:59] Guest84006: has joined #RubyOnRails
[19:46:33] mtkd: has joined #RubyOnRails
[19:47:25] enkeyz: has left #RubyOnRails: ("WeeChat 1.9.1")
[19:48:48] akaiiro: has joined #RubyOnRails
[19:49:09] dblessing: has joined #RubyOnRails
[19:53:11] Guest84006: has joined #RubyOnRails
[19:55:16] CJKinni: has joined #RubyOnRails
[20:00:16] dblessing: has joined #RubyOnRails
[20:02:52] fourcolors: has joined #RubyOnRails
[20:03:31] Guest84006: has joined #RubyOnRails
[20:05:45] beowuff: has joined #RubyOnRails
[20:07:50] nzst: has joined #RubyOnRails
[20:12:59] NoGodDamnIdea: has joined #RubyOnRails
[20:13:42] Guest84006: has joined #RubyOnRails
[20:21:01] mroutis: has joined #RubyOnRails
[20:21:53] havenwood: has joined #RubyOnRails
[20:23:55] Guest84006: has joined #RubyOnRails
[20:30:40] molloy: has joined #RubyOnRails
[20:31:18] molloy: Hi, is there an easy way to print all activerecord objects for a particular model?
[20:31:38] molloy: Ideally in the rails console (with $stdout set to a file)
[20:34:07] Guest84006: has joined #RubyOnRails
[20:38:59] havenwood: has joined #RubyOnRails
[20:43:56] beowuff: has joined #RubyOnRails
[20:44:19] Guest84006: has joined #RubyOnRails
[20:54:36] Guest84006: has joined #RubyOnRails
[20:57:13] GodFather: has joined #RubyOnRails
[21:01:55] Guest84006: has joined #RubyOnRails
[21:06:32] za1b1tsu: has joined #RubyOnRails
[21:12:06] Guest84006: has joined #RubyOnRails
[21:12:49] fourcolors: has joined #RubyOnRails
[21:16:17] fourcolors: has joined #RubyOnRails
[21:16:39] cagomez: has joined #RubyOnRails
[21:22:16] Guest84006: has joined #RubyOnRails
[21:30:30] za1b1tsu: has joined #RubyOnRails
[21:32:35] Guest84006: has joined #RubyOnRails
[21:41:52] johndunn: has joined #RubyOnRails
[21:42:15] johndunn: has left #RubyOnRails: ()
[21:42:49] Guest84006: has joined #RubyOnRails
[21:53:05] Guest84006: has joined #RubyOnRails
[22:03:17] Guest84006: has joined #RubyOnRails
[22:13:30] Guest84006: has joined #RubyOnRails
[22:13:32] GodFather: has joined #RubyOnRails
[22:14:45] alfiemax: has joined #RubyOnRails
[22:23:49] Guest84006: has joined #RubyOnRails
[22:33:58] Guest84006: has joined #RubyOnRails
[22:40:25] fragamus: has joined #RubyOnRails
[22:44:10] Guest84006: has joined #RubyOnRails
[22:52:22] crankharder: has joined #RubyOnRails
[22:54:12] Technodrome: has joined #RubyOnRails
[22:54:28] Guest84006: has joined #RubyOnRails
[23:00:15] za1b1tsu: has joined #RubyOnRails
[23:03:04] alfiemax: has joined #RubyOnRails
[23:04:39] Guest84006: has joined #RubyOnRails
[23:14:54] Guest84006: has joined #RubyOnRails
[23:25:09] Guest84006: has joined #RubyOnRails
[23:35:20] Guest84006: has joined #RubyOnRails
[23:41:07] ur5us: has joined #RubyOnRails
[23:45:34] Guest84006: has joined #RubyOnRails
[23:47:36] desperek: has joined #RubyOnRails
[23:51:15] ivanskie: has joined #RubyOnRails
[23:55:46] Guest84006: has joined #RubyOnRails