R
R
Ruslan Galiev2014-11-13 13:51:59
Ruby on Rails
Ruslan Galiev, 2014-11-13 13:51:59

Slim How to set an attribute to a tag?

Hello
in ERB would do so
<tr <%='class=success' if order.exported_at %> >
How to do it in Slim?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Galiev, 2014-11-13
@HerMajor

tr class=('success' if order.exported_at)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question