Generate devise session controller

Hi Folks Good morning,

Am new to rails.

I used devise in my project ,i need to write some conditions in my
controller.How can i generate devise session controller.

I have user.rb model.

Steps which i made:

  1. Generate rails g controller session
  2. Session controller generated
  3. Changes the text like,
    class Users::SessionsController < Devise::SessionsController


4.In routes i have changed,

devise_for :users, :controllers => { :sessions => “users/sessions” }

While execute i got an error:
Routing Error

uninitialized constant Users

Try running rake routes for more information on available routes.

Please advice.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs