This is strange, I know. I am trying to link two Rails applications, v3 and v2.3.5
I want them to share the same domain, and for this, without changing the URLs in the older application, I am trying to find a way to redefine the Rails router.
I want the new application to be in the root of the domain, and the older one in several directories. For instance:
/ => app1
/users => app1
/employees => app2
/payrolls => app2
So, since app1 lives in root and I use Passenger, I need to create symbolic links in the publicapp1 folder for the app2 shared folder, for example:
app1/public/employees => app2/public
app1/public/payrolls => app2/public
Then add RailsBaseURI /employeesand RailsBaseURI /payrollsin Apache configuration.
URL- app2, . , /employees/1, /employees/employees/1, /payrolls/employees/1 , /employees/employees/1 /payrolls/employees/1 , .
, , URL.
, . v3 , , .
, , Rails , , , , .