This pull request implements the ability to use the relative_url_root configuration of Rails.
Background 📜
Sometimes it is necessary to host multiple Rails applications on a single host without subdomains. Therefore you need to use the relative_url_root configuration to set the prefix for the specific Rails application. For example
js_from_routes now supports the _relative_url_root configuration. It set the relative_url_root configuration of Rails by default, but could be overridden.
Description 📖
This pull request implements the ability to use the
relative_url_root
configuration of Rails.Background 📜
Sometimes it is necessary to host multiple Rails applications on a single host without subdomains. Therefore you need to use the
relative_url_root
configuration to set the prefix for the specific Rails application. For exampleconfig.relative_url_root = 'rails_app_1'
)config.relative_url_root = 'rails_app_2'
)The fix 🔨
js_from_routes now supports the _relative_url_root configuration. It set the
relative_url_root
configuration of Rails by default, but could be overridden.