0.01
No commit activity in last 3 years
No release in over 3 years
Gem for using Chaplin.js with Rails asset pipeline, based on chaplin-rails boilerplate project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

ChaplinOnRails

Gem for using Chaplin.js with Rails asset pipeline, based on chaplin-rails boilerplate project.

Since Chaplin requires module system this gem has requirejs-rails gem in dependecy. Those, you're forced to use requirejs for your project :)

Gem already comes with underscore.js and backbone.js.

Installation

Add this line to your application's Gemfile:

gem 'chaplin-on-rails', git: 'git://github.com/eicca/chaplin-on-rails.git'

And then execute:

$ bundle

Usage

Run

rails g chaplin:install

It should create basic application structure with some basic files. To learn more about this see chaplin-rails.

This gem generates new application.js.coffee for you, so you should migrate your old application.js to requirejs config file and remove application.js file.

Also, there might be a problem with replacing requirejs_include_tag. Just follow for generator's output instructions.

TODO

  1. Write tests for install generator.
  2. Write generators for scaffold/resource/controller/model.