|Posted by Jamal Nasir on November 27, 2012 at 8:40 AM|
The devise gem is a superb gem for authentication. It has a nifty generator for views and other things, but it doesn't have any generator for controllers. So, here in this post I will show you how to get the devise's controllers.
The controllers for the devise reside in it gem location. To import those controllers to your application edit the following command according to your system and then run it. Suppose you are in the application directory.
cp -R ~/.rvm/gems/[email protected]/gems/devise-2.1.2/app/controllers/* app/controllers/
By running the above command you will see that the devise controllers are imported to your app/controllers folder.