link_to post code example
Example 1: post request rails link_to
link_to "Profile", profile_path(@profile.id, param1: 'value1', param2: 'value2'), method: :post
Example 2: rails link to
<%= link_to "Improve Your Ruby Skills", book_path(@book) %>
link_to "Profile", profile_path(@profile.id, param1: 'value1', param2: 'value2'), method: :post
<%= link_to "Improve Your Ruby Skills", book_path(@book) %>