Hi, I created session::controller as u said and also used routes like devise_for :users, :controllers => { :sessions => "users/sessions" }
But i got an error Routing Error uninitialized constant Users Try running rake routes for more information on available routes. Please advice... On Mon, Sep 3, 2012 at 3:40 PM, G S RAO <subbarao....@gmail.com> wrote: > 1) Create your custom controller, for example a Admins::SessionsController: > > class Users::SessionsController < Devise::SessionsControllerend > > 2) Tell the router to use this controller: > > devise_for :users, :controllers => { :sessions => "users/sessions" } > > 3) we changed the controller, it won't use the "devise/sessions" views, > so remember to copy "devise/sessions" to "user/sessions". > > Any queries follow the topic > Configuring controllers > > > in the page > > https://github.com/plataformatec/devise > > On 3 September 2012 15:31, Ashokkumar Yuvarajan <ashokku...@shriramits.com > > wrote: > >> Hi Folks, >> >> 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. >> >> Devise::SessionsController >> >> Please advice.. >> >> On Mon, Sep 3, 2012 at 3:28 PM, Maddy <ashokku...@shriramits.com> wrote: >> >>> Hi Folks, >>> >>> Am new to rails. >>> >>> I user devise in my project ,i need to write some conditions in my >>> session controller.How can i generate devise session controller. >>> >>> Devise::SessionsController >>> >>> 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/-/_M1lERzVv-oJ. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> >> *"Attitude is a little thing that makes a big difference"* >> >> >> Thanks & Regards >> *Ashokkumar.Y* >> *ROR-Developer >> **email : ashokku...@shriramits.com* >> >> >> * >> * >> >> -- >> 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. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > -------------Regards--------------- > G SubbaRao ( Ruby Developer <http://railsdocuments.blogspot.in/>) > E-Mail:subbarao....@gmail.com > http://railsdocuments.blogspot.com > > > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- *"Attitude is a little thing that makes a big difference"* Thanks & Regards *Ashokkumar.Y* *ROR-Developer **email : ashokku...@shriramits.com* * * -- 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. For more options, visit https://groups.google.com/groups/opt_out.