0.0
No commit activity in last 3 years
No release in over 3 years
This gem provides CanJS (for jQuery) for your Rails 3.1+ application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

< 5.0, >= 3.2.0
~> 0.14
 Project Readme

canjs-rails

CanJS for Rails!

Note: this project is no longer maintained (2018-04-05)

This gem provides:

  • can.js 2.0.0 for jQuery (including all plugins)

This gem requires the asset pipeline, so it should work with Rails 3.1 or later. The version of CanJS included with this gem (can.jquery) requires jQuery, conveniently Rails 3.1 and later includes jquery-rails by default, so you won't need to explicitly install jQuery. However, if you aren't using jquery-rails make sure you install jQuery and require it before can.jquery in your app/assets/javascripts/application.js.

Installation

Add the canjs-rails gem to your Gemfile.

gem "canjs-rails"

And run bundle install.

Rails 3.1 or greater (with asset pipeline enabled)

To make the core CanJS library available add these lines to app/assets/javascripts/application.js:

//= require can.jquery

You're done!

Acknowledgements

Many thanks are due to the jquery-rails project as it was used as the basis for this gem.

Copyright Craig Wickesser, released under the MIT License.