We wrote a blog post that shows how to use Rails with Okta: Simple Authentication with Rails and OmniAuth.