Ruby on rails display data with a certain parameter?
Have a model order, the model has the active property. I need to show all orders or only those that are active at the moment how to do it in REST terms?
asked July 2nd 19 at 17:22
- for all
- only active
your host, respectively.
All /orders (OrdersController#index)
Active /orders/active (OrdersController#active)
Find more questions by tags Ruby on RailsRESTful API