I have a route that currently looks like this:
map.resources :regions, :collection => {:select_for_payroll => :get}, has_one => :payroll
How can I make the :select_for_payroll take both GET and POST?
Many 开发者_如何学JAVAthanks!
MrM
I got it! Here:
map.resources :regions, :collection => {:select_for_payroll => [:get, :post]}, has_one => :payroll
精彩评论