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


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

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