title: Doorkeeper new_oauth_application_path not found
body: <p>I test the new rails 5 api. I want to create a oauth2 server consumme by a js client.</p>
  
  <p>I use Doorkeeper to manage the oauth2 server. </p>
  
  <p>In my routes.rb i have</p>
  
  <pre><code>Rails.application.routes.draw do
      use_doorkeeper
  end
  </code></pre>
  
  <p>doorkeeper.rb</p>
  
  <pre><code>resource_owner_authenticator do
    User.find_by_id(session[:user_id]) || redirect_to(new_user_session_url)
  end
  </code></pre>
  
  <p>When i go to '<a href="http://localhost:3000/oauth/applications" rel="nofollow">http://localhost:3000/oauth/applications</a>', i got the error:    </p>
  
  <pre><code>ActionView::Template::Error (undefined local variable or method `new_oauth_application_path' for #&lt;#&lt;Class:0x007fbf1f70c908&gt;:0x007fbf1f72f8b8&gt;)
  </code></pre>
  
  <p>Is doorkeeper not fully functionnal with rails 5 ? If it's not, do you known some gem like Doorkeeper ?</p>
  
  <p>I create manually the routes in routes.rb</p>
  
  <p>examples:</p>
  
  <pre><code>  get '/oauth/applications/:id(.:format)', to: 'doorkeeper/applications#show', as: 'edit_oauth_application'
    get '/oauth/applications(.:format)', to: 'doorkeeper/applications#index', as: 'root'
  </code></pre>
  
  <p>And now i have "undefined method `flash'".</p>