Why do I need to work harder to make my Rails application fit into a RESTful architecture?

后端 未结 6 628
有刺的猬
有刺的猬 2020-12-23 11:44

I started a Rails project recently and decided to use RESTful controllers. I created controllers for my key entities (such as Country) and added index, ne

6条回答
  •  一整个雨季
    2020-12-23 12:26

    To remain RESTful in your design, you need to rethink what you call a resource.

    In your example a show action for a search controller, (search resource) is the direction to remain restful.

    In mine, I have a dashboard controller (show) and controllers for single fields of in-place ecditors (show and update)

提交回复
热议问题