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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
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 <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* * * -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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 <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>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 <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* > > > * > * > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- -------------Regards--------------- G SubbaRao ( Ruby Developer <http://railsdocuments.blogspot.in/>) E-Mail:subbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org > > 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 <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* >> >> >> * >> * >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > -------------Regards--------------- > G SubbaRao ( Ruby Developer <http://railsdocuments.blogspot.in/>) > E-Mail:subbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* * * -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote:> 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 UsersBecause you don''t have a User model. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
I have user.rb model. On Tue, Sep 4, 2012 at 1:19 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan > <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote: > > 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 > > Because you don''t have a User model. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* * * -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Your error saying that you don''t have Users model and controler may be you created the devise as Admin. If so please replace user with admin in all places. If u want to understand flow take new project and try documentation (https://github.com/plataformatec/devise <https://github.com/plataformatec/devise> ) from top to bottom, then u will understand flow after that you can implement in your project . On Tuesday 04 September 2012 12:42 PM, Ashokkumar Yuvarajan wrote:> 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.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:subbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > 1) Create your custom controller, for example a > Admins::SessionsController: > > class Users::SessionsController < Devise::SessionsController > end > > 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 > <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org <mailto:ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>> 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 > <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org <mailto:ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>> > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org > <mailto:ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>/ > > > * > * > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > -------------Regards--------------- > G SubbaRao ( Ruby Developer ) > E-Mail:subbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:E-Mail%3Asubbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > 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 : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org <mailto:ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>/ > > > * > * > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- -------------Regards--------------- G SubbaRao ( Ruby Developer ) E-Mail:subbarao.kly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://railsdocuments.blogspot.com https://twitter.com/g_subbarao -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.