#RubyOnRails - 01 April 2019
« Back 1 day
[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: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 :)
[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?