Embed the link_to method in erb. The asset pipeline changes from link_to to a tag by converting the erb file to html. In this way, Ruby on Rails has a function to automatically convert Ruby code. Ehehe
Recommended Posts