Gears on Rails, their open source framework that makes it easier than ever to take a Rails code-base offline.
First you install the Gears on Rails plugin via:
ruby script /plugin install http://gearsonrails.googlecode.com/svn/trunk/acts_as_localThen you can create a Rails controller and tell it that it is local via
Now you can create an action in the controller by creating a method that uses an API that looks Rails-like:
post = Post.build(params("post"));
window.location.reload( false );
This means that your architecture revolves around REST calls, and when you are offline they all occur on local data that can sync up later. The synchronization is done for you automatically.
Thanks to Michael and Rui for taking the time to discuss their project with us, and thank you for reading.
Listen to the audio interview directly (or subscribe via iTunes).