title: redirect after logging in rails to desired page
body: <p>below my the app controller and routes, normally when i open localhost:3000 its show me the positions/new page, now i get redirected to the login page which is good, but after logging in it does nothing .... while it should be routed to 'positions#new'</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    before_action :authenticate_user!
  end
  
  routes:
  Rails.application.routes.draw do
    devise_for :users
  
    root to: 'positions#new'
  
  resources :positions
  </code></pre>
  
  <p>end</p>