Reputation: 22352
I have been tasked with exploring the possibility of offline access of my webapp. What are people's experiences using google gears with rails? I am aware of the gearsonrails project, but it has some really strange constructs and doesn't appear to be under significant, active development.
Are there other options? Has anyone added gears to their existing rails app successfully? Is this super-painful?
Upvotes: 1
Views: 450
Reputation: 3021
Google Gears is dead, development has ceased. You're better off trying to solve your problem using HTML5, which implements APIs that make offline access possible (a client side database that can be queried using a SQL like language and a key-value store.) At this point, none of the major browsers completely implement the (developing) standard. So you have to make the decision between developing against a de facto obsolete plugin, or targeting an emerging standard.
Upvotes: 1
Reputation: 3814
I am looking into this myself - generally the idea is that depending on what you want to make available offline you need to setup on the client side (note, this is untested, and hence unverified - I'm just going from my understanding of what I have read - although I am planning on doing some experimentation in the next few weeks...)
In most situations I would recommend setting up standard restful resources with Rails, and then in your client library do something like the following:
Obviously this is a read-only example, and relies on the existing architecture using AJAX client side calls to populate data in the page etc.
Your means might vary, but I recommend just having a play around - remember you don't have to use Rails plugins etc to do this - you can just roll the client side script by yourself - and you never know, once your done you might be able to refactor your work out into a great little gem or similar...
Upvotes: 0