Any RoR geeks?

Discussion in 'OT Technology' started by mobbarley, Mar 19, 2007.

  1. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    Im using simple model validation on a form (validates_presence_of etc.) which wraps a <div class="fieldWithErrors"> around the problem field.

    I would like a to do the same for a field if it matches a string (the default starting value of the text box). Is there an easy way to do this?

    :x:
     

Share This Page