« Back to channel list

#RubyOnRails - 24 February 2019

« Back 1 day Forward 1 day »
[00:39:59] alnk: has joined #RubyOnRails
[01:01:56] Psy-Q: has joined #RubyOnRails
[01:58:35] cagomez: has joined #RubyOnRails
[02:07:28] apparition: has joined #RubyOnRails
[02:15:33] bruul: has joined #RubyOnRails
[03:24:46] cagomez: has joined #RubyOnRails
[04:09:02] braincrash: has joined #RubyOnRails
[04:20:41] wethu: has joined #RubyOnRails
[04:25:53] cagomez: has joined #RubyOnRails
[04:38:04] Saukk: has joined #RubyOnRails
[04:44:13] jobewan: has joined #RubyOnRails
[04:58:52] gambl0r3: has joined #RubyOnRails
[05:04:50] planigan: has joined #RubyOnRails
[05:45:42] orbyt_: has joined #RubyOnRails
[05:50:43] uks: has joined #RubyOnRails
[06:45:52] blackmesa1: has joined #RubyOnRails
[07:18:48] srinidhi: has joined #RubyOnRails
[07:54:56] piroko: has joined #RubyOnRails
[08:00:37] KeyJoo: has joined #RubyOnRails
[08:08:37] reber: has joined #RubyOnRails
[08:09:51] conta: has joined #RubyOnRails
[08:17:24] Dbugger: has joined #RubyOnRails
[08:45:39] piroko: has joined #RubyOnRails
[09:07:36] blackmesa1: has joined #RubyOnRails
[09:17:21] sameerynho: has joined #RubyOnRails
[09:38:30] conta: has joined #RubyOnRails
[10:14:44] Fernando-Basso: has joined #RubyOnRails
[10:19:59] defsdoor: has joined #RubyOnRails
[10:32:43] adgtl: has joined #RubyOnRails
[10:36:36] mikecmpbll: has joined #RubyOnRails
[10:40:58] ams__: has joined #RubyOnRails
[10:41:12] ricotuco: has joined #RubyOnRails
[11:04:36] conta: has joined #RubyOnRails
[11:07:15] Saukk: has joined #RubyOnRails
[11:40:39] ravenousmoose: has joined #RubyOnRails
[11:47:55] lankanmon: has joined #RubyOnRails
[12:10:28] conta: has joined #RubyOnRails
[12:40:07] snk: has joined #RubyOnRails
[12:40:07] snk: Good morning
[12:51:15] mikecmpbll: has joined #RubyOnRails
[12:52:20] mangold: has joined #RubyOnRails
[13:06:31] mangold: has joined #RubyOnRails
[13:23:15] timwis: Hey folks, I'm trying to restrict a model field to a list of a few string values. I'm using the inclusion validator, but I'd like to have my list of valid values as a constant in the model class so I can access it from other places (like the activeadmin form renderer). Should I just add a line like FIELD_OPTS = [ 'foo', 'bar' ] to my model class?
[13:23:54] conta1: has joined #RubyOnRails
[13:29:29] timwis: linuus: thanks. I'm just having a bit of trouble accessing them from within the model. for instance, `validates :field, :inclusion: { in: FIELD_OPTS }` doesn't seem to have an effect. is that wrong?
[13:44:42] timwis: It's a shame there's nothing like an enum I can use for this, where you get the free stuff enums give you :(
[14:04:09] catbusters: has joined #RubyOnRails
[14:12:13] catbusters: I've this weird issue with the rails guides
[14:12:43] catbusters: They don't load on my browser, the page loads half a quarter of the way and then becomes blank and hangs
[14:13:02] catbusters: I've been forced to use the Kindle version of the guides due to this
[14:16:14] Linuus: timwis: what if you use self.class?
[14:16:32] timwis: linuus: it's actually working now oddly
[14:16:43] timwis: But I'm having an issue with null values
[14:17:02] timwis: Active admin generates a <select> box with an empty option, which is good. But rails tries to save that as an empty string instead of NULL
[14:17:30] timwis: Seems like a rather common need, to interpret blanks as NULL. But I can't seem to find how to do that. Is this obvious for everyone but me?
[14:17:48] NeilCarvalho: has joined #RubyOnRails
[14:17:58] timwis: I even found a gem for it, but it seems odd that you'd need an external lib for such a common thing, no?
[14:45:14] ravenousmoose: has joined #RubyOnRails
[14:46:38] catbusters: Maybe you could use a before save hook? I know it's hacky but if it works...
[14:54:59] mangold: has joined #RubyOnRails
[15:55:53] mangold: has joined #RubyOnRails
[15:59:09] foucist: has joined #RubyOnRails
[16:40:35] ravenousmoose: has joined #RubyOnRails
[16:59:01] Technodrome: has joined #RubyOnRails
[17:05:08] conta: has joined #RubyOnRails
[17:05:43] quazimodo: has joined #RubyOnRails
[17:10:16] orbyt_: has joined #RubyOnRails
[17:22:12] tdy: has joined #RubyOnRails
[17:35:00] Aherin: has joined #RubyOnRails
[17:37:58] phaul: has joined #RubyOnRails
[18:33:27] NeXTSUN: has joined #RubyOnRails
[18:53:56] ariedler: has joined #RubyOnRails
[19:12:00] gambl0r3: has joined #RubyOnRails
[19:24:58] ravenousmoose: has joined #RubyOnRails
[19:27:13] beholders_eye: has joined #RubyOnRails
[19:28:00] conta: has joined #RubyOnRails
[19:35:57] bga57: has joined #RubyOnRails
[19:38:21] Saukk: has joined #RubyOnRails
[19:39:31] ravenousmoose: has joined #RubyOnRails
[19:46:28] ariedler: has joined #RubyOnRails
[19:51:38] ellcs: has joined #RubyOnRails
[19:55:32] reber: has joined #RubyOnRails
[20:11:08] MrCrackPotBuilde: has joined #RubyOnRails
[20:19:38] ariedler: has joined #RubyOnRails
[20:43:24] agent_white: has joined #RubyOnRails
[20:48:34] Radar: GOOD MORNING
[21:29:47] ariedler: has joined #RubyOnRails
[21:42:01] orbyt_: has joined #RubyOnRails
[21:47:31] kvda: has joined #RubyOnRails
[22:05:22] tekk: has joined #RubyOnRails
[22:29:31] kvda: has joined #RubyOnRails
[23:01:17] gambl0r3: has joined #RubyOnRails
[23:03:18] catbusters: has joined #RubyOnRails
[23:03:52] catbusters: Anyone using devise with omniauth?
[23:14:59] ellcs: has joined #RubyOnRails
[23:24:58] ariedler: has joined #RubyOnRails