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 🚀.
- Introduction
- Installation
- Define and check abilities
- Controller helpers
- Fetching records
- Cannot
- Hash of conditions
- Combine Abilities
- Check abilities - avoid mistakes
- Handling CanCan::AccessDenied
- Customize controller helpers
- Accessing request data
- SQL strategies
- Accessible attributes
- Testing
- Internationalization
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.