How do I pass a variable to a query in a url (noob question)

I am a noobie to rails and have just started building my own rails
project. I successfully built a simple crud admin and added all the
records into a mysql database ready to build a public product
catalouge.

I have displayed a browse section of the application with a links of
categories from the database and want have a page which displays a
list of products from the appropriate category is selected.

Can someone point me in the right direction? Your help will be much
appreciated.

LYN

link_to ‘Some Category’, :controller => ‘categories’, :action =>
‘show’, :id => category

There are several ways to do links now adays, especially with the
introduction of RESTful routing… you should have a look at routing
and buy the latest Agile Development with Rails book.