Do you know of a way to transform user-inputted URLs into actual links? For instance, when a user types in "http://yahoo.com", how can we convert that into <a href="http://yahoo.com">http://yahoo.com</a> Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 1, 9:09 am, Bob Sanders <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Do you know of a way to transform user-inputted URLs into actual links? > > For instance, when a user types in "http://yahoo.com", how can we > convert that into <a href="http://yahoo.com">http://yahoo.com</a> > > Any ideas? > -- > Posted viahttp://www.ruby-forum.com/.http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000630 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
gene tani wrote:> On Nov 1, 9:09 am, Bob Sanders <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Do you know of a way to transform user-inputted URLs into actual links? >> >> For instance, when a user types in "http://yahoo.com", how can we >> convert that into <a href="http://yahoo.com">http://yahoo.com</a> >> >> Any ideas? >> -- >> Posted viahttp://www.ruby-forum.com/. > > http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000630perfect! thanks, gene! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---