« Back to channel list

#RubyOnRails - 04 December 2018

« Back 1 day Forward 1 day »
[00:00:34] fox_mulder_cp: has joined #RubyOnRails
[00:02:07] jaddison: has joined #RubyOnRails
[00:23:12] jaddison: has joined #RubyOnRails
[00:29:11] kapil____: has joined #RubyOnRails
[00:40:19] jaddison: has joined #RubyOnRails
[00:50:50] jaddison: has joined #RubyOnRails
[00:53:37] Jervis_: has joined #RubyOnRails
[00:56:05] Radar: GOOD MORNING
[00:56:06] Radar: BUT ONLY JUST
[00:57:57] ule: Morning? Japan Timezone?
[01:02:11] Radar: ule: Wrong hemisphere.
[01:02:30] ule: Australia?
[01:03:26] ule: Radar: Is it Tuesday for you already? Thats cool eh, I'm chatting with someone in the future
[01:03:38] Radar: Yeah, it's Tuesday here. Bright and sunny.
[01:03:55] ule: Lucky guy. It is dark, monday and cold over here
[01:04:35] ule: Radar: what have you been you cooding in the past days?
[01:06:03] crankharder: has joined #RubyOnRails
[01:08:16] Radar: ule: I've been working my way through the Advent of Code exercises by using Elixir.
[01:08:31] jaddison: has joined #RubyOnRails
[01:08:31] Radar: And at the moment I'm looking into an issue with some of our Ruby delayed jobs.
[01:08:54] ule: Cool, one of the features I really like is that kind of guard statement on the method signature.
[01:09:05] ule: def foo if x > y
[01:09:33] ule: kind of weird to think but I give my thumbs up for this on Elixir
[01:10:20] ule: I spoke with some guys that actually see this as an overhead saying that if we use this all the time, we're gonna have a lot of method, one per each conditions
[01:13:23] chimkan: has joined #RubyOnRails
[01:18:49] Cork: has joined #RubyOnRails
[01:36:58] sevenseacat: has joined #RubyOnRails
[01:40:28] cnsvc: has joined #RubyOnRails
[01:40:58] ariedler: has joined #RubyOnRails
[02:08:51] orbyt_: has joined #RubyOnRails
[02:12:27] crankharder: has joined #RubyOnRails
[02:13:31] orbyt_: has joined #RubyOnRails
[02:23:45] alan_w: has joined #RubyOnRails
[02:41:42] Dimik: has joined #RubyOnRails
[03:32:33] jaddison: has joined #RubyOnRails
[03:41:48] ariedler: has joined #RubyOnRails
[03:46:48] za1b1tsu_: has joined #RubyOnRails
[03:46:58] gambl0r3: has joined #RubyOnRails
[03:57:04] borodin: has joined #RubyOnRails
[04:08:55] braincrash: has joined #RubyOnRails
[04:24:21] Exuma: has joined #RubyOnRails
[04:29:40] gambl0r3: has joined #RubyOnRails
[04:33:05] za1b1tsu: has joined #RubyOnRails
[04:47:38] ivanskie: has joined #RubyOnRails
[05:24:44] DTZUZO: has joined #RubyOnRails
[05:25:01] uksio: has joined #RubyOnRails
[05:26:39] tdy: has joined #RubyOnRails
[05:28:24] KeyJoo: has joined #RubyOnRails
[05:42:38] ariedler: has joined #RubyOnRails
[05:52:19] reber: has joined #RubyOnRails
[05:57:50] cnsvc: has joined #RubyOnRails
[06:05:55] conta: has joined #RubyOnRails
[06:09:13] Dbugger: has joined #RubyOnRails
[06:40:58] dionysus69: is there a conventional way to save record errors to the column? I moved model validation to just a method since I need to validate this at sidekiq dyno, but how should I tell user what the rejecting error was, create a custom field on the model?
[06:48:35] conta: has joined #RubyOnRails
[06:56:12] NivenHuH: has joined #RubyOnRails
[06:58:03] srinidhi: has joined #RubyOnRails
[07:13:50] roshanavand: has joined #RubyOnRails
[07:15:27] jetchisel: has joined #RubyOnRails
[07:38:08] Terens: has joined #RubyOnRails
[07:38:25] Terens: is really dangerous eval on user input ?
[07:43:33] ariedler: has joined #RubyOnRails
[07:46:14] dbugger_: has joined #RubyOnRails
[07:47:17] uks: has joined #RubyOnRails
[08:03:28] Terens: But I believe the danger is low until someone finds it
[08:03:53] sevenseacat: when someone finds it, your entire application and server are compromised.
[08:04:05] sevenseacat: and someone will find it.
[08:04:33] tbuehlmann: that also applies to passwords, and you shouldn't use simple password as a consequence of that fact
[08:06:38] Terens: I am trying to figure out what is best to do. Maybe open it as a bug
[08:06:54] sevenseacat: open what as a bug?
[08:07:01] Terens: the eval thing.
[08:07:35] sevenseacat: as in, you've found someone else's site that evals input? email their security team, immediately.
[08:08:14] Terens: Boss wants features with no tests if I replace the eval thing he will tell me " I feel we waste lot of time"
[08:08:49] sevenseacat: oh, not this junk again.
[08:09:06] sevenseacat: how would he like being sued in the european union for a data breach?
[08:13:41] cnsvc: has joined #RubyOnRails
[08:14:38] Terens: yeah that sucks :p
[08:24:51] ur5us: has joined #RubyOnRails
[08:48:33] jsc: has joined #RubyOnRails
[09:40:32] lxsameer: has joined #RubyOnRails
[09:42:47] roshanavand1: has joined #RubyOnRails
[09:44:15] ariedler: has joined #RubyOnRails
[10:15:56] alan_w: has joined #RubyOnRails
[10:16:12] cnsvc: has joined #RubyOnRails
[10:25:14] mauro1254: has joined #RubyOnRails
[10:30:05] bijan_: has joined #RubyOnRails
[10:34:24] status402: has joined #RubyOnRails
[10:56:19] mangold: has joined #RubyOnRails
[11:11:54] lexileo: has joined #RubyOnRails
[11:20:17] bijan_: has joined #RubyOnRails
[11:33:33] Puffball: has joined #RubyOnRails
[11:33:42] bijan_: has joined #RubyOnRails
[11:35:25] bijan_: has joined #RubyOnRails
[11:40:45] cnsvc: has joined #RubyOnRails
[11:45:08] ariedler: has joined #RubyOnRails
[11:47:37] bijan_: has joined #RubyOnRails
[11:52:34] bijan_: has joined #RubyOnRails
[11:55:07] ariedler: has joined #RubyOnRails
[12:01:17] bijan_: has joined #RubyOnRails
[12:06:53] lankanmon: has joined #RubyOnRails
[12:14:59] bijan_: has joined #RubyOnRails
[12:16:17] roshanavand1: has joined #RubyOnRails
[12:19:34] bijan__: has joined #RubyOnRails
[12:23:00] dionysus69: has joined #RubyOnRails
[12:23:56] bijan_: has joined #RubyOnRails
[12:32:11] bijan_: has joined #RubyOnRails
[12:35:56] roshanavand1: has joined #RubyOnRails
[12:37:01] bijan_: has joined #RubyOnRails
[12:37:46] conta: has joined #RubyOnRails
[12:39:22] conta: has joined #RubyOnRails
[12:43:51] mostlybadfly: has joined #RubyOnRails
[12:45:20] bijan__: has joined #RubyOnRails
[12:45:44] alan_w: has joined #RubyOnRails
[12:46:59] reber: has joined #RubyOnRails
[12:49:37] bijan_: has joined #RubyOnRails
[12:50:03] mikecmpbll: has joined #RubyOnRails
[12:54:11] Jervis_: has joined #RubyOnRails
[12:57:24] GeorgesLeYeti: has joined #RubyOnRails
[13:07:25] bijan_: has joined #RubyOnRails
[13:09:56] cnsvc: has joined #RubyOnRails
[13:12:17] bijan_: has joined #RubyOnRails
[13:15:14] srinidhi: has joined #RubyOnRails
[13:18:25] dslegends: has joined #RubyOnRails
[13:24:08] borodin: has joined #RubyOnRails
[13:43:08] reber: has joined #RubyOnRails
[13:47:58] Ergo: has joined #RubyOnRails
[13:52:19] gheegh: has joined #RubyOnRails
[14:07:25] status402: has joined #RubyOnRails
[14:17:47] eclm: has joined #RubyOnRails
[14:21:59] crankharder: has joined #RubyOnRails
[14:24:13] bijan_: has joined #RubyOnRails
[14:28:47] bijan_: has joined #RubyOnRails
[14:34:40] cnsvc: has joined #RubyOnRails
[14:36:23] bijan_: has joined #RubyOnRails
[14:40:44] bijan__: has joined #RubyOnRails
[14:49:52] GodFather: has joined #RubyOnRails
[14:50:29] conta: has joined #RubyOnRails
[14:51:10] bijan_: has joined #RubyOnRails
[14:53:34] lxsameer: has joined #RubyOnRails
[14:55:54] bijan_: has joined #RubyOnRails
[14:59:14] bga57: has joined #RubyOnRails
[15:01:18] kapil____: has joined #RubyOnRails
[15:04:10] bijan_: has joined #RubyOnRails
[15:06:39] bijan_: has joined #RubyOnRails
[15:07:19] mangold: has joined #RubyOnRails
[15:15:52] alan_w: has joined #RubyOnRails
[15:20:09] mangold: has joined #RubyOnRails
[15:28:07] conta: has joined #RubyOnRails
[15:32:39] gambl0r3: has joined #RubyOnRails
[15:43:14] conta: has joined #RubyOnRails
[15:48:35] jottr: has joined #RubyOnRails
[15:50:23] conta: has joined #RubyOnRails
[15:59:37] conta2: has joined #RubyOnRails
[16:00:20] Arkantos: has joined #RubyOnRails
[16:13:41] cnsvc: has joined #RubyOnRails
[16:26:15] jaddison: has joined #RubyOnRails
[16:49:54] conta: has joined #RubyOnRails
[17:06:59] conta: has joined #RubyOnRails
[17:23:02] Xiti: has joined #RubyOnRails
[17:38:34] lxsameer: has joined #RubyOnRails
[17:42:48] maryo: has joined #RubyOnRails
[17:45:58] alan_w: has joined #RubyOnRails
[17:50:17] ivanskie: has joined #RubyOnRails
[17:52:40] Travis-42: has joined #RubyOnRails
[17:54:46] Travis-42: I'm using a rails application template to generate new rails applications, and I noticed that it's possible to apply to existing applications as well with "rails app:template". I tried it out, but it seems like it skips after_bundle. Is there a way to the template to detect if it's being used in a new or existing template?
[17:55:03] kapil____: has joined #RubyOnRails
[18:02:13] jaddison: has joined #RubyOnRails
[18:02:16] mikecmpbll: has joined #RubyOnRails
[18:04:39] orbyt_: has joined #RubyOnRails
[18:05:23] tubbo: i think you have your answer ;)
[18:05:52] tubbo: in the beginning of the app template you could try setting an ivar, `@new_application = false` then in `after_bundle` you can flip that to true
[18:06:17] tubbo: if you're saying `rails app:template` doesn't call after_bundle, then maybe you can kinda use that as a signal that it's a new app
[18:06:55] tubbo: i think create_file has something that will prevent it from running if the file exists though
[18:08:01] aidanh010: has joined #RubyOnRails
[18:10:16] Travis-42: ah, that's pretty simple, that makes sense
[18:11:54] Travis-42: Or at least something like it should work I think. Since after_bundle typically happens last, I'd need some way to check at the very end, I guess.
[18:14:00] cnsvc: has joined #RubyOnRails
[18:18:39] Saukk: has joined #RubyOnRails
[18:22:28] _aeris_: has joined #RubyOnRails
[18:29:15] eckhardt_: has joined #RubyOnRails
[18:39:10] jottr: has joined #RubyOnRails
[18:47:01] conta: has joined #RubyOnRails
[18:51:48] jarlopez: has joined #RubyOnRails
[18:52:17] jarlopez: Hiya. Is there a recommended way of storing constant strings used in flash messages for reuse across the application/rspec tests?
[18:53:49] tubbo: jarlopez: i18n?
[18:54:15] tubbo: idk what "constant strings" means in this case, just generic stuff like "Saved Item" or "Item has been deleted"?
[18:54:42] jarlopez: tubbo: Yes, that's what I mean. Is internationalization built-in?
[18:55:33] tubbo: jarlopez: yeah. you can always access translation strings with I18n.t() from anywhere in the application.
[18:58:27] jarlopez: tubbo: Many thanks! I'll do some further reading as well
[19:02:24] [Butch]: has joined #RubyOnRails
[19:03:38] orbyt_: has joined #RubyOnRails
[19:04:02] conta: has joined #RubyOnRails
[19:05:12] ausmat: has joined #RubyOnRails
[19:29:26] jottr: has joined #RubyOnRails
[19:29:51] lxsameer: has joined #RubyOnRails
[19:44:03] orbyt_: has joined #RubyOnRails
[19:50:13] conta: has joined #RubyOnRails
[20:00:44] jarlopez: Is it possible to use select_tag populated by options_from_collection_for_select to get a `disabled value="" selected hidden` <option> entry in a select dropdown?
[20:00:52] jarlopez: to mimic this: https://jsfiddle.net/5pje8h6v/
[20:11:11] defsdoor: has joined #RubyOnRails
[20:16:24] alan_w: has joined #RubyOnRails
[20:18:27] blackmesa: has joined #RubyOnRails
[20:44:52] jottr: has joined #RubyOnRails
[20:46:03] orbyt_: has joined #RubyOnRails
[20:53:51] jaddison: has joined #RubyOnRails
[21:09:57] conta: has joined #RubyOnRails
[21:31:17] agent_white: has joined #RubyOnRails
[21:41:45] conta: has joined #RubyOnRails
[21:50:11] Dimik: has joined #RubyOnRails
[21:51:36] roshanavand: has joined #RubyOnRails
[22:04:06] crankharder: has joined #RubyOnRails
[22:10:19] orbyt_: has joined #RubyOnRails
[22:17:19] crankharder: has joined #RubyOnRails
[22:33:49] cnsvc: has joined #RubyOnRails
[22:46:14] alan_w: has joined #RubyOnRails
[22:48:43] mangold: has joined #RubyOnRails
[23:40:20] roshanavand: has joined #RubyOnRails
[23:42:10] agent_white: has joined #RubyOnRails
[23:54:34] kapil____: has joined #RubyOnRails