Sha256: e2fcc130b3ca9d742020045471b9c702049e53508fd2ab329ff0e5870ce794eb
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
# GuineaPig Very simple ABTest functionality for Ruby, based in ActiveRecord and with Rails 3 generators ## Installation Add this line to your application's Gemfile: gem "guinea_pig" ## Usage ### Configure the experiments # config/ab_experiments.yml experiment_monkey: - "alternative_monkey_1" - "alternative_monkey_2" experiment_elefant: - "alternative_elefant_1" - "alternative_elefant_2" - "alternative_elefant_3" ### Create the table rails generate guinea_pig:migration rake db:migrate ### Experiment! #### LandingPage experiment redirect_to GuineaPig.alternative(:experiment_monkey, user) #### CSS experiment <%= stylesheet_link_tag "/assets/css/#{GuineaPig.alternative(:experiment_monkey, user)}.css" %> ### Convert! if user.has_bought_something? GuineaPig.conversion(:experiment_monkey, user) end ## Sate of the art Beta version but already used in production environments
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guinea_pig-0.1.3 | README.md |