Sha256: ebe1dd6a88f0af92714f1249674270147cbe1a852a57ec314bbccc294a19806a

Contents?: true

Size: 831 Bytes

Versions: 23

Compression:

Stored size: 831 Bytes

Contents

# Rails and Determinator example

This example Rails app has been configured so that Determinator is correctly configured, and (with an instance of the Actor Tracking Service) it will correctly determine feature rollout and experiment variant selection.

## Points of interest

### `config/initializers/determinator.rb`

This file sets up the singleton Determinator instance for the application.

### `app/controllers/index_controller.rb`

An example of how Determinator can be used for feature flags and experiments.

### `app/controllers/application_controller.rb`

An example of how a GUID could be assigned to every visitor to the site. Storing this in the session means it will be reset upon log out.

The `determinator` method memoizes the instance of the `ActorControl` helper class for ease of use throughout this request.

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
determinator-2.2.0 examples/determinator-rails/README.md
determinator-2.1.0 examples/determinator-rails/README.md
determinator-2.0.0 examples/determinator-rails/README.md