Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created March 18, 2009 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technicalpickles/81202 to your computer and use it in GitHub Desktop.
Save technicalpickles/81202 to your computer and use it in GitHub Desktop.
Add to integrity's config.ru to make redirecting happy
Integrity::Helpers::Urls.module_eval do
def url(path)
path = "/#{path}" unless path =~ /^\//
"#{Integrity.config[:base_uri]}#{path}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment