Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

  1. Add this line to your Rails application's Gemfile:

    gem "oas_rails"`
    
  2. Execute:

    bundle
    
  3. Mount the engine in your config/routes.rb file

    mount OasRails::Engine => '/docs'
    

You'll now have basic documentation based on your routes and automatically gathered information at localhost:3000/docs. To enhance it, create an initializer file and add Yard tags to your controller methods.