Ruby on Rails Friday, July 29, 2016

On Fri, Jul 29, 2016 at 3:47 AM, amitoj singh <amitojsingh95@gmail.com> wrote:

> The main thing in our application which we want to store in the cache
> is a form. User can view and enter their information in the
> form(without internet connectivity) and that information is stored
> locally and when the application connects to the internet can
> automatically sync the data which is present locally with the main
> database on the server.

For that specific use case, you can write a browser-based JavaScript
application using local storage* but this really has little to do with Rails,
other than duplicating a lot of the logic of your app :-)

[*] https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDf-Z-jCECU5d6GyDddf8DTr0EheC8%2BmrA68mVkJ%3DWP6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment