I would like to connect Rails to Intel xdk

Asked

Viewed 52 times

0

My ultimate goal is to create an xdk app that interacts with Rails. If nobody knows exactly how it works but give a light on how to access the sqlite with ruby and javascript already helps a lot. I have some questions about the right way to do this. For example, is it ideal to create an initialize in Rails? Can’t access only with javascript because of the right security? Is there a Gem for this? Thank you.

1 answer

0

An alternative is you create a API REST with the rails , using for example the Gem Grape, and consume these data via JSON in its application Intel XDK.

As for the security issue it will be necessary that you configure the CORS in the rails for it to allow external access. In the link example it allows access only via get but vc can implement the other methods put, delete, post....

Browser other questions tagged

You are not signed in. Login or sign up in order to post.