Note that there are some explanatory texts on larger screens.

plurals
  1. USkevinml
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COFinally figured this out. I was able to workaround by not embedding the child objects in the parent, so sending separate POSTs to the API once for the parent, then again for each child which included a parent_id. This was not an ideal solution so I went back to working on an embedded parent/child json request. My original problem was indeed with my Rails API. I followed @dgeb's example again and realized I didn't know much about strong parameters. Thankfully there's a [Railscast](http://railscasts.com/episodes/371-strong-parameters) for that! Once I implemented that correctly I'm good to go!
      singulars
    2. CO@Pedr - Unfortunately no. It does seem to be an issue with Rails not accepting the JSON I am sending. If I remove the {embedded: 'always'} from the App.store, 2 separate JSON posts are sent for the parent and child with the child having a 'parent_id'. Submitting my POSTs this way are successful, however I would like to just send the 1 post with the embedded parent/child objects. Following this example [https://github.com/dgeb/ember_data_example](https://github.com/dgeb/ember_data_example) and I can't figure out what I am doing different that would cause the error.
      singulars
    3. COIs it serializing correctly now for the 'date' model?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload