Browse files

Forgot in-page link [ci skip]

  • Loading branch information...
1 parent 1652c3a commit 767d246f8319d3e96b7baf8830ddc827190a536f @nathanl committed Dec 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.markdown
@@ -364,6 +364,7 @@ link_to 'Edit Widget', edit_widget_path(@widget) if current_user.can_update?(@wi
If the user isn't allowed to edit widgets, they won't see the link. If they're nosy and try to hit the URL directly, they'll get a [Security Violation](#security_violations_and_logging) from the controller.
+<a name="the_generic_can">
## The Generic `can?`
Authority is organized around protecting resources. But **occasionally** you **may** need to authorize something that has no particular resource. For that, it provides the generic `can?` method. It works like this:

0 comments on commit 767d246

Please sign in to comment.