No commit activity in last 3 years
No release in over 3 years
Prefix any path in your app with something.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

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.

Rails 3

With Rails3 you can use the router to get a similar behaviour with:

# config/routes.rb
scope "/foo" do
  ... all your routes ...
end

Author

###Contributors

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