url validation in ruby on rails
Posted
by jpallavi
on Stack Overflow
See other posts from Stack Overflow
or by jpallavi
Published on 2010-06-08T11:32:46Z
Indexed on
2010/06/08
14:12 UTC
Read the original article
Hit count: 211
ruby-on-rails
1)Url field should also accept url as “www.abc.com”. If user enters url like this, it should be automatically appended with “http://” resulting in value saved in database as “http://www.abc.com”. If user enters url as “http://www.xyz.com” system should not append “http://”. User should be able to save url with “https://”. what is the code for it in ruby on rails?
© Stack Overflow or respective owner