Merge branch 'master' of github.com:lifo/docrails

This commit is contained in:
David N. Welton
2010-11-22 16:06:28 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ This helper validates that the specified attributes are not empty. It uses the +
<ruby>
class Person < ActiveRecord::Base
validates :name, :presence => true, :login, :email
validates :name, :login, :email, :presence => true
end
</ruby>

View File

@@ -550,7 +550,7 @@ Ruby uses a slightly different approach than many other languages to match the e
<ruby>
class File < ActiveRecord::Base
validates :name, format => /^[\w\.\-\+]+$/
validates :name, :format => /^[\w\.\-\+]+$/
end
</ruby>