Hi Folks Good morning,

Am new to rails.

I used devise in my project ,i need to write some conditions in my session 
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

end

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.



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/V6i-yVdCNIMJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to