D
D
dexdev2014-10-25 11:03:41
Ruby on Rails
dexdev, 2014-10-25 11:03:41

How to work with cross-platform frameworks?

I just can’t understand how phonegap and the like work, do I understand correctly that rails acts as an api here and sends data with json, but how to set up this render json? Do I need to do all this through the angular backbone or can I somehow bypass the angular backbone etc? Share your experience

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_ _, 2014-10-25
@AdilA

Rendering json is in no way dependent on angularjs, backbone, etc.
Put rabl and generate health.

E
Eugene Burmakin, 2014-10-25
@Freika

Kind of a confusing question, no? Formulate better. From what I understood you need to understand how does Rails give back json? Read about render formats, this is written in the controller, depending on the request, you can give different formats: the browser is html, if they ask for json, then the same data is in json format, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question