search for: show_sort

Displaying 1 result from an estimated 1 matches for "show_sort".

Did you mean: show_org
2007 Oct 05
1
RESTful Thinking
...that you have an application that has lists and items on that list. I can see how both lists and items can be set up as resources. Now, lets say you want to have an action to both show you the current sorted list* and then allow you to save a new sort. You would need a custom GET action to "show_sort" and a PUT or POST to "save_sort". map.resources :lists :member => {:show_sort => :get, :save_sort => :put} or map.resources :items :collection => {:show_sort => :get, :save_sort => :put} This just seems weird. Neither look great or feel RESTful. The resou...