I have a simple table with 3 columns like so
table
thead
th Element
th Owner
th Progress
tbody
== render :partial => "element_row" :collection => @elements :as => table_element
Each element is unique, and one owner may have several elements. There are a few different types of "progress" e.g. "started"
, "not started"
, and "completed"
.
I want to create a few links that filter the table. For example, I want to create an started link where when the user clicks on the link, the table is filtered down to only show rows where "started"
is displayed. Another example of a filter is by owner.
Does anyone have any suggestions for how to do this?