Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 17:59:00 GMT)

RubyURL-friendly library

Posted by Wed, 01 Jun 2005 23:21:00 GMT

Vincent Foley-Bourgon has just released ShortURL.

From his post:

You can install it with RubyGems:

$ gem install -r shorturl

or you can go to and download
the tar.bz2 archive.

Usage is very simple, here's a sample irb session:

>> require "rubygems" 
=> true 
>> require "shorturl" 
=> false 
>> ShortURL.shorten("") 
=> "" 
>> ShortURL.shorten("", :tinyurl) 
=> "" 

On that note, RubyURL is almost at 1,000 unique URLs!
Get help with your Rails project

comments powered by Disqus