Answer the question
In order to leave comments, you need to log in
How does the server request mechanism work in RoR applications with EmberJS?
I'm trying to integrate EmberJS into my Ruby on Rails application. Reached the moment when you need to get data from the server.
As far as I know in EmberJS the routing is something like this: " example.com/#/users " or " example.com/#/product/1 ".
And in RoR, routing happens in the usual way for us (back-end developers): " example.com/users " or " example.com/product/1 ".
How can I get data from the server in this case? How to set it up? If possible, tell me where you can see examples of implementation. On the github, I did not find anything worthwhile and clear.
Answer the question
In order to leave comments, you need to log in
Usually, client frameworks work with API over http(s).
emberjs.com/guides/models/connecting-to-an-http-server
emberjs.com/guides/models/the-rest-adapter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question