title: rails custom rest route with parameter
body: <p>I have a questions controller and an associated model and a number of rest routes.  Here is how it's set up in routes.rb:</p>
  
  <pre><code>resources :questions 
  </code></pre>
  
  <p>I want to add a custom route that has the format /questions/widget/ID (where ID is the id of the question for which I want to generate a widget).  I want this to be processed by the "widget" action in my questions controller.  I've tried a number of things such as:</p>
  
  <pre><code>resources :questions  do
     member do
        get 'widget/:id'
     end
  end
  </code></pre>
  
  <p>But nothing is working.  I'm sure I'm missing something simple.  Any ideas?  Thanks in advance.</p>