README.mdown in split-0.6.3 vs README.mdown in split-0.6.4

- old
+ new

@@ -245,10 +245,23 @@ logger.info "experiment=%s alternative=%s user=%s complete=true" % [ trial.experiment.name, trial.alternative, current_user.id ] end ``` +### Experiment Hooks + +You can assign a proc that will be called when an experiment is reset or deleted. You can use these hooks to call methods within your application to keep data related to experiments in sync with Split. + +For example: + +``` ruby +Split.configure do |config| + config.on_experiment_reset = proc{ |experiment| # Do something on reset } + config.on_experiment_delete = proc{ |experiment| # Do something else on delete } +end +``` + ## Web Interface Split comes with a Sinatra-based front end to get an overview of how your experiments are doing. If you are running Rails 2: You can mount this inside your app using Rack::URLMap in your `config.ru` @@ -549,10 +562,10 @@ ## Extensions - [Split::Export](http://github.com/andrew/split-export) - easily export ab test data out of Split - [Split::Analytics](http://github.com/andrew/split-analytics) - push test data to google analytics - - [Split::Mongoid](https://github.com/MongoHQ/split-mongoid) - store data in mongoid instead of redis + - [Split::Mongoid](https://github.com/MongoHQ/split-mongoid) - store experiment data in mongoid (still uses redis) ## Screencast Ryan bates has produced an excellent 10 minute screencast about split on the Railscasts site: [A/B Testing with Split](http://railscasts.com/episodes/331-a-b-testing-with-split)