Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi committed Jul 7, 2009
1 parent e12206f commit 1ee8233
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Then in `environment.rb`:

config.middleware.use "Rack::Honeypot"

That's all there is to it.
That's all there is to it. Fire up your app, View Source on a page with a form, and see the magic.

There are a few options you can pass in:

Expand All @@ -40,8 +40,6 @@ There are a few options you can pass in:
* `:input_name` is the name of the form field. Ensure that this is tempting to a spambot if you modify it. Defaults to "email".
* `:input_value` is the value of the form field that would only be modified by a spambot. Defaults to blank.

See the `Rack::Honeypot#initialize` method for the defaults.

If you want to modify the options used, simply do:

config.middleware.use "Rack::Honeypot", :input_name => "firstname"
Expand Down

0 comments on commit 1ee8233

Please sign in to comment.