I have an app which lists Offers from different Vendors.
I want to implement “sort by” links and I’ll do this using scopes in my
Offer model. But how should I implement the functionality in the
controllers/router? Should I use a member route along with a new
controller
action (eg. “expiring”, or “most_expensive”) or just use param queries?
I have an app which lists Offers from different Vendors.
I want to implement “sort by” links and I’ll do this using scopes in my
Offer model.But how should I implement the functionality in the
controllers/router? Should I use a member route along with a new controller
action (eg. “expiring”, or “most_expensive”) or just use param queries?