Update docs

Optimize example for Rails, taking into account the environment configuration.