Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Prefix any path in your app with something.
Ruby
Tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rack
Rakefile
Readme.md
VERSION
rack-path_prefixer.gemspec

Readme.md

Prefix any path in your app with something.

  • Converts any incoming path from /foo/xxx to /xxx
  • Converts links in body from /xxx to /foo/xxx

As Rails plugin: rails plugin install git://github.com/grosser/parallel_tests.git
As Gem: sudo gem install rack-path_prefixer

config.middleware.use('Rack::PathPrefixer', :prefix => 'foo')

The replace links in body part is just a gsub, so it wont cover all cases.

Author

Contributors

Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...

Something went wrong with that request. Please try again.