0

如果我有模型 User 和 Bascinfo,并且 User has_one Basicinfo。将要:

authorize! :show, user

还授权显示 user.basicinfo?

谢谢!

4

1 回答 1

0

在 cancan 上关注这个 wiki 链接,它可以帮助你。https://github.com/ryanb/cancan/wiki/Authorizing-controller-actions

于 2013-09-16T17:12:37.997 回答