Rails has a view helper called auto_linkfor example:
<%= auto_link("Please visit my site: http://www.example.org/") %>
will create:
Please visit my site: <a href="http://www.example.org/">http:
Update: You can find more information about this here .
source
share