Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
tamoyal
/
cancan
Public
forked from
ryanb/cancan
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Home
Jump to bottom
Edit
New page
mooman edited this page
Aug 23, 2010
·
5 revisions
The Basics
README
Checking Abilities
Defining Abilities with Hashes
Defining Abilities with Blocks
Fetching Records
Authorizing Controller Actions
Exception Handling
Changing Defaults
And Beyond
Upgrading to 1.3
Testing Abilities
Role Based Authorization
Admin Namespace
Custom Actions
Non RESTful Controllers
Nested Resources
Link Helpers
Accessing Request Data
Abilities in Database
Share Ability Definitions
Ability for Other Users
Authorization in Web Services
Other Authorization Solutions
Wiki pages
Pages
28
Loading
Home
The Basics
And Beyond
Loading
3rd party add ons
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Abilities in Database
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Ability for Other Users
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Accessing Request Data
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Admin Namespace
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Authorization for Namespaced Controllers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Authorization in Web Services
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Authorizing Controller Actions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Changing Defaults
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Checking Abilities
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Custom Actions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Defining Abilities with Blocks
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Defining Abilities with Hashes
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Exception Handling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Fetching Records
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Link Helpers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Multiple can definitions (from 1.3)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Nested Resources
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Non RESTful Controllers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Other Authorization Solutions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Role Based Authorization
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Separate Role Model
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Share Ability Definitions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Testing Abilities
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
testing markdown
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Upgrading to 1.1
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Upgrading to 1.3
Uh oh!
There was an error while loading.
Please reload this page
.
Show 13 more pages…
Add a custom sidebar
Clone this wiki locally
You can’t perform that action at this time.