[Solved] How to change the color of link button in .erb template

[ad_1]

Use style for inline css

<%= link_to 'Explore', explore_path, style: "color: red;" %>

or use class

<%= link_to 'Explore', explore_path, class: "link-color" %>

and in stylesheet

.link-color{
  color: "red";
}

2

[ad_2]

solved How to change the color of link button in .erb template