Ruby Developer Center

Developing 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.

Getting started with Ruby

What is Ruby?

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

Getting Started With Ruby (and Ruby on Rails) on OCI

Ruby isn’t just for web applications! Learn how to use OCI and Ruby together for projects like 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.

Ruby Articles

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 simple online file manager for uploading/downloading and sharing files on OCI.

myfile: Using Active Storage

Building on our simple web app, we’ll now use OCI Object Storage for an even more robust file tool that implements Rails Active Storage.

myfile — file attachment implementation using Dragonfly

Using the Ruby gem Dragonfly and OCI Object Storage, this article shows how you have plenty of options when building a web app on Oracle Cloud – because one size doesn’t fit all!

Ruby Gem - Carrierwave

Exploring more Ruby gems, this time Carrierwave joins the party. Here we’ll use it along with Fog::Storage to store items, plus we’ll explore some ways to clean up temp files created when running the application.

Ruby Gem - Shrine

Again building on our myfile application, this time we’ll see how to use the Ruby gem shrine in our application, including how to update the model we previously built.

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, yet 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’ll look at a simple REST call method to the OCI API, perfect for prototyping and testing.

Documentation

Install Ruby and Rails:
RubyJRubyRuby on Rails

 

Use oracle-enhanced:
oracle-enhanced homepageREADME

 

Use ruby-oci8:
ruby-oci8 homepageNews NotesAPI Documentation