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
On Sep 3, 1:02 am, Sijo Kg
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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:in
> `transaction''
> -------------
>
> Could anybody please suggest a regex to make pass this?
>
> Thanks in advance
> Sijo
> --
> Posted viahttp://www.ruby-forum.com/.