Rails Generate Devise::session controller

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…

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 [email protected] wrote:

“Attitude is a little thing that makes a big difference”

Thanks & Regards
Ashokkumar.Y
*ROR-Developer
*email : [email protected]

  1. Create your custom controller, for example a
    Admins::SessionsController:

class Users::SessionsController < Devise::SessionsControllerend

  1. Tell the router to use this controller:

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

  1. 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

GitHub - heartcombo/devise: Flexible authentication solution for Rails with Warden.
On 3 September 2012 15:31, Ashokkumar Yuvarajan
[email protected]wrote:

https://groups.google.com/d/msg/rubyonrails-talk/-/_M1lERzVv-oJ.


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


-------------Regards---------------
G SubbaRao ( Ruby Developer http://railsdocuments.blogspot.in/)
E-Mail:[email protected]

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 [email protected] wrote:

https://groups.google.com/d/msg/rubyonrails-talk/-/_M1lERzVv-oJ.

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
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 : [email protected]

I have user.rb model.

On Tue, Sep 4, 2012 at 1:19 PM, Jordon B. [email protected]
wrote:

Routing Error
[email protected].
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 : [email protected]

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
(GitHub - heartcombo/devise: Flexible authentication solution for Rails with Warden.
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:

uninitialized constant Users
1) Create your custom controller, for example a
views, so remember to copy “devise/sessions” to “user/sessions”.

        Am new to rails.
        --
        For more options, visit

    --

Ashokkumar.Y
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


-------------Regards---------------
G SubbaRao ( Ruby Developer )
E-Mail:[email protected]

https://twitter.com/g_subbarao

On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan
[email protected] 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.