Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:08:56+00:00 2026-05-26T18:08:56+00:00

I have this application where I use Devise and, after login the user is

  • 0

I have this application where I use Devise and, after login the user is redirected to a blank page with the path /users/sign_in.user.

Why is Devise redirecting to this path? Here’s the log entry I get:

Started POST "/users/sign_in.user" for 127.0.0.1 at 2011-11-10 15:56:03 -0200
  Processing by Users::SessionsController#create as 
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"ukqyLFgApCSybuIlVynPwj/xgdI/WuHLxoFxOsY4wgQ=", "user"=>{"email"=>"felipe.coury@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Entrar"}
  User Load (1.8ms)  SELECT `users`.* FROM `users` WHERE `users`.`email` = 'felipe.coury@gmail.com' LIMIT 1
   (0.2ms)  BEGIN
   (1.0ms)  UPDATE `users` SET `last_sign_in_at` = '2011-11-09 18:47:04', `current_sign_in_at` = '2011-11-10 17:56:04', `sign_in_count` = 14, `updated_at` = '2011-11-10 17:56:04' WHERE `users`.`id` = 1
   (0.3ms)  COMMIT
Completed 406 Not Acceptable in 112ms

Here’s my complete routes.rb file:

MyApp::Application.routes.draw do
  root :to => "site#home"
  match 'biblioteca' => 'site#library', :as => :library

  devise_for :users, :controllers => { :sessions => "users/sessions" }
  devise_for :admin_users, ActiveAdmin::Devise.config

  ActiveAdmin.routes(self)

  resources :cursos
  resources :matriculas
  resources :modulo_statuses
end

I tried using after_sign_in_path_for in ApplicationController:

def after_sign_in_path_for(resource_or_scope)
  Rails.logger.info "***** LOGGED IN, GOING TO #{root_path}"
  root_path
end

But the log entry doesn’t even appear.

Does anyone have any idea why this happens?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:08:57+00:00Added an answer on May 26, 2026 at 6:08 pm

    This is probably happening because something like this is being called: user_session_path(user) and you actually don’t need the user as argument, so Rails treats it as the format. This is likely wrong in the form_for call in your sign in view. after_sign_in_path_for is not being called because Rails is not considering the given URL a valid request (that’s why the response is 406 acceptable).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this application but how to use its? and example for 7-zip can?
I have an C# form application that use an access database. This application works
I have this .bat script which I use to maven package my application. Problem
I have this easy little form in my JavaFX application. I want to use
I have to use an other application (console) to pass some parameter to this
I have an application thats going to use Active Directory for Authentication. This will
I have my Windows Application that accepts args and I use this in order
I have an iPhone application which will exit on it's own after a user
I have a user model that is generated using Devise. I am extending this
I have this application I'm developing in JSP and I wish to export some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.