Sha256: 6dc1c64f93813d79d94c9582042ad88bd8057fc2585c13f272481ebd057d1613

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

Vanity is an Experiment Driven Development framework for Rails.

http://farm3.static.flickr.com/2540/4099665871_497f274f68_o.jpg

Requires Ruby 1.9.1 or later, Redis 1.0 or later.


== A/B Testing with Rails (in 5 easy steps)

Add Vanity to your Rails app:

  class ApplicationController < ActionController::Base
    use_vanity :current_user
  end

Define an A/B test.  This test compares three pricing options:

  experiment "Price options" do
    description "Mirror, mirror on the wall, who's the better price of them all?"
    alternatives 19, 25, 29
  end

Present different options to the user:

  <h2>Get started for only $<%= ab_test :pricing_options %> a month!</h2>

Measure conversion:

  class SignupController < ApplicationController
    def signup
      @account = Account.new(params[:account])
      if @account.save
        ab_goal! :pricing_options # <- conversion
        redirect_to @acccount
      else
        render action: :offer
      end
    end
  end

Check the report:

  vanity --output vanity.html

Learn more about Vanity: http://assaf.github.com/vanity


== Credits

Experiment Driven Development: Nathaniel Talbott (http://blog.talbott.ws).

Copyright (C) 2009 Assaf Arkin, released under the MIT license.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vanity-0.3.1 README.rdoc
vanity-0.3.0 README.rdoc