Hi Breon,
That's more of a general Ember question, not specific to EmberFire, but lets see if I can give you some tips with links to the official docs.
For the first one you can define it as a standard route with a
dynamic segment:
// app/router.js
Router.map(function() { this.route('food', {path: '/food/:food_id'});
// ...
this.route('state', {path: '/state/:state_id'}, function() {
this.route('cities'); // templates at /
});
// app/routes/state.js
export default Ember.Route.extend({
model(params) {
return this.store.findRecord('state', params.state_id);
}
});
Hope that gives you enough to get it working.
Happy coding 🔥
Tim