0.0
No commit activity in last 3 years
No release in over 3 years
Voting system for Rails applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

RailsVoter

Circle CI Gem Version

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.