url rails helper link 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) %>
<%= link_to "Get More Books", books_path, class: "index-link" %>
<%= link_to "Improve Your Ruby Skills", book_path(@book) %>