How to create automatic hyperlinks for URLs in the text / line displayed in the view? I have a page that displays a userβs activity log, and in this log / text / line there are some random URLs that I automatically want hyperlinks to open in a new browser window. Is it auto_link
in ruby ββrails, how can I use it?
text = "User xyz accessed url - http://www.something.com on 04/13/2012 00:13:18GMT" <%= "#{Text}" %>
I want this to display with a hyperlink to the URL. The URL can be anything in the text.
source share