Description

Acts As Caesar is a voting system – allowing up/down voting of objects.

Installation

Simply add acts_as_caesar to your Gemfile

gem"acts_as_caesar"

Requirements

You must have Redis server installed. We will seek to make the persistence layer database agnostic over time.

Candidate objects (things that are being up/downvoted, e.g. comments) must be persisted using ActiveRecord or Mongoid

You must have jQuery installed and JavaScript on the client-side is required.

Configuration

Acts As Caesar expects a Redis connection to exist on the $redis constant, if that’s not set it will connect to Redis on localhost, port 6379 (default for Redis server). You can easily create your own Redis connection using the code below (for Rails place this in config/initializers/redis.rb):