link_to is the method in Ruby on Rails that is used to create link tags within views.
link_to
is the method in Ruby on Rails that is used to create link tags within views.
e.g., With the appropriate route defined and the profile object with ID=1,
link_to "Profile", @profile
would return the HTML fragment
<a href="/profiles/1">Profile</a>
More details can be found in the Ruby on Rails API documentation.