title: ActionController::UrlGenerationError in Devise::Sessions#new - No route matches
body: <p>I'm trying to figure out the following problem. Could someone help me out in the beginning of learning rails?</p>
  
  <h2>Environment</h2>
  
  <p>ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]</p>
  
  <p>Rails 5.1.4</p>
  
  <p>devise (4.3.0)</p>
  
  <h2>Current behavior</h2>
  
  <p>Following result is displayed in browser window after pressing 'Sign up' -link.</p>
  
  <blockquote>
    <p>ActionController::UrlGenerationError in Devise::Sessions#new</p>
    
    <p>No route matches {:action=>"new",
    :controller=>"devise/flight_records"}</p>
  </blockquote>
  
  <p>Following code in <strong>application.html.erb</strong></p>
  
  <pre><code>&lt;%= link_to 'Add New', {:controller =&gt; 'flight_records', :action =&gt; 'new'} %&gt;
  &lt;%= link_to 'Logbook', {:controller =&gt; 'flight_records', :action =&gt; 'index'} %&gt;
  &lt;%= link_to 'Sign Up', new_user_registration_path %&gt;
  &lt;%if user_signed_in? %&gt;
    &lt;%= link_to "Sign Out", destroy_user_session_path, method: :delete  %&gt;
  &lt;%else %&gt;
    &lt;%= link_to "Log In", new_user_session_path %&gt;
  &lt;% end %&gt; 
  </code></pre>
  
  <p>Following code in <strong>routes.rb</strong></p>
  
  <pre><code>Rails.application.routes.draw do
     devise_for :users
     resources :flight_records 
  
     #get 'welcome/index'
  
     root 'flight_records#index'
  </code></pre>
  
  <p><strong>Following routes in rake:</strong></p>
  
  <p>rake routes</p>
  
  <p><a href="https://i.stack.imgur.com/QYHDm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QYHDm.png" alt="enter image description here"></a></p>