This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
generators/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
rdoc/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.rdoc
VotingInfoProj
This plugin will let you use the Voting Information Project’s data in your own election information application. It provides rake tasks for importing source files and models for using the data. Simple default controllers are included, but can be superceded by any you create in apps/controllers. If you’re interested in sample views, check out the demo app.
Requirements
- acts_as_tree plugin
- libxml-ruby gem
Getting started
- Install the plugin …
As a git submodule
git submodule add git://github.com/neworganizing/rails_vip.git vendor/plugins/rails_vip
Or, a new git repo
git clone git://github.com/neworganizing/rails_vip.git vendor/plugins/rails_vip
Or, just download and copy to vendor/plugins
- Run migrations
./script/generate rails_vip_migration rake db:migrate
- Use the rake task to import data
Example
rake vip:parse VIP_URL=http://election-info-standard.googlecode.com/files/sample%20feed%20for%20v1.5.xml RAILS_ENV=production
- Make views, (optionally controllers), map resources
Future work
- tests
- ignore bad tags, according to spec
- external links
- handle ballot candidate order
Copyright © 2009 New Organizing Institute, released under the MIT license









