rails link_to href code example
Example 1: rails link_to class
<%= link_to "Get More Books", books_path, class: "index-link" %>
Example 2: link to do rails
<%= link_to books_path do %>
<%= image_tag "Book Collection" %>
<% end %>
<%= link_to "Get More Books", books_path, class: "index-link" %>
<%= link_to books_path do %>
<%= image_tag "Book Collection" %>
<% end %>