Quantcast
Channel: How do I add 2 conditional classes to a div? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Arpit Vaishnav for How do I add 2 conditional classes to a div?

$
0
0

Why dont you take it to a helper

View code

.progress{ :class => check_list_over_due }

Helper Code

def check_list_over_due  if condition'classname'  elsif condition'classname'  else'classname'  endend

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>