You are here: Browse Railsplugins Active_poll
Location: Uruguay, Montevideo
This plugin allows polls, integrated with your user model, within your application.
Install plugin * Run the following command:
./script/plugin install http://active-poll.googlecode.com/svn/trunk/active_poll
This command will download the plugin code and run a script. The script will prompt you which is the name of the model you want to associate with a user vote (tipically the user model). . Otherwise, you just can press ENTER, telling the plugin that you don't want to assosiate a model, this way, the plugin would not be able to track which users made the votes for a particular poll.
./script/generate active_poll
rake db:migrate
Create poll
./script/runner vendor/plugins/active_poll/create_poll.rb
The script will ask you which are the answers, which is the questions displayed, among other configurations (allows multiple selection, who is allowed to vote: registered users, anonymous, etc.) for the poll.
Show poll in views
.. <%= active_poll ( poll_name, { :in_place => true, :redirect_to => some_url, :view_dir => view_directory } ) %> ..
Where:
class SomeController end
acts_as_vote_handler
..More Information, improvment & comments
For more information you can visit the following page: http://railshotspot.blogspot.com/2008/01/activepoll-plugin.html If you have any comments, questions, and/or suggestions please don’t hesitate to send me an email active.poll@gmail.com
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly
Homepage: http://railshotspot.blogspot.com/2008/01/activepoll-plugin.html
Categories: Other