This is a simple Rails app that integrates with omniauth-ravelry to demonstrate what's necessary to do so.
See 92dd2c5 for an overview of all necessary app changes for basic integration.
In order to use this app, you'll need to set the following environment variables:
RAVELRY_KEY=[your key]
RAVELRY_SECRET=[your secret]
To get OAuth credentials for Ravelry, see the Ravelry API group.