Forum: Ruby on Rails second/overlay rails root directory ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2007-01-18 20:10
(Received via mailing list)
Hello Folks, is there a way to have rails look for files from 2
different root directories ?

Heres the scenario...

- we deploy our apps to lots of customers
- they each have a few customizations (views, configs, css, etc)
- I would like my rails to look for files like this

- first search RAILS_ROOT/overlay/customer1
- then search RAILS_ROOT like normal

so if nothing was in the overlay directory, all the files would come
form RAILS_ROOT like normal
- but if RAILS_ROOT/overlay/customer1/app/welcome/_message.rhml
existed, it would use that

Or am I in left field here ?

This seems easy to do assuming rails finds files from one centralized
place, then you could just add this functionality there.
This topic is locked and can not be replied to.