Open jakeonfire opened 7 years ago
It sounds like you've already found the usual rails routing solution to this: define the other route first?
The thing I'd watch for here is people already inside the ember app not being able to visit those pages in the rails app because of ember thinking they're part of the ember app. If you're using # locations rather than urls inside of ember that might not be an issue, but I've never used them so not sure about that.
We mount the ember app to:
/dashboard
and also have routes like/dashboards/billing
, and when themount_ember_app
router line comes before thedashboards
routes, it catches all of them and shows the ember index page. E.g. navigating tolocalhost:3001/dashboards/billing
displays the ember app as if the route werelocalhost:3001/dashboard
. Ifresources :dashboards
comes first it appears to work, but whenmount_ember_app
is first, it seems to do a substring match and catches e.g./dashboardanythingafter/is/ignored
.Is it possible to only match routes that end with the mount path optionally followed by
/?#
? Or does that miss some cases?Which operating system and version is the project developed on? OS X Yosemite
Which version of
ruby
is the project developed on? 4.2.1Which version of
npm
is the project developed on? Yarn 0.24.4Which version of
ember-cli
is the project developed on? 2.11.0What is the
rails
version? 5.0.2What is the
ember-cli-rails
version (fromGemfile
)? 0.8.3What is the
ember-cli-rails-addon
version (frompackage.json
)? 0.8.0Is your application server multi-threaded (such as
puma
andunicorn
) or is it multi-process (such as thin and webrick)? puma - multi-threadedWhat are the contents of
config/initializers/ember.rb
?What are the contents of the Rails' view that renders the Ember application? gem default
How are the EmberCLI-related routes defined?
How is the application deployed? Capistrano