Sha256: a886750bf0b1d52210d18d4de55ac7a3c09c639a837ad31c567012f4b26766f4

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

[![Gem Version](https://badge.fury.io/rb/databound.svg)](http://badge.fury.io/rb/databound)
[![Bower version](https://badge.fury.io/bo/databound.svg)](http://badge.fury.io/bo/databound)
[![NPM version](https://badge.fury.io/js/databound.svg)](http://badge.fury.io/js/databound)
[![Code Climate](https://codeclimate.com/github/Nedomas/databound/badges/gpa.svg)](https://codeclimate.com/github/Nedomas/databound)
[![Build Status](https://travis-ci.org/Nedomas/databound.svg)](https://travis-ci.org/Nedomas/databound)

![Databound](https://cloud.githubusercontent.com/assets/1877286/4743542/df89dcec-5a28-11e4-9114-6f383fe269cb.png)

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