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 thanks!
MrM
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 thanks!
MrM
I got it! Here:
map.resources :regions, :collection => {:select_for_payroll => [:get, :post]}, has_one => :payroll