DivineRails

Ruby on Rails

Blog

Controllers for the Devise Gem

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.

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

1 Comment

Reply Bukhari
8:30 AM on January 22, 2013 
Thanks for solving my problem. I was searching for this thing.