授权有很多选择。我最喜欢的是:
可以可以 http://github.com/ryanb/cancan 具有足够的灵活性,可以像Martin Rehfeld所做的那样轻松扩展 https://github.com/martinrehfeld/role_model 。我已经使用了这个组合,因此我经常创建一个宝石,以便简单地使用这两个宝石 https://github.com/james2m/canard