-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
49 lines (31 loc) · 1016 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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