This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Doug Ramsay (author)
Tue Oct 14 10:25:31 -0700 2008
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
lib/ | ||
| |
test/ |
README
CommaParser =========== This plugin allows you to accept commas from users for integer fields in an ActiveRecord model. Installation ============ For Rails 2.1 and above: script/plugin install git://github.com/dramsay/comma_parser.git Example ======= # Table name: cities # # id :integer(11) not null, primary key # name :string(50) # population :integer(11) class City < ActiveRecord::Base allow_commas :population # rest of class end Now the user can type population "1,000,000" into a form and it will still save correctly as "1000000" instead of "1". This saves you the hassle of stripping out commas either in JavaScript or in the controller. Copyright (c) 2008 Doug Ramsay and Intridea, Inc., released under the MIT license








