Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Now is the time on Sprockets vhen vhe dance! (sprockets for rails)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 rails
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
README.markdown

dancing_with_sprockets

The dancing_with_sprockets rails engine plugin makes it easy to use Sprockets in your Rails application

dancing_with_sprockets includes a controller named SprocketsController that renders your application's Sprockets concatenation. When caching is enabled, e.g. in production mode, SprocketsController uses Rails page caching to save the concatenated output the first time it is requested. When caching is disabled, e.g. in development mode, SprocketsController will render a fresh concatenation any time a source file changes.

This plugin makes it easy to use sprockets with rails. Just script/plugin install and write your javascript. Done.

Your narrative has become tiresome.

A note about the required Rails version

This is a rails engine plugin so it requres Rails > 2.3, however it started as a regular plugin (not engine). So if you want to use this plugin w/o upgrading to rails 2.3 for some reason, then you could just checkout the commit tagged pre_rails23_plugin of the dancing_with_sprockets plugin.

Installation

  1. gem install --remote sprockets

  2. script/plugin install git://github.com/coderifous/dancing_with_sprockets.git

  3. Now is the time on Sprockets vhen ve dance!

    During installation the plugin will create the app/javascripts/ directory in your application. You should create/move your javascript files under this directory and then include them in your views/layouts using the sprockets_include_tag "name_of_file" helper. The file will be sprocketized (all sprocket directives processed) and the resulting bundle will be served.

License

Copyright © 2009 Jim Garvin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.