As documented already by Doug URI.parse will thrown an exception if your URL has a trailing space. It also throws an exception on invalid URLs in general. To avoid having URI.parse bomb on your pages you can use a construct like this:
-
About the blog
This is the blog by the Ruby on Rails developers behind MyNewsdesk.com.
Read more about us →
Visit MyNewsdesk → -
Follow us on Twitter
-
Blogroll
-
Recent Posts
-
Tags
@media Analytics bit.ly design developer e-commerce gchartrb googlecharts Google Charts API google charts on rails hCard html5 i18n JSON litespeed Microformats newsdesk Operator Optimus passenger plugin pluralization postgresql RDFa Rich snippets ruby Ruby on Rails Semantic web SEO Services swedish swedish_pluralize The environment tip Transformator translate twitter usability Validator XML -
Subscribe