Get rid of the annoying white spaces in your form fields
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

ActsAsStripper
==============

The trailing or leading white spaces in your form fields can be annoying at times. This Rails plugin is created to ease your pain.


Example
=======

If you have a user model, simply add acts_as_stripper, and all the white spaces in your form fields will be stripped away!

    class User < ActiveRecord::Base
      acts_as_stripper
    end

Say that someone enters '  Vancouver, Canada   ' as a location, this plugin will strip away the white leading and trailing white spaces and store simply 'Vancouver, Canada' for the location field.

Copyright (c) 2010 by Jerry Tian, released under the MIT license

Check out my company TrAvid
TrAvid helps you promote your small business!
http://travid.info
http://twitter.com/tianjerry