Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Clarify readme for rails 2.3 users #616

Merged
merged 1 commit into from

4 participants

@NickClark
Collaborator

It's not immediately evident for Rails 2.3 users that a generator doesn't exist for them or where an Ability class should go. Issue #600

@jeremyf
Collaborator

[verified] Simple documentation update. @ryanb Ready to merge (would send via twitter, but getting the fail whale)

@Gimi Gimi merged commit 8e46cca into ryanb:master
@ryanb
Owner

@Gimi, please don't merge in pull requests (see issue collaborator guidelines). I'm looking for help cleaning out the issue tracker for now and plan to bring on full collaborators later.

@Gimi
Collaborator

@ryanb Sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 10, 2012
  1. @NickClark
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.rdoc
View
9 README.rdoc
@@ -31,6 +31,15 @@ User permissions are defined in an +Ability+ class. CanCan 1.5 includes a Rails
rails g cancan:ability
+In Rails 2.3, just add a new class in `app/models/ability.rb` with the folowing contents:
+
+ class Ability
+ include CanCan::Ability
+
+ def initialize(user)
+ end
+ end
+
See {Defining Abilities}[https://github.com/ryanb/cancan/wiki/defining-abilities] for details.
Something went wrong with that request. Please try again.