l'essentiel est invisible pour les yeux

Tuesday, July 15, 2008

[Rails] Gears on Rails helps developers to write fully offline functionnal web applications

Google anounced about Gears on Rails, see Take your Rails application offline with the Gears on Rails project. We can listen to audio interview. This is Rails plugin to manipulate offline data from RoR.We can install GoR as Rails plugin is as follows:

% sudo gem install json_pure
% rails gor_demo && cd gor_demo
% ruby script /plugin install http://gearsonrails.googlecode.com/svn/trunk/acts_as_local

It need to add acts_as_local method in your controller in order to use it.

acts_as_local :except => [:hello]

def create_local
post = Post.build(params("post"));
window.location.reload( false );

Sorry, I never use GoR yet, but It seems interesting, so i may use it. See Gears on Rails in order to see how to write view and controller for more details.