Ruby on Rails Wednesday, July 27, 2016

On 27 July 2016 at 12:55, amitoj singh <amitojsingh95@gmail.com> wrote:
> Hello Developers,
> I am working on a Web rails project which is working fine with the
> Internet. But I have to use this project in the areas where there is
> no or very less internet connection. So I would have to make this web
> application work offline.
>
> The application contains multiple pages. How can I do so? I thought to
> do so using cache I have found this
> http://guides.rubyonrails.org/caching_with_rails.html. Can I use this
> in my application? If yes then how?. I want all my views(html) as well
> as assets( stylesheet and Javascript) should work offline.
>
> I had tried rack offline but it can only do single page offline. Now I
> am working on service worker but still unable to do multiple pages
> offline.

Rails caching as described in the guide describes how to cache common
pages on the server, not in the browser PC. If you do not have access
to the internet (and therefore cannot access the server) then this
form of caching will not help.

If you want to use your application offline then the pages must be
saved somewhere. Where are you hoping that this might happen? In
the browser?

Colin

> Thanks.
>
>
> --
> "Never repeat yourself"
> Amitoj singh
> slideshare.com/amitoj95
> github.com/amitojsingh
> amitojsworld.wordpress.com
>
> --
> 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/CAKiq3e%3DkGm_GVcZRxDwMVANWX5XdU-mAOVD%3DSP%3DnAzYo4d01zw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

--
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/CAL%3D0gLsMZbSJBjtO6S3dKdww3Wy6%2BkVCDpbPvqEfDdCGjLAeuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment