Skip to content
This repository

Clarify readme for rails 2.3 users #616

Merged
merged 1 commit into from about 2 years ago

4 participants

Nicholas Clark Jeremy Friesen Ryan Bates Gimi Liang
Nicholas Clark
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

Jeremy Friesen
Collaborator
jeremyf commented

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

Gimi Liang Gimi merged commit 8e46cca into from
Gimi Liang Gimi closed this
Ryan Bates
Owner
ryanb commented

@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 Liang
Collaborator
Gimi commented

@ryanb Sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 10, 2012
Nicholas Clark NickClark Clarify readme for rails 2.3 users 0bbe2e1
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. +9 0 README.rdoc
9 README.rdoc
Source Rendered
@@ -31,6 +31,15 @@ User permissions are defined in an +Ability+ class. CanCan 1.5 includes a Rails
31 31
32 32 rails g cancan:ability
33 33
  34 +In Rails 2.3, just add a new class in `app/models/ability.rb` with the folowing contents:
  35 +
  36 + class Ability
  37 + include CanCan::Ability
  38 +
  39 + def initialize(user)
  40 + end
  41 + end
  42 +
34 43 See {Defining Abilities}[https://github.com/ryanb/cancan/wiki/defining-abilities] for details.
35 44
36 45

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.