css - Insert ruby in html class=" " property -
this stupid i've spent last 2 hours trying figure out how no luck @ all.
basically need html page following:
<div class="circleelement"> ... </div>
but need add more classes div class ruby, classes coming in text field in database.
i tried inserting ruby like:
<div class="circleelement"+ <%= u.tag %> >...</div>
and many different variations of line no luck @ :(
i should add u.tag holds string> "activetag classictag".... should append no problems it's not doing it!
<div class="circleelement <%= u.tag %>" >...</div>
should work.
Comments
Post a Comment