README.md in field_test-0.3.0 vs README.md in field_test-0.3.1
- old
+ new
@@ -2,10 +2,11 @@
:maple_leaf: A/B testing for Rails
- Designed for web and email
- Comes with a [dashboard](https://fieldtest.dokkuapp.com/) to view results and update variants
+- Uses your database for storage
- Seamlessly handles the transition from anonymous visitor to logged in user
Uses [Bayesian statistics](https://www.evanmiller.org/bayesian-ab-testing.html) to evaluate results so you don’t need to choose a sample size ahead of time.
[![Build Status](https://travis-ci.org/ankane/field_test.svg?branch=master)](https://travis-ci.org/ankane/field_test)
@@ -73,9 +74,28 @@
button_color:
winner: green
```
All calls to `field_test` will now return the winner, and metrics will stop being recorded.
+
+You can keep returning the variant for existing participants after a winner is declared:
+
+```yml
+experiments:
+ button_color:
+ winner: green
+ keep_variant: true
+```
+
+You can also close an experiment to new participants without declaring a winner while still recording metrics for existing participants:
+
+```yml
+experiments:
+ button_color:
+ closed: true
+```
+
+Calls to `field_test` for new participants will return the control, and they won’t be added to the experiment.
You can get the list of experiments and variants for a user with:
```ruby
field_test_experiments