dispatcher-rails
An easy way to use fnando/dispatcher-js with assets-pipeline.
Installation
Add this line to your application's Gemfile:
gem 'dispatcher-rails'
And then execute:
$ bundle
Usage
The dispatcher file will be added to the asset pipeline and available for you to use. Add these lines after //= require jquery
in app/assets/javascripts/application.js
:
//= require dispatcher
Use the helpers:
<%= dispatcher_tag %>
to generate a metatag:
<meta content="projects#index" name="page">
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
MIT License. Copyright 2012 Tiago Rafael Godinho