Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added README and performed minor cleanup
- Loading branch information
1 parent
7a77cbe
commit 92817d7
Showing
3 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
The MIT license: | ||
Copyright (c) 2008 Less Everything, Inc. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Less Captcha creates a user friendly, bot unfriendly image CAPTCHA alternative | ||
|
||
== In the model | ||
|
||
class User < ActiveRecord::Base | ||
validates_captcha | ||
end | ||
|
||
== In the view | ||
|
||
<%= captcha_field("user") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters