Ruby On Rails, Design, Simplicity, Web 2.0, Ajax, Mac and Tons of Pizza.

Apr 06

Safari, HTTP authorization and REST

Posted by Sandro Paganotti in Ruby on Rails - comments are closed digg this add to delicious

I’ve just discovered an annoying bug in Safari that prevent you using RESTful urls by escaping the semi-colons. Googling around I found that the Rails community has prepared a patch in the meanwhile, you can install it as a plugin from the FingerTips blog.

If you’re using a caching mechanism there is also a way to dinamically escape semi-colons only in safari browsers using Javascript: thank you Dan Kubb

UPDATE: As Dan wrote in a comment (thank you again Dan ) rails core team has replaced semi-commas with slash in the rails edge version.

Comments

  • Dan Kubb

    Posted on April 06

    One thing to keep in mind is that DHH recently updated Edge Rails so that the semi-colon isn't used to separate the action from the RESTful URL. It now uses the forward slash as the separator.
  • Sandro

    Posted on April 06

    Thank you Dan for this usefull comment :-) I'll update the post with this new infos.

Post a comment

Categories:

Tags:

Powered by Mephisto, Valid XHTML 1.1, Valid CSS - Supported by Wave Factory