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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -