No commit activity in last 3 years
No release in over 3 years
Backbone-relational provides one-to-one, one-to-many and many-to-one relations between models for Backbone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1
 Project Readme

backbone-relational-rails

backbone-relational-rails wraps the Backbone-relational library in a rails engine for simple use with the asset pipeline first provided by rails 3.1. The gem includes the development (non-minified) source for ease of exploration. The asset pipeline will minify in production.

Backbone-relational provides one-to-one, one-to-many and many-to-one relations between models for Backbone.

Usage

Add the following to your gemfile:

gem 'backbone-relational-rails'

Add the following directive to your Javascript manifest file (application.js):

//= require backbone-relational

Versioning

backbone-relational-rails 0.10.0 == Backbone-relational 0.10.0

Every attempt is made to mirror the currently shipping Backbone-relational version number wherever possible. The major, minor, and patch version numbers will always represent the Backbone-relational version. Should a gem bug be discovered, a 4th version identifier will be added and incremented.

Backbone Version

This release of Backbone-relational is only compatible with Backbone >= 1.2.1.

Acknowledgements

Many thanks to @derekprior for his tutorial on gemifying assets for Rails and his momentjs-rails gem.