FIX: correct route for updating user title
This commit is contained in:
parent
1debf98d61
commit
a1f0375f1c
|
@ -62,7 +62,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
saveTitle() {
|
||||
const self = this;
|
||||
|
||||
return ajax("/users/" + this.get('model.username').toLowerCase(), {
|
||||
return ajax(`/users/${this.get('model.username').toLowerCase()}.json`, {
|
||||
data: {title: this.get('userTitleValue')},
|
||||
type: 'PUT'
|
||||
}).catch(function(e) {
|
||||
|
|
Loading…
Reference in New Issue