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 6325955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:59:29+00:00 2026-05-24T16:59:29+00:00

Im setting up Devise authentication with my rails 3 project and when i click

  • 0

Im setting up Devise authentication with my rails 3 project and when i click the sign in button, it displays :

No route matches "/session/user"

No matter if I use valid credentials or not..

Heres my form for devise (which i did NOT edit from the defaults)

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:novalidate => 'novalidate'}) do |f| %>

Any suggestions?

UPDATE

Routes.rb

SpecimenTracker::Application.routes.draw do
  devise_for :users

  resources :users
resources :results
  resources :session
match "/results/show" => "results#show"
match "/messages/show" => "messages#show"
match "/login/index" => "login#index"
match "/login/authenticate" => "login#authenticate"
  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
get 'home/index'
root :to => 'home#index'
  # See how all your routes lay out with "rake routes"

  # Install the default routes as the lowest priority.
  # Note: These default routes make all actions in every controller accessible via GET requests. You should
  # consider removing the them or commenting them out if you're using named routes and resources.
end

Gemfile (only parts i added for devise)

gem 'net-ldap'

gem "devise", "~> 1.4"
gem "devise_ldap_authenticatable"


gem 'hpricot'
gem 'ruby_parser'

Output of rake routes (All the session on the bottom are from an old authentication system i tried using but then dumped. Shouldnt affect anything.. right? )

  new_user_session GET    /users/sign_in(.:format)      {:controller=>"devise/sessions", :action=>"new"}
        user_session POST   /users/sign_in(.:format)      {:controller=>"devise/sessions", :action=>"create"}
destroy_user_session DELETE /users/sign_out(.:format)     {:controller=>"devise/sessions", :action=>"destroy"}
               users GET    /users(.:format)              {:controller=>"users", :action=>"index"}
                     POST   /users(.:format)              {:controller=>"users", :action=>"create"}
            new_user GET    /users/new(.:format)          {:controller=>"users", :action=>"new"}
           edit_user GET    /users/:id/edit(.:format)     {:controller=>"users", :action=>"edit"}
                user GET    /users/:id(.:format)          {:controller=>"users", :action=>"show"}
                     PUT    /users/:id(.:format)          {:controller=>"users", :action=>"update"}
                     DELETE /users/:id(.:format)          {:controller=>"users", :action=>"destroy"}
             results GET    /results(.:format)            {:controller=>"results", :action=>"index"}
                     POST   /results(.:format)            {:controller=>"results", :action=>"create"}
          new_result GET    /results/new(.:format)        {:controller=>"results", :action=>"new"}
         edit_result GET    /results/:id/edit(.:format)   {:controller=>"results", :action=>"edit"}
              result GET    /results/:id(.:format)        {:controller=>"results", :action=>"show"}
                     PUT    /results/:id(.:format)        {:controller=>"results", :action=>"update"}
                     DELETE /results/:id(.:format)        {:controller=>"results", :action=>"destroy"}
       session_index GET    /session(.:format)            {:controller=>"session", :action=>"index"}
                     POST   /session(.:format)            {:controller=>"session", :action=>"create"}
         new_session GET    /session/new(.:format)        {:controller=>"session", :action=>"new"}
        edit_session GET    /session/:id/edit(.:format)   {:controller=>"session", :action=>"edit"}
             session GET    /session/:id(.:format)        {:controller=>"session", :action=>"show"}
                     PUT    /session/:id(.:format)        {:controller=>"session", :action=>"update"}
                     DELETE /session/:id(.:format)        {:controller=>"session", :action=>"destroy"}
        results_show        /results/show(.:format)       {:controller=>"results", :action=>"show"}
       messages_show        /messages/show(.:format)      {:controller=>"messages", :action=>"show"}
         login_index        /login/index(.:format)        {:controller=>"login", :action=>"index"}
  login_authenticate        /login/authenticate(.:format) {:controller=>"login", :action=>"authenticate"}
          home_index GET    /home/index(.:format)         {:controller=>"home", :action=>"index"}
                root        /(.:format)                   {:controller=>"home", :action=>"index"}
  • 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-24T16:59:30+00:00Added an answer on May 24, 2026 at 4:59 pm

    Check your config/routes.rb, is there a line for devise?
    If not, you may want to run

    rails generate devise_install
    

    And

    rails generate devise User
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Ruby on Rails application that used the Devise authentication system.
I am using Devise and omniauth for authentication in my rails app. I have
I use Devise for authentication and I have an admin role who can manage
I am trying to use both client_side_validations and devise in my Rails app, and
I just set up Devise (rails authentication plugin) to send a confirmation email upon
I'm trying to generate haml views with devise, but it always use erb instead.
I have a has_one association between user and setting model. I have also SettingsController
I am using devise but the User model is related to a legacy table
I'm trying to implement Devise in an existing Rails3 project. I've created the users
What's the best practice for redirecting the user, using Devise, back to the page

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.