Skip to main content

Connecting Ember with the Rails API Discussion

General • Asked by Chris Oliver

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



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

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

You are right.. Thanks..


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. 👍


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?


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
```


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.