title: Using wildcard routes and url_helpers in rails 4
body: <p>I have a wildcard route set up - but I cannot get the built in helpers to generate the correct url. </p>
  
  <p><code>routes.rb</code></p>
  
  <pre><code>resources :projects do
      patch 'do/*action', to: 'projects#do', as: 'do'
  end
  </code></pre>
  
  <p><code>rake routes</code></p>
  
  <pre><code>project_do PATCH  /projects/:project_id/do/*action(.:format)         projects#do
  </code></pre>
  
  <p>which looks ok, but my helper <code>project_do_path(project)</code> generates <code>/projects/1234/do/do</code></p>
  
  <p>1) why how do I get rid of the second <code>do</code>
  2) can I configure it to include the action in the helper?</p>
  
  <p>I have read <code>http://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments</code> but it does not talk about helpers in the wildcard section.</p>
  
  <p>thanks and best regards</p>