Using addressable gem to parse urls