Rails link_to with inline styling

前端 未结 8 1627
傲寒
傲寒 2020-12-15 16:30

I must change a link_to tag color without using a CSS class, how can I do? I\'ve tried something such as

<%= link_to item.description, {}, {:style=>\'c         


        
8条回答
  •  情书的邮戳
    2020-12-15 16:50

    I am pretty sure this code will work.

    <%= link_to "button_name",{:controller => 'controller_name', :action => 'action_name'},{:style=>"color:#fff;"}%>

提交回复
热议问题