Rack::SpellCheck
Added by techiferous
at November 15, 2009 08:43
GitHub stats:
watcher(s)
fork(s)
About
This middleware highlights spelling errors in your web pages. It’s great for catching those silly typos before they reach the customer.
Usage
You need to install the ispell binary. On Mac OS X you can install it like so:
sudo port install ispell
Then you need to install the ispell Ruby gem:
sudo gem install ispell
Then you use the middleware as expected:
use Rack::SpellCheck
Or if you are in Rails, it would look like this (in the config/environment.rb file):
config.middleware.use Rack::SpellCheck
You can also specify words to ignore:
config.middleware.use Rack::SpellCheck, :ignore => ["CodeRack"]
Note: if this middleware doesn't work, make sure the PATH environment variable allows Rack::SpellCheck to find the ispell binary file.
