I have been pondering about developing a new application with rails (probably without models?). What I meant is; backend will be written in any other language and that will provide the RESTful APIs, which will be consumed by Rails app.
Since backend API will take care of all data CRUD actions and rails app will not have access to database directly. So there is no use of rails model in such architecture?
I can directly make curl call to APIs from controllers too, but I wish to keep my controller skinny while fat models.
Or other way, API curl calls can be made in the models and it can behave like data CRUD being done to the database in that model.
In any of above scenarios, I will not be able to get benefit of many rails features or gems (such as friendly_id) which works on active records/ORM.
I am really confused as which way I should go? And what is the best practice? What architecture you can suggest? I definitely wants to keep my backend completely decoupled and providing only RESTful apis only.
Thanks in advance.