很多插件在rails3里用不了
2010-11-15典型的错误就是Could not find generator xxx ,只能指望作者修改或者自己造轮子,这里发一个常用且在rails3里报错的
restful-authentication
原版 https://github.com/technoweenie/restful-authentication
修正 https://github.com/satish/restful-authentication
另:现在普遍不推荐使用这个插件了,I think Restful Authentication itself is not so nice. We have better plugins/gem to use. Tried auth-logic or devise?
除非一些历史遗留问题,Sure, there are much better plugins/gems/engines for new app development, but if you want to drag a Rails 2 app kicking and screaming into the Rails 3 world, you NEED this plugin updated, because it was the defacto standard for auth for a long time (in Rails time).
分类:技术日志 | 标签: rails3 | 10,580 个人看过
devise 影响 paperclip 不能上传图片的问题解决:
WARNING: Can’t mass-assign these protected attributes: avatar
devise 生成的 User模型中有这样的一些话
# anything else you want your user to change should be added here.
attr_accessible :login, :email, :password, :password_confirmation
在attr_accessible后面添加上:avater就好了
有的时候插件安装用不了怎么办?(来自于我使用Paperclip的经验)
It is very important that you restart your server after installing new gems/plugins.
这篇文章专门介绍了角色管理和插件的使用,很不错
http://ywencn.javaeye.com/blog/615173
devise简介 http://hlee.javaeye.com/blog/673058
devise 官方wiki https://github.com/plataformatec/devise/wiki/_pages