0

Text field Tag:

<%= text_field_tag :note, "#{f.notes}", :placeholder => 'Add a note about this rating set..' %>

How can I style f.notes to have a background color so that the note looks highlighted after being submitted.

4

1 回答 1

0

如果你把

:class => 'cssclass' 

它将添加您想要的 css 类样式

于 2013-03-04T18:47:07.493 回答