How to set css styles with variables in rails if certain item is selected?

I’m doing the Ryan B. Sortable Table Columns screencast

If the item is inside a th tag and I want to a style if the item is
selected
how
can I do it?

Juan Mercedes wrote in post #1094911:

I’m doing the Ryan B. Sortable Table Columns screencast

If the item is inside a th tag and I want to a style if the item is
selected
how
can I do it?

I have attached a quick demo that might help get you started…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs