Ask A Question

Notifications

You’re not receiving notifications from this thread.

Connecting Ember with the Rails API Discussion

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

Reply
Reply

Very interesting.

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

Reply
Shawn Nigel Rebello Shawn Nigel Rebello

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

Reply
JasonMarkBeaton 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.

Reply

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.

Reply

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
Create an account Log in

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

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

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