We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f3adf3 + ccf3f63 commit 77bb9ffCopy full SHA for 77bb9ff
app/routes/keyword.js
@@ -0,0 +1,11 @@
1
+import Ember from 'ember';
2
+
3
+export default Ember.Route.extend({
4
+ model(params) {
5
+ return this.store.find('keyword', params.keyword_id).catch(e => {
6
+ if (e.errors.any(e => e.detail === 'Not Found')) {
7
+ this.controllerFor('application').set('flashError', `Keyword '${params.keyword_id}' does not exist`);
8
+ }
9
+ });
10
11
+});
app/templates/keyword/error.hbs
@@ -0,0 +1 @@
+{{ title 'Keyword Not Found' }}
0 commit comments