How do i pass/save a selected param ID to different views?

hi,

i have a link called ‘family doctor’.

when the user presses the ‘family doctor’ link, it goes through town’s
DB and searches in which towns where there is a family doctor. after
this is done, the view displays all the towns with the total number of
‘family doctors’ in each town.

next i want the user to select the town that they are interested in and
display all the doctors information in that town in a new view.

brief algorithm:

*user selects doctor type

select from all towns where doctor type == family doctor.
add up the amount of family doctors in each town

new view-
display all towns where there is a family doctor with the amount of
family doctors in each town

*user selects town

select from town where town == town selected and where doctor type ==
family doctor.

i guess i am wondering how to keep family doctor as the doctor type
through this whole process. will i need to use session information? and
for the last step, how do i pass the town and doctor type to the next
function?

thanks for any help/suggestions.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs