Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.92 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.92 KB

CanCanCan - Developer guide

This is the official guide to CanCanCan.

It will advance chapter by chapter and go more and more into details, advanced usages, and special cases.

We will start by introducing basic concepts and features, and then dig deeper into configurations and implementation details in later chapters.

You can skip the Introduction where there's just some history and blablabla and go directly to Installation to start fast 🚀.

Summary

  1. Introduction
  2. Installation
  3. Define and check abilities
  4. Controller helpers
  5. Fetching records
  6. Cannot
  7. Hash of conditions
  8. Combine Abilities
  9. Check abilities - avoid mistakes
  10. Handling CanCan::AccessDenied
  11. Customize controller helpers
  12. Accessing request data
  13. SQL strategies
  14. Accessible attributes
  15. Testing
  16. Internationalization

Further topics

In these topics, you will learn some best practices, but also how to solve specific integration issues with other libraries or how to extend CanCanCan.

  1. Migrating
  2. Debugging Abilities
  3. Split your ability file
  4. Define Abilities - best practices
  5. Abilities in database
  6. Role-based Authorization
  7. Model Adapter
  8. Rules compression
  9. Inherited Resources
  10. Devise
  11. FriendlyId