Am 15.06.2007 um 16:25 schrieb Werner Laude:
in html : <p style="color: red;">ist rot</p>
=> nicht toll, aber manchmal nötig.
Wie schreibe ich das in RoR ?
etc..}, :style => color random_color %>
wobei random_color ein helper ist.
:style => random_color
und dann als helper
def random_color
"color: red;"
end
bzw. wahrscheinlich dann deine Zufallsfarbe einfach als Style-
Anweisung in einem String zurück geben.
Gruß,
Hendrik
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug