title: Predefined routes doesn't work, why?
body: <p>I'm about to implement functionality for editing a project, but I can't get the route to work.</p>
  
  <p><strong>routes.rb:</strong></p>
  
  <pre><code>Ampta::Application.routes.draw do
    get "home/index"
  
    resources :projects
    resources :tickets
    resources :projects_users
    resources :users
  
    ...
  end
  </code></pre>
  
  <p><strong>the view that's linking to the path:</strong></p>
  
  <pre><code>...
  &lt;%= link_to "Show tickets", tickets_path%&gt;&lt;br/&gt;
  &lt;%= link_to "Manage projects", edit_project_path %&gt;&lt;br/&gt; // &lt;--- The link
  &lt;%= link_to "Log out", signout_path, method: "delete"%&gt;
  ...
  </code></pre>
  
  <p>(I have defined the action 'edit' in the project controller, but it doesn't yet contains any code.)</p>
  
  <p>When running rake routes, the route is there so why do I get the following error explaining that's not the case:</p>
  
  <pre><code>No route matches {:action=&gt;"edit", :controller=&gt;"projects"}
  </code></pre>