How could you do it, in a RESTful way?
I have a very simple model with 2 attrs and each view is a
Model.find_all_by_attr1 and _attr2. How is this modeled in REST?
I’ve been in rails for 6 months now and REST is continuing giving me
headaches and tbh, it seems to me that it’s unsuitable for user
centric applications, where the same information could be presented in
many different ways. index and show simply wouldn’t cut it as it seems
to me that they are tightly coupled to a more DB-centric approach.
(Where is index fit into REST, if REST is based on CRUD? Can’t I have
an "index2 or index_by_whatever_criteria_I_want, and still be
Of course, decision logic could be moved to the view layer but that
seems like a regression to MVC.
Im tempted to stop thinking in REST terms and simply move on; Maybe I
just need a good reason to convince myself.