⇠ Back to the blog
Cover for Add approval workflows to Rails in minutes

Add approval workflows to Rails in minutes

Christian Nguyen avatarWritten by Christian Nguyen

Many of our customers use Rails, so we created the open source cased-rails gem to make it a breeze to add Cased approval workflows to any Rails application. It works great with Cased Shell.

To get started:

  1. Install the cased-rails gem.
  2. Add mount Cased::Rails::Engine => '/cased' to your routes.rb file. This allows Cased to render some approval workflow views when necessary.
  3. Add before_action to any action you'd like to add approvals to. Whether the action is used to impersonate users, credit accounts, or access sensitive data, it's easy to get started.

All production rails console sessions can also be configured to require peer approval before sessions start. Cased also integrates with PagerDuty to auto approve sessions when someone is on call.