Edit masks for form fields

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

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 R. 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