post method in link to tag rals code example
Example: post request rails link_to
link_to "Profile", profile_path(@profile.id, param1: 'value1', param2: 'value2'), method: :post
link_to "Profile", profile_path(@profile.id, param1: 'value1', param2: 'value2'), method: :post