Add new strain

This commit is contained in:
Matthew Dillon 2015-06-01 11:14:01 -08:00
parent c5b28f7204
commit dfc62cd1ac
6 changed files with 36 additions and 1 deletions

12
app/routes/strains/new.js Normal file
View 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');
}
}
});