i am using rails 1.2.6 please forgive me as this application is live
and i could not find the time to move it to rails 2.0
i have a index.rhtml for items
item has 3 attributes other than id, they are name, category and size
current status =>
inside the index.rhtml
i obviously already display my data as below:
name category size
a mugs L
aa mugs M
abc towels L
bb toothpaste S
what i need now is an additional drop down list that will contain all
possible categories of the products
so if i choose let say, mugs from the drop down list the whole page
can either using ajax to refresh the list to contain just mugs or do a
refresh of the page.
this drop down not only needs to include teh varioous categories but
also the word 'All' so that if the user chooses All , the list will
again display all items in database.
Can someone please enlighten me on how to do this?