Skip to content

neworganizing/rails_vip

Repository files navigation

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

About

A rails plugin for VIP data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages