rails link_to class code example
Example 1: rails link_to class
<%= link_to "Get More Books", books_path, class: "index-link" %>
Example 2: rails link to
<%= link_to "Improve Your Ruby Skills", book_path(@book) %>
Example 3: link to do rails
<%= link_to books_path do %>
<%= image_tag "Book Collection" %>
<% end %>