Ruby on Rails Devise gem controller overrides and set routes for multiple controllers

In my ROR project I have overrides two controllers

1)registeration controller
2)session controller

while setting routes for these In my routes.rb file I specified

like this

devise_for :users, :controllers => { :registrations => "registrations" }
devise_for :users, :controllers => {:sessions => "sessions" }

In above way It is not taking session controller by default it is going to

Devise::sessionController

just changed the routes in below way

devise_for :users, :controllers => { :registrations => "registrations",:sessions => "sessions" }

It is working fine.

Comments

Popular posts from this blog

Rails Memcache issues

Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication

What's the difference between "include" and "require" in Ruby?