
Exposes Ruby on Rails database to the Javascript side.
This repo is for Ruby on Rails backend part of Databound.
Check out live examples on the Databound website databound.me.
You can also check out the javascript Databound repo.
Usage
User = new Databound('/users')
User.where({ name: 'John' }).then(function(users) {
alert('Users called John');
});
User.find(15).then(function(user) {
print('User no. 15: ' + user.name);
});
User.create({ name: 'Peter' }).then(function(user) {
print('I am ' + user.name + ' from database');
});