Skip to content

Instantly share code, notes, and snippets.

var store = $.cloudkit;
store.boot({
// booting the store reads the metadata on the server,
// loads existing data, and configures the local store
// for use
success: function() {
@jcrosby
jcrosby / gist:172991
Created August 22, 2009 21:43
RubyConf09 Proposal
Embracing Collaboration with JRuby and JavaScript
Description
As web developers, we live in an arranged marriage with JavaScript. What is a Rubyist to do? Use
JavaScript as a compile target? Abstract it away on the server? With JRuby, we can embrace the shared
language of the web in a compelling way, building reusable libraries that work across the client
server boundary. By bridging Ruby to JavaScript using Rhino, we gain shared databases, including their
indexing strategies. We gain remote model discovery and shared client/server validation. We gain a
shared query language. And because it is JavaScript, we gain the entire web community as
require 'sinatra/base'
require 'sinatra/cloudkit'
class MyApp < Sinatra::Base
register Sinatra::CloudKit
set :admin_openid, 'http://joncrosby.me'
mount :todos, :groups, :archives
get '/myurl' do