Conditioned-routes is a project mainly written in ..., it's free.
Conditioned Routes is a simple and robust plugin that extends control over routes
Copyright (c) 2011
Version: 1.0 Author: Confiz Plugin Homepage: https://github.com/confiz/conditioned-routes Contributors: Shakeel Mumtaz, Hassan abdul Rehman, Jhanger Gul
Conditioned Routes is a simple and robust plugin that extends control over routes.
-> matching against sudomain, hostname, relative path or full url -> ability to compare using standard string matching functions including starts_with, ends_with and substring. -> supports regex.
-> rails 2.x.x -> 1.8.x
Conditioned Routes plugin can be installed by running this command from the application root
ruby script/plugin install [email protected]:confiz/conditioned-routes.git
After installation, follow these simple steps to setup the plugin. The setup will depend on the version of rails your application is using.
-> will match all requests with URLs with subdomain +equal to+ "tv" e.g tv.naitazi.com etc
-> will match all requests with URLs with hostname starting with "pak" e.g pakwheels.com, pakdonor.com
-> will match all requests with URLs with url matching the regex "/deals.*.org$/i" e.g deals.naitazi.com etc
===========================================================================================
Enjoy the simple Conditioned Routes implementation. Version: 1.0 Author: Confiz Plugin Homepage: https://github.com/confiz/conditioned-routes Contributors: Shakeel Mumtaz, Hassan abdul Rehman, Jhanger Gul
Any feedback/comment/issue/donation is welcome!
Contact: opensource[at]confiz[dot]com
===========================================================================================