I want to convert urls in a string to workable urls. For example:
str = "Hello, this is the link for yahoo: http://www.yahoo.com"

//in the view i have
<%= parse_description(r[:description]) %>
//in helper, i am splitting each word in the string and verifying if i have a string which
// contains http, if http is present then i am using link_to to make it a valid url:
def parse_description(str)
s = ""
str.split.each do |w|
a = w.include?("http") ? (link_to nil,"#{w}") : w
s += "#{a} "
end
end

once the string is returned back to the view, the link is not clickable. what wrong i am doing?