Ruby Developer Center

Develop applications with Oracle Database. Build Ruby and Ruby on Rails applications using the ruby-oci8 driver or JRuby with the Oracle enhanced adapter for ActiveRecord.

Ruby Developer Center
  • What is Ruby?

    Ruby is a highly flexible programming language. Developers coding in Ruby can change the way the language itself works.

    Learn more about Ruby
  • Getting started with Ruby (and Ruby on Rails) on OCI

    Ruby isn’t just for web applications. Learn how to use Oracle Cloud Infrastructure (OCI) and Ruby together for projects such as DevOps, automation, command-line tools, and data processing. Oracle’s deep experience in data and processing make OCI a beautiful complement to your Ruby projects.

    Learn more with these projects
  • Run your Ruby code faster using TruffleRuby

    TruffleRuby is the GraalVM high performance implementation of the Ruby programming language.

    Get started with TruffleRuby
  • TruffleRuby on OCI Container Instances

    Easily get started with high performance Ruby applications on OCI.

    Get started with TruffleRuby
  • Introducing myfile: A base Rails app on OCI

    Get started using Ruby on Rails with a simple web app that shows you how easy it is to create a basic online file manager for uploading, downloading, and sharing files on OCI.

    Learn how to create a simple app
  • Using Active Storage

    Build on your simple Ruby on Rails web app and learn how to use Active Storage to handle file uploads, downloads, and storage in OCI Object Storage.

    Learn more about Active Storage
  • Ruby gem: Dragonfly

    Learn how using the Ruby gem Dragonfly and OCI Object Storage gives you plenty of options when building a web app on Oracle Cloud—because one size doesn’t fit all.

    Learn more about Dragonfly
  • Ruby gem: CarrierWave

    Learn how to use CarrierWave along with Fog::Storage to store items, and explore some ways to clean up temp files created when running your application.

    Learn more about CarrierWave
  • Ruby gem: Shrine

    Discover how to use the Ruby gem Shrine in your myfile application, including how to update the model you previously built.

    Learn more about Shrine
  • Benchmarking CRuby, MJIT, YJIT, JRuby, and TruffleRuby

    See how TruffleRuby can understand and optimize Ruby code significantly better than any other implementation of Ruby.

    Compare Ruby versions

Making quick-and-dirty REST calls to the OCI API in Ruby

When using Ruby, it's possible to leverage the power and all of the object-oriented goodness that the OCI Ruby SDK offers, and yet it’s also possible to make lightweight calls directly to the OCI API. Sometimes when we’re building applications we need a “quick-and-dirty” method to test our app before proceeding. In this article, we look at a simple REST call method to the OCI API, perfect for prototyping and testing.

Getting started with Ruby (and Ruby on Rails) on OCI

Build, test, and deploy applications on Oracle Cloud for free. Sign up once and get access to two free offers.