All threads / Connecting Ember with the Rails API Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Connecting Ember with the Rails API Discussion

Bryce Roney ·

What is the Chrome plugin for visualising JSON that you've used?

Reply
Reply

Great.. introducing ember to me..
I was stuck at that point proxy to localhost.3000. Then I got it working.

fill the .ember-cli => "proxy": "http://localhost:3000" /// not working
throw "Error when parsing file in " + path + ". Make sure that you have a valid JSON."

Can you pls. comment? Thanks

Shawn Nigel Rebello ·

The line before "proxy" You probably forgot to put a comma ,

Reply
JasonMarkBeaton ·

Awesome series! I've been wanting to get started with Ember and this video series is such a great help!
On a side note: I had trouble with 0.8.1 active model serializers gem. It did not include the jsonapi adapters, rendering json objects without a root. I upgraded the active model serializers gem to 0.10.2 and it pulled in a *now* working jsonapi adapter.

Great to know, thanks for sharing that. I'm sure it will be useful to other people. 👍

Reply

Does anybody know a nice tut how to deploy both (rails+ember) apps and make it work online. So I get to know the basics?

Reply

https://uploads.disquscdn.c...

Which is the ember version that you're using?
I'm running the ember server but the console is displaying what i'll show you in the image

Thanks for your help.

If you have a problem with the root key, you can overide the root key to "monsters"

https://github.com/rails-ap...

```ruby
#in rails-api/app/controllers
def index
@monsters = Monster.all
render json: @monsters, root: "monsters", adapter: :json
end
```

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.