Ruby feature flags installation
Add this to your Gemfile:
Terminal
In your app, set your API key before making any calls. If setting a custom host, make sure to include the protocol (e.g. https://).
Ruby
You can find your project API key and instance address in the project settings page in PostHog.
Next steps
| Resource | Description |
|---|---|
| Adding feature flag code | How to check flags in your code for all platforms |
| Framework-specific guides | Setup guides for React Native, Next.js, Flutter, and other frameworks |
| How to do a phased rollout | Gradually roll out features to minimize risk |
| More tutorials | Other real-world examples and use cases |