Observe field using Prototype and Rails 3

Does anyone knows how to do an observe field using Prototype in Rails
3. An example would be useful as I am very weak programming in Ajax.