Skip to content

Ships backbone and underscore to your Rails 3.1 application through the new asset pipeline. Rails 3.0 is supported via generators.

License

Notifications You must be signed in to change notification settings

ivanvanderbyl/rails-backbone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backbone-rails

Developing javascript applications on top of rails just got faster thanks to the Rails 3.1 asset pipeline. Like jquery-rails, this gem bundles some javascript files to make them available to your application:

How to use it

Rails 3.1

Add it to your Gemfile:

gem 'backbone-rails'

Require what you need in app/assets/javascripts/application.js.coffee:

#= require json2
#= require underscore
#= require backbone

With pure javascript, the lines would look like app/assets/javascripts/application.js:

//= require json2
//= require underscore
//= require backbone

Rails 3.0

backbone-rails ships with a generator that copies all javascript files to public/javascripts. You can run it with rails g backbone:install.

Versioning

The gem will follow backbone versioning.

Contributors

  • John Bintz (Support for Rails 3.0 via generators)

About

Ships backbone and underscore to your Rails 3.1 application through the new asset pipeline. Rails 3.0 is supported via generators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%