Filter query results from URL hash


I'm developing a very simple product catalogue. Different product
types and categories for each type.

I'd like to filter the results on my browse controller based on the
values that have been appended to the URL.

for example would display all products would display all
would display all UsedBooks in used_book_category 4.


at the moment in the catalogue_controller.rb I'm trying

def browse
  @products = Product.find(:all, :conditions => params[:product]

how would I get the values from the url loaded into the
params[:product] variable? And am I correct in thinking that it will
then pick up the params declared in the URL and automatically filter
the Products according to the criteria.

I think this can be done, saving a lot of hassle in the long term. Any
help would be really appreciated.