Ruby on Rails Monday, September 3, 2012

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@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 <ashokkumar@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+unsubscribe@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 : ashokkumar@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
-------------Regards---------------
G SubbaRao ( Ruby Developer )
E-Mail:subbarao.kly@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment