a child page at user/:username/choice

This commit is contained in:
Rimian Perkins
2017-02-10 15:10:47 +11:00
parent 90ed0e03df
commit c0529c5bdb
8 changed files with 28 additions and 16 deletions
@@ -1,5 +1,6 @@
export default function() {
this.route('choice', function() {
this.route('form');
});
}
export default {
resource: 'user',
map() {
this.route('choice');
}
};
@@ -0,0 +1,5 @@
export default Ember.Controller.extend({
user: Ember.inject.controller(),
username: Ember.computed.alias('user.model.username_lower'),
email: Ember.computed.alias('user.model.email'),
});
@@ -1,2 +1,2 @@
<a href="/choice/form">Choice page</a>
<a href="/users/{{model.username}}/choice">Choice payments page</a>
@@ -0,0 +1 @@
{{email}}