RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Why is URI.join so counterintuitive?

I recently found myself using URI.join to construct certain some redirect URLs. But I quickly ran into a problem. URI.join wasn’t behaving like I expected. In this post we trace the unexpected behavior through the source of URI.join and back to the original RFC. - http://blog.honeybadger.io/why-is-uri-join-so-counterintuitive/

Comments

You can use File.join:

File.join(“https://www.honeybadger.io”, “plans”, “change”)

:)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in