views:

17

answers:

1

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

A: 

I got it! Here:

map.resources :regions, :collection => {:select_for_payroll => [:get, :post]}, has_one => :payroll

Mr M
Don't forget to accept your answers if you answer your question so that your accept rate is not so low... If it gets too low people might not want to answer your questions.
SeanJA
Oh, I didn't know about that. Do I just check the check mark?
Mr M