3 ms·
Rails without an active record ORM model isn't really Rails, if that's what you want then you're probably not doing CRUD and you really should just pick another
by vinceguidry 10y ago
Rails without an active record ORM model isn't really Rails, if that's what you want then you're probably not doing CRUD and you really should just pick another framework.
I'm all for lots of frameworks. But please please please don't take away my Rails by forcing it to be ORM-agnostic. Please don't turn my cruiser into a crotch-rocket.
- majewsky 10y agoNot every CRUD app uses a local database. For example, I'm working on a web frontend for a collection of microservices right now. The web app is just CRUD for the largest part, but the model is a custom implementation that translates .find_by, .save etc. into REST calls. Took us quite some effort to make this look like ActiveRecord enough to play nice with the rest of Rails.
- vinceguidry 10y agoYou should absolutely release your work, a translation layer for REST APIs -> ActiveModel would be awesome.