I have resources in routes file:
resources :forwardings
And I need to add the action which will save settings to all items in collection.
The question is which method should I use to implement this one?
resources :forwardings do
put 'save_all', :on => :collection
# or
post 'save_all', :on => :collection
end
Maybe I'm missing some details and I'd glad to hear out. Thanks