how link to action rails code example
Example 1: rails link_to class
<%= link_to "Get More Books", books_path, class: "index-link" %>
Example 2: rails ink_to id
<%= link_to event, id: "an-id", class: "some-class" do %>
#bunch of stuff making up the partial.
<% end %>