Making suggestion

WIP
1) Suggestion is created but with the wrong id, has incrementing parent id (fixture-0, fixture-1, etc) instead of its own (100, 101, etc).
2) Error is thrown in the console:
`Uncaught Error: Assertion Failed: You can only add a 'initiative' record to this relationship`
3) template does not display saved suggestion (probably because of 2)).
It's the model itself that doesn't have the id number of the suggestions
model:

model:
 Class {id: "fixture-0", store: Class, container: Container, _changesToSync
: Object, _deferredTriggers: Array[0]…}

   1. __ember1407850986452: "ember639"
   2. __ember_meta__: Object
   3. __nextSuper: undefined
   4. _attributes: Object
   5. _changesToSync: Object
   6. _data: Object
      1. details: "f"
      2. id: "fixture-0"
      3. initiative: null
      4. __proto__: Object
   7. _deferredTriggers: Array[0]
   8. _dependentValidationKeys: Object
   9. _inFlightAttributes: Object
   10. _oldWillDestroy: function superWrapper() {
   11. _relationships: Object
   12. _super: function superFunction(){
   13. _suspendedRelationships: false
   14. _updatingRecordArraysLater: false
   15. container: Container
   16. currentState: Object
   17. errors: Class
   18. id: "fixture-0"
   19. queryParams: Object
   20. store: Class
   21. toString: function () { return ret; }
   22. validators: Array[1]
   23. willDestroy: function superWrapper() {
   24. __proto__: Object



On 12 August 2014 16:29, Oliver Azevedo Barnes <notifications@github.com>
wrote:

> In app/routes/initiatives/new.js:
>
> > @@ -11,6 +11,7 @@ var InitiativesNewRoute = Ember.Route.extend({
> >        var initiative = this.get('controller.model');
> >        initiative.save().then(function(model) {
> >          // model.save();
> > +        console.log('initiatives model:', model);
>
> try using debugger too
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/oliverbarnes/participate-frontend/pull/29/files#r16112341>
> .
>