Jon Hancock wrote:
> your method breaks it up into something like this:
>
> <span class="class1" class2=""> </span>
>
> I've tried to debug this a year or so ago...I never found a way where
> merb/erb didn't screw it up.  This seems to be a case of ruby libs
> trying too hard.
>
> Does anyone have a hack around this problem?
>
> thanks, Jon
>   
How about:

<span class="<%=class1%> <%=class2%>"></span>

or

<span class="<%=[class1, class2].join(' ')%>"></span>

I think one of the problems you had was not having quotes around the 
classes. Without it, class2 would be another attribute name. That, and 
your first example joins the array without putting a space between the 
classes.

Derek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to