Probably a basic question, but new to Rails and web programming and haven't found a good answer in researching through this site.
Across four pages and three controllers and one database, starting at the home page(pages controller): pick-up 2 params (in a form_for) that will be used in the fourth page to find in records in a database table, and one variable(set in a hidden field) that will be used to determine which information is displayed in the fourth page. On clicking submit, move to a second and third page(categories controller) to pick-up two more params(one on each page) in link_to’s, before moving to the 4th page (products controller) where the variable from the home page is used to determine which information from the products table is to display.
What is the best way and syntax in the link_to to pick-up these params and variable and move them across the controllers and pages? Where would I define this variable?