I also mapped some additional actions including a search action and a
cheapest actions that returns the list of hotels filtered with a
specific algorithm.
Now I need to implement a new feature for resolving some data
conflict.
The feature requires an action to display the conflict
(HotelController#conflict => GET) and an other action for resolving
the conflict (HotelController#resolve => PUT).
Because I have 2 different actions with different http methods but
basically related to the same feature, should I map the features using
resource :member or should I use a classic #connect and switch between
get/post checking request method within the action?
I see the first one is the most used but usually only because the
projects I used as examples were originally designed for Rails 1.2
without a real consideration of map.resource.
No, I think I found it by reading the source of the routing helpers (or the testing support for routes). I don't recall whether I'd tried the [:get,:post] way and that failed or I just never needed to do that when routing to a single action.