title: How to add a route to a ruby gem
body: <p>I've been creating a gem and I need to create a route that maps to a controller in the gem.</p>
  
  <p>I have a file ( <em>config/routes.rb</em> ) which looks like this:</p>
  
  <pre><code>Rails.application.routes.draw do
  
    match "rest/*path" =&gt; "bconnected/apis#rest"
  
  end
  </code></pre>
  
  <p>My controller lives in *app/controllers/bconnected/apis_controller.rb*</p>
  
  <p>My gemspecs file includes all of these files.</p>
  
  <p>I run gem build, and gem install.</p>
  
  <p>I include my gem in the rails Gemfile but when I try to hit that URL I get:</p>
  
  <p><em>No route matches [GET] "/rest/test"</em>'</p>
  
  <p>Do I need to do anything special for Rails to read my routes.rb file from the gem?</p>