<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js'></script>
<script src='active-storage.js'></script>
<script>
var Post = Object.create( new ActiveStorage("Post") );
</script>
Link to the ActiveStorage Library and create a new model.
You now have access to your favorite ActiveRecord methods, powered by localStorage!
var p = Post.new({name: "Jesse"});
var p = Post.create({name: "Jesse"});
p.save();
Post.find( 1 );
Post.findBy( {name: "Jesse"} );
Post.where( {name: "Jesse"} );
Post.all();
p.destroy();
Post.destroyAll();