Erol Fornoles wrote:
> On Sep 20, 8:18�pm, Neil Cauldwell <[EMAIL PROTECTED]>
> wrote:
>>
>> Any ideas?
>> --
>> Posted viahttp://www.ruby-forum.com/.
> 
> Try this one:
> 
> validates_each :name do |record, attr, value|
>   record.errors.add attr, "can't use our Website name." if value =~ /
> MyRailsApp/i
> end

That one works great, thanks.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to