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+unsubscribe@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 5, '12 at 5:28a
activeSep 5, '12 at 5:28a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Maddy: 1 post

People

Translate

site design / logo © 2021 Grokbase