No description, website, or topics provided.
Ruby Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app Removing Solr Jan 16, 2013
config Removing Solr Jan 16, 2013
db Upgrade rails version to cover vulnerabilities Jan 10, 2013
features rename: revindication -> claim Sep 17, 2012
lib Removing Solr Jan 16, 2013
public Adding extra link on Propostas relacionadas page Sep 18, 2012
spikes/votes-viz add different kinds of votes Feb 20, 2013
vendor Initial Setup of Rails, Testing Infra, Heroku, Mongoid Jun 8, 2012
.gitignore removing .rspec from gitignore Jan 10, 2013
.travis.yml Removing Solr Jan 16, 2013
Gemfile Removing Solr Jan 16, 2013
Gemfile.lock Removing Solr Jan 16, 2013 Update Jan 16, 2013
Rakefile Removing Solr Jan 16, 2013 bootstrap Jun 12, 2012 Initial Setup of Rails, Testing Infra, Heroku, Mongoid Jun 8, 2012

Build Status

Voto Como Vamos

O Voto Como Vamos será uma aplicação no Facebook que vai revolucionar a relação eleitor-candidato. Nele você vai saber tudo sobre as propostas e candidatos das próximas eleições de maneira simples, didática e rápida.


Gabriela Guerra -

Igor Czermainski -

Carolina Dalla -

Silvia Kihara -

Carlos Hoffmann -

Michel Coelho -

Amaralina Machado -

Daniel Mattos -

Para mais acesse:



  1. Fork the project

  2. Install RVM and then Ruby 1.9.3 with bundler 1.2.0:

     $ rvm install 1.9.3
     $ gem uninstall -ax bundler
     $ gem install bundler --pre
     $ bundle --version

    (The last step should ensure that the bundler version is correct.)

  3. Run bundle to download all of the dependencies for the project.

  4. Run rake db:migrate to create the database schemas then run rake db:seed and rake db:sample_data to feed your database with some basic data.

  5. Start Solr (the search engine we use) with rake sunspot:solr:start

  6. If you want to import the candidates data, run rake candidates:import

  7. Have Solr create its indexes for the search with rake sunspot:reindex

  8. Finally, start your local server with rails s and Voto Como Vamos should be up and running on your localhost!

  9. Aaaaand, you can run the automated tests suite running a rake with no other parameters!


  • If you get errors like Errno::ECONNREFUSED (Connection refused - connect(2)):, this means that Solr is not running. You need to start it with rake sunspot:solr:start.

    If you get this error while running the automated test suite, you need to start it on the test environment, with RAILS_ENV=test rake sunspot:solr:start.

  • Solr is running fine but I cannot see any Candidate nor Proposal!

    This happens if Solr didn't index anything. Run rake sunspot:reindex and this problem should be solved.


Voto Como Vamos Copyright (C) 2012 Porto Alegre Como Vamos

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.