This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
templates/ | ||
| |
test/ | ||
| |
uninstall.rb |
README
MultiAppRouting
================
The goal of the MultiAppRouting plugin is to allow easy linking between multiple rails applications on different hosts.
Installation
=======
script/plugin install git://github.com/jakehow/multi_app_routing.git
Example
=======
In routes.rb:
map.application(:billing, :protocol => 'https') do |billing|
billing.resources :payments
end
In config/applications.yml:
production:
billing:
host: billing.yourdomain.com
In your code:
billing.payments_url => https://billing.yourdomain.com/payments
Notes
======
Options must be valid url_for options to do anything. See
http://api.rubyonrails.com/classes/ActionController/Base.html#M000267
Options precedence is as follows:
billing.payments_url(:host=>'google.com) (in a view or controller)
overrides:
map.application(:billing, :host=>'yahoo.com') (in routes.rb)
overrides:
production:
billing:
host: billing.yourdomain.com
(in applications.yml)
Copyright (c) 2007 Jake Howerton, released under the MIT license







