RailsVoter
Installation
Add Rails-Voter gem to your Gemfile:
Current version
gem 'rails_voter', github: 'SunnyRails/rails_voter'
RubyGems version (0.2.1)
gem 'rails_voter'
Run bundle install
Use the install generator to set up Rails-Voter:
rails g rails_voter:install
Update
Run bundle update rails_voter
Use the update generator to set up Rails-Voter:
rails g rails_voter:update
Browse Rails-Voter plugin
http://localhost:3000/rails_voter/
To insert a ballot form or display the voting result use helpers.
erb:
<%= embed_ballot_form(<< Election Id >>) %>
<%= embed_voting_result(<< Election Id >>) %>
haml:
= embed_ballot_form(<< Election Id >>)
= embed_voting_result(<< Election Id >>)
License
This project rocks and uses MIT-LICENSE.