public
Description: A rails plugin for VIP data
Homepage:
Clone URL: git://github.com/neworganizing/rails_vip.git
Click here to lend your support to: rails_vip and make a donation at www.pledgie.com !
mattyb (author)
Tue Apr 07 11:23:08 -0700 2009
commit  d395074143154c1280801694253e5d85c842d6e0
tree    5b8697d952d679bdde0045a23c444ad3ed8dfda0
parent  9ccb6b392ec016df985c313c04d11f93e56964b5
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