Readme.md in optimizely_server_side-0.0.7 vs Readme.md in optimizely_server_side-0.0.8
- old
+ new
@@ -87,17 +87,19 @@
#### In your html.erb
```ruby
# in any app/view/foo.html.erb
<% experiment(EXPERIMENT_KEY) do |config| %>
+
<% config.variation_one(VARIATION_ONE_KEY) do %>
- <%= render partial: 'variation_one_experience'
+ <%= render partial: 'variation_one_experience' %>
<% end %>
<% config.variation_default(VARIATION_DEFAULT_KEY, primary: true) do %>
- <%= render partial: 'variation_default_experience'
+ <%= render partial: 'variation_default_experience' %>
<% end %>
+
<% end %>
```
#### In your model or any PORO
@@ -131,16 +133,18 @@
```ruby
# in any app/view/foo.html.erb
<% experiment(EXPERIMENT_KEY) do |config| %>
+
<% config.variation_best_experience(VARIATION_ONE_KEY) do %>
- <%= render partial: 'variation_one_experience'
+ <%= render partial: 'variation_one_experience' %>
<% end %>
<% config.variation_pathetic_experience(VARIATION_DEFAULT_KEY, primary: true) do %>
- <%= render partial: 'variation_default_experience'
+ <%= render partial: 'variation_default_experience' %>
<% end %>
+
<% end %>
```
In the above examples: