How to replace authentication system for Devise in Rails?

I have an authentication system made by hand with all the models and methods for sign in, etc. How hard is it to replace all that system for Devise? I see Devise creates the models and that but in this case I already have them.

What steps should I follow?

Thank you.


You can install Devise as is instructed in the documentation. When you run the generator, don't override the model and don't run the migration and you'll be fine.

You might want to try the complete installation out in a separate rails application and see what you need to change in your own application, like rename any columns to what Devise expects. You can remove your own controllers too.

Devise is really flexible. If you want to change the behavior of the controllers, you can inherit from the original ones and instruct the router to use your own. Devise has many hook methods you can override in your own subclasses.

Need Your Help

add a new row to the top of UITableView while using core data

ios cocoa-touch uitableview core-data

i have a textfield where i enter a value and save it and retrieve them in a tableView.

using Loader.loadBytes - specify SecurityDomain for loaded swf?

actionscript-3 loader

I use Loader.loadBytes to dynamically load a swf into my app (i use this method to load modules into the app). My trouble is that when I want to use ExternalInterface.addCallback to allow js calls ...