title: Rails: Adding routes to singleton resource
body: <p>So, if I have a singleton route...</p>
  
  <pre><code>resource :shared
  </code></pre>
  
  <p>... and I want to have custom action names instead of the standard CRUD names, do I still do...</p>
  
  <pre><code>resource :shared do
    collection do
      get 'foo'
      get 'bar'
      match 'baz'
    end
  end
  </code></pre>
  
  <p>... or can I go without the "collection" block and pass those routes directly to the singleton?</p>
  
  <p>In this case I don't want any of the standard CRUD routes either...</p>
  
  <p>Is there a simpler, cleaner way to setup routes to only the specific ajax related actions for my shared resources? I'm using this controller very sparsely, mostly it exists so that the <code>shared</code> view folder can serve things like my footer and my menus...</p>
  
  <p>Suggestions?</p>