R
R
Ramil2015-02-17 12:00:02
Ruby on Rails
Ramil, 2015-02-17 12:00:02

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

3 answer(s)
A
Alexey, 2015-02-17
@MAKAPOH

Check out the discourse code , it's written in rails + emberjs.

K
kramidev, 2015-02-23
@kramidev

Link to ember + rails tutorial

M
Mikhail Osher, 2015-02-17
@miraage

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 question

Ask a Question

731 491 924 answers to any question