Add css class to rails link_to helper

后端 未结 5 2031
星月不相逢
星月不相逢 2020-12-24 10:43

I\'m trying to style a rails link using css using the following code:

<%= link_to \"Learn More\", :controller => \"menus\", :action => \"index\", :         


        
5条回答
  •  情歌与酒
    2020-12-24 11:10

    I solved my problem by the way

    <%= link_to image_tag("imageexamplo.png", class: 'class or id examplo css'),{controller: "user" , action: "index"}%>
    

提交回复
热议问题