Add new strain
This commit is contained in:
parent
c5b28f7204
commit
dfc62cd1ac
6 changed files with 36 additions and 1 deletions
12
app/routes/strains/new.js
Normal file
12
app/routes/strains/new.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
model: function() {
|
||||
return this.store.createRecord('strain');
|
||||
},
|
||||
actions: {
|
||||
cancelStrain: function() {
|
||||
this.transitionTo('strains.index');
|
||||
}
|
||||
}
|
||||
});
|
Reference in a new issue