Skip to content

Commit

Permalink
Merge pull request #31 from stabenfeldt/patch-1
Browse files Browse the repository at this point in the history
Updated README to reflect that alternatives must be strings.
  • Loading branch information
andrew committed Dec 20, 2011
2 parents aca2c5e + 636f0b4 commit 9c5ee94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.mdown
Expand Up @@ -81,14 +81,14 @@ Example: Controller

def register_new_user
# See what level of free points maximizes users' decision to buy replacement points.
@starter_points = ab_test("new_user_free_points", 100, 200, 300)
@starter_points = ab_test("new_user_free_points", '100', '200', '300')
end

Example: Conversion tracking (in a controller!)

def buy_new_points
# some business logic
finished("buy_new_points")
finished("new_user_free_points")
end

Example: Conversion tracking (in a view)
Expand Down

0 comments on commit 9c5ee94

Please sign in to comment.