title: Create a routes entry from your own gem
body: <p>I'm writing a gem and I'm going to use it with Rails 4. Is it possible for me to add a route from my Gem rather than from config/routes.rb in my rails project? I want this to be inside a gem so I can include it in more than one Rails project without having to configure every Rails project, rather do it once in the gem. Is that possible and how?</p>
  
  <p>i.e :</p>
  
  <p>If my routes were :</p>
  
  <pre><code>get 'test' =&gt; 'users#test'
  </code></pre>
  
  <p>how would that translate into my gem. If my gem were used as an engine just like RB suggested in his answer :</p>
  
  <pre><code>module Blorgh
    class Engine &lt; ::Rails::Engine
      get 'test' =&gt; 'users#test'
    end
  end
  </code></pre>
  
  <p>This doesn't work, what am I doing wrong?</p>