Sha256: 723f04c53cf71b6fb51e0c445d76417ea0b49faf97969140531ecbf9f6efe6e2

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

# canjs-rails

CanJS for Rails!

This gem provides:

  * can.jquery 1.0.7 (and can.jquery.min)
  * all can.js plugins available as of CanJS 1.0.7

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.

```ruby
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`:

```js
//= require can.jquery
```

You're done!

## Acknowledgements

Many thanks are due to [the jquery-rails project](https://github.com/rails/jquery-rails/) as it was used as the basis for this gem.

Copyright [Craig Wickesser](http://mindscratch.org), released under the MIT License.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canjs-rails-1.1.2 README.md
canjs-rails-0.1.0 README.md