Validates_preence_of :name

Hi
I have a name field And it has no validation And when I update that
field with this

!@#$%^&*()_+|}{":?><,./;’[]\

It gives error
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:557:in
transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:intransaction’

   Could anybody please suggest a regex to make pass this?

Thanks in advance
Sijo

Hi Sijo,

I’m sorry but I don’t understand what you are trying to do. Are you
trying to insert a string representing a regexp in a field in your
database? Are you trying to validate a value that goes into a field
with what looks like a regular expression? What do you mean by 'a
regexp to make pass this? What is “this”?

Pepe