link_to rails add id code example
Example: rails ink_to id
<%= link_to event, id: "an-id", class: "some-class" do %>
#bunch of stuff making up the partial.
<% end %>
<%= link_to event, id: "an-id", class: "some-class" do %>
#bunch of stuff making up the partial.
<% end %>