Aug 29, 2017 · 1 min read
Jen. Great article. The one I was looking for recently.
Please explain me one more thing. In controller you have function:
CreateBoardGame() { let newBoardGame = this.get(‘newBoardGame’) let newRecord = this.store.createRecord(‘boardgame’, { title: newBoardGame }) newRecord.save()
so how does your post route look like?
Is it need to be (depends on backend tech of course):
route.post(‘/boardgame’,createRecordsInDbFunction) ?
What are you pointing at in CreateBoardGame action function?
