app/controllers/sessions_controller.rb
# Show login screen ("new" shows the page for trying to create a session)
Show login screen ("new" shows the page for trying to create a session)
Show login screen ( " new " shows the page for trying to create a session )
def new
    if logged_in?
      flash[:success] = t('sessions.already_logged_in')
      redirect_to root_url
    else
      use_secure_headers_override(:allow_github_form_action)
      store_location_and_locale
    end
  end
def new if logged_in? flash [ :success ] = t ( 'sessions.already_logged_in' ) redirect_to root_url else use_secure_headers_override ( :allow_github_form_action ) store_location_and_locale end end
Show login screen ("new" shows the page for trying to create a session)
Show login screen ( " new " shows the page for trying to create a session )