Is there a ruby helper for making absolute links out of User Contributed links if they are not absol
Posted
by Trip
on Stack Overflow
See other posts from Stack Overflow
or by Trip
Published on 2010-05-13T18:28:13Z
Indexed on
2010/05/13
18:44 UTC
Read the original article
Hit count: 177
ruby-on-rails
|jruby
For example,
User adds this "iamsmelly.com".
And if I add an href to this, the link would be
www.mywebsite.com/iamsmelly.com
Is there a way to make it absolute if its not prepended by an http:// ?
Or should I revert to jQuery for this?
© Stack Overflow or respective owner