什么是 RESTful 样式资源?
What is a RESTful style resource?
我正在我的 Rails 4 应用程序中实施 cancan。文档说明 "load_and_authorize_resource method is provided to automatically authorize all actions in a RESTful style resource controller."
https://github.com/ryanb/cancan
什么是 RESTful 风格?
谢谢。
您可以找到它们的列表 here。
具体动作有index、new、show、edit、destroy、create、update。这个想法是这些操作通常有很多样板文件 (find/authorize),这旨在简化它。
我正在我的 Rails 4 应用程序中实施 cancan。文档说明 "load_and_authorize_resource method is provided to automatically authorize all actions in a RESTful style resource controller."
https://github.com/ryanb/cancan
什么是 RESTful 风格?
谢谢。
您可以找到它们的列表 here。
具体动作有index、new、show、edit、destroy、create、update。这个想法是这些操作通常有很多样板文件 (find/authorize),这旨在简化它。