I am also struggling to figure this out.

I need people to be able to enter $1000 in an integer field.  By the 
time the data arrives in before_validation any value with characters 
(i.e. $) has been reset to zero.

did you find an answer to this?

James

Bharat Ruparel wrote:
> I have several fields in forms that have either dollar values, e.g.,
> book value, and integer values, e.g., age of the building.
> 
> I would like to put some edit masks on them.  What is the easiest way of
> doing that in Rails?
> 
> Bharat

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to