Sha256: a752e040be6c78c5ced0f403976c571fd55a56187b177c27fc1658bb69d1a701
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
# eyeballs_rails # eyeballs_rails is a gem for using eyeballs.js in your Ruby on Rails projects. eyeballs_rails brings the `eyeballs_javascripts` method to Rails, which wraps `javascript_include_tags` but also includes all of the eyeballs.js dependencies, including jQuery and mustache. It also includes all of your models and controllers. ## Installation ## Just add `'eyeballs'` and `'eyeballs_rails'` to your `Gemfile` ## Using eyeballs in Rails ## To install and/or update eyeballs javascripts in your Rails app, from the root directory, run: eyeballs init This will vendor eyeballs and its dependencies into `public/javascripts/vendor`, the config files into `public/javascripts/config` and set up an initial `public/javascripts/app` directory. To create a model, for example `Post`, just run: eyeballs generate model Post Same for controllers: eyeballs generate controller posts Finally, at the bottom of your template, just before the `</body>` tag, put the `eyeballs_javascripts` helper.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
eyeballs_rails-0.1.9 | README.md |
eyeballs_rails-0.1.8 | README.md |
eyeballs_rails-0.1.7 | README.md |
eyeballs_rails-0.1.6 | README.md |
eyeballs_rails-0.1.5 | README.md |