0
I’m having difficulty maintaining the style of a button by removing the link_to and keeping only raw:
=link_to(raw("<span class='calsse'></span>"), rota)
for:
=raw("<span class='calsse'></span>")
when I do this the button loses all style, just getting written "button" on the page.
Have you tried
"<span class='classe'></span>".html_safe
?– user7261
I just tried, it didn’t work out
– André Ventura
The problem isn’t just the class name spelled wrong? (You wrote
calsse
).– user7261
Probably the style you want to keep is associated with the tag
a
in css. Ex:a .classe { ... }
– GuiGS