8000 GitHub - phiphie/databound-rails: Ruby gem - Provides Javascript a simple API to the Ruby on Rails CRUD
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ruby gem - Provides Javascript a simple API to the Ruby on Rails CRUD

License

Notifications You must be signed in to change notification settings

phiphie/databound-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Bower npm Code Climate Build Status

Databound

Provides Javascript a simple CRUD API to the Ruby on Rails backend.

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) {
    alert('User no. 15: ' + user.name);
  });

  User.create({ name: 'Peter' }).then(function(user) {
    alert('I am ' + user.name + ' from database');
  });

All API docs

About

Ruby gem - Provides Javascript a simple API to the Ruby on Rails CRUD

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 83.0%
  • JavaScript 8.6%
  • HTML 7.4%
  • CSS 1.0%
0