link_to rails with post 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