public
Description: A poll system for a Rails applicaiton
Homepage: http://rollingwithcode.blogspot.com
Clone URL: git://github.com/fellix/acts_as_poll.git
name age message
file .gitignore Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
file CONTRIBUTORS Sat Jan 10 10:41:49 -0800 2009 added contributors file, and remove partials [fellix]
file MIT-LICENSE Sat Jan 10 10:41:49 -0800 2009 added contributors file, and remove partials [fellix]
file README Sat Feb 07 05:35:20 -0800 2009 README updated [fellix]
file Rakefile Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
directory generators/ Sat Feb 07 05:23:34 -0800 2009 Added CheckBox support for multiple option [fellix]
file init.rb Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
file install.rb Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
directory lib/ Sat Jan 10 08:58:11 -0800 2009 version 0.1 completed [fellix]
directory tasks/ Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
directory test/ Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
file uninstall.rb Fri Jan 02 11:37:06 -0800 2009 Initial commit [fellix]
README
= ActsAsPoll
==========

This plugin is a poll system for Ruby on Rails sites based.

== Example
=======

script/generate poll poll

use the poller method for creates a poll in your ERb template
for example use

poller(@poll)

@poll must be a valid Poll object.

== Models
The Acts As Poll plugin is divided into two models Poll and PollOption
You can customize this names using the

script/generate poll model_name

using this ModelName and ModelNameOption is your own models.
For use you need do create a Poll object
you can see the mtype column this column is for multi valored polls case mtype is C (CheckBox), if is only one answer 
for the Poll you can use R (RadioButton) for mtype column (default), you need to create the PollOption object for the 
Poll, each PollOption object is for each option to the user vote. 

== Warning
If you like to use the progressbar you need to add to you application.html.rb or in the view what you use de poller 
method, the progressbar stylesheet, this stylesheet is added to your public/stylesheet directory, use like it:

<%= stylesheet_link_tag "progressbar" %>
    
    

Copyright (c) 2009 Rafael Felix da Silva, released under the MIT license