Hi I wanna check in my model if the field is conform to a CNAME OR is
I've put something like this in my model :
validates_format_of :cname, :with => /^[a-z0-9\-]+$/i,
:unless => :cname.strip == ''
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks