« Back to channel list

#RubyOnRails - 01 April 2019

« Back 1 day
[01:29:30] mangold: has joined #RubyOnRails
[01:30:15] orbyt_: has joined #RubyOnRails
[02:00:43] sevenseacat: has joined #RubyOnRails
[02:12:11] kvda: has joined #RubyOnRails
[02:50:52] orbyt_: has joined #RubyOnRails
[02:55:21] GodFather: has joined #RubyOnRails
[03:07:56] tutaloo: has joined #RubyOnRails
[03:07:59] tutaloo: Nowadays is it recommended to use ERB or Slim?
[03:08:16] sevenseacat: whatever you prefer
[03:09:35] tutaloo: sevenseacat: any reason to use one or the other? Besides condensed syntax is there anything that slim offers that erb does not?
[03:09:40] braincrash: has joined #RubyOnRails
[03:10:39] sevenseacat: one thing the alternates provide is fixing of HTML by auto-closing tags, but apart from that it's just personal preference. i like haml the best :)
[03:13:59] tutaloo: sevenseacat: auto-closing implicitly because it's all based on indentation?
[03:14:57] tutaloo: awesome, thanks
[03:15:07] tutaloo: i think i'll stick to erb for now; i'm used to html
[03:15:19] tutaloo: is it easy to convert back and forth if i ever change my mind?
[03:16:46] sevenseacat: there are automated tools to do it, or you can mix and match template types
[03:16:59] sevenseacat: there's no rule saying you only can use one in a project!
[03:36:38] rascencio: has joined #RubyOnRails
[03:39:04] wethu: has joined #RubyOnRails
[03:55:41] srinidhi: has joined #RubyOnRails
[04:02:50] ephemer0l_: has joined #RubyOnRails
[04:59:27] mangold: has joined #RubyOnRails
[05:18:14] conta: has joined #RubyOnRails
[05:36:24] sidx64: has joined #RubyOnRails
[05:52:53] brimlong: has joined #RubyOnRails
[05:53:22] brimlong: Hi there. Is there an easy way to share logic between a controller action and api?
[05:54:03] brimlong: I'd like to offer users of my web app a way to access some parts of it through an api in their own web apps
[05:54:30] brimlong: Is that something a service would be good for? take all the shared functionality and call it in the regular controller actions and also in the api controller actions?
[05:55:32] mangold: has joined #RubyOnRails
[06:12:24] v01d4lph4: has joined #RubyOnRails
[06:13:21] srinidhi: has joined #RubyOnRails
[07:30:14] sidx64: has joined #RubyOnRails
[07:37:25] ariejan: has joined #RubyOnRails
[07:43:55] mikecmpbll: has joined #RubyOnRails
[07:46:50] crankharder: has joined #RubyOnRails
[08:23:49] sidx64: has joined #RubyOnRails
[08:33:43] srinidhi: has joined #RubyOnRails
[08:34:01] sevenseacat: has joined #RubyOnRails
[08:34:23] kvda: has joined #RubyOnRails
[08:38:16] reber: has joined #RubyOnRails
[08:39:26] mikecmpb_: has joined #RubyOnRails
[09:25:21] snickers: has joined #RubyOnRails
[09:32:50] mangold: has joined #RubyOnRails
[09:40:13] rascencio: has joined #RubyOnRails
[10:02:01] kapil____: has joined #RubyOnRails
[10:04:59] conta: has joined #RubyOnRails
[10:14:15] lxsameer: has joined #RubyOnRails
[11:11:56] crankharder: has joined #RubyOnRails