Center Grid
Bottom Grid Grid

Feature flags for Ruby.

Use feature flags in your Ruby applications to deploy new features faster, improve reliability, and release confidently.

Feature flags for Ruby and Ruby on Rails - LaunchDarkly hero image
Skip video and get the code
Hand clicking play button
Decouple deployments from releases in Ruby image

Decouple deployments from releases in Ruby

Are you developing a Sinatra or Ruby on Rails project? Or just looking to build with your favorite Ruby gem? Use feature flags (aka feature toggles) in Ruby to deploy code changes to a subset of users, instantly roll back buggy features, and run A/B tests in production safely. Start feature flagging with LaunchDarkly’s Ruby SDK.

Install the Ruby SDK
Why feature flag management? image

Why feature flag management?

LaunchDarkly’s feature management platform enables you to use feature flags on a massive scale across a variety of complex use cases. Unlike configuration files (config files), LaunchDarkly flags let you progressively roll out new features to targeted groups of users, disable problematic code paths in 200ms, and take complete control over every feature in your Ruby application.

See the benefits of feature flag management

Get started with LaunchDarkly for Ruby

Install the SDK

gem install launchdarkly-server-sdk
Copy code

Bring the SDK into your code

require 'ldclient-rb'

user = {key: "toggle123"}
client = LaunchDarkly::LDClient.new(ENV['LD_SDK_KEY'])
Copy code

Start evaluating flags

rubyFlag = client.variation("rubyFlag", user, false)

puts "The flag value is #{rubyFlag}"
Copy code
Rob Zuber, CTO, CircleCI

Feature flags are a critical piece of modern development, and LaunchDarkly brings this part of continuous delivery to the masses.

CircleCI

Rob Zuber

CTO

Introducing feature flag management for Ruby

A best practice in modern software development that reduces risk, accelerates code delivery, and lowers your stress.

Make feature management a reality

Small, frequent, low-risk deploys

Gain the confidence to ship faster. In separating code deployments from feature releases, LaunchDarkly feature flags allow you to safely test new functionality in production before a formal software launch.

Instant rollbacks

Resolve incidents in real-time. Use feature flags like kill switches to turn off defective code with a single toggle. No engineers scrambling to put out fires, no emergency fixes, no restarting your entire app.

Progressive rollouts

Use feature flags in Ruby to roll out front-end and back-end features to a specific subset of users. As you gain confidence in a feature's performance, gradually roll it out to the broader userbase.

Collaborative software delivery

Empower business stakeholders to turn features on/off for users. Enhance the customer experience and save engineers time. Developers, deploy when you want. Let the business release later.

Blue grid background

We've been able to roll out new features at a pace that would've been unheard of a couple of years ago.

IBM
Michael McKaySr. Development Manager

Discover how to deploy code faster with less risk.

Get a demo