Sha256: a886750bf0b1d52210d18d4de55ac7a3c09c639a837ad31c567012f4b26766f4
Contents?: true
Size: 1.32 KB
Versions: 6
Compression:
Stored size: 1.32 KB
Contents
[](http://badge.fury.io/rb/databound) [](http://badge.fury.io/bo/databound) [](http://badge.fury.io/js/databound) [](https://codeclimate.com/github/Nedomas/databound) [](https://travis-ci.org/Nedomas/databound)  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](http://databound.me). **You can also check out the javascript** [Databound repo](https://github.com/Nedomas/databound). ## Usage ```js 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'); }); ``` [More API docs](http://nedomas.github.io/databound/src/databound.html)
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
databound-2.0.1 | README.md |
databound-2.0.0 | README.md |
databound-1.1.0 | README.md |
databound-1.0.2 | README.md |
databound-1.0.1 | README.md |
databound-1.0.0 | README.md |