Migrate from restful_authentication to devise
i've been using rails 2 for a project and restful_authentication with it. Recently, i changed that project to rails 3 and i found out about devise, that to my eyes seems a much better solution that restful_authentication.
Therefore, i decided that it would be a good idea to migra开发者_如何学Gote to devise, but it seems that the procedure is pretty tedious and error prone. I would like to ask you if you know of any good resource that describes the procedure, because doing it from scratch is a bit of a hassle.
rails generate devise:install
rails generate devise User
rake db:migrate
That's all there is for now, you get routes and functionality like /users/sign_(in|out|up)
from start.
Resources:
- Railscasts "Introducing Devise"
- Devise Readme
- Example application
You can try Migrating from Restful Authentication to Devise, but so far nothing for me. :(
精彩评论