Permalink
Browse files

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

  • Loading branch information...
2 parents 0598bd4 + 2515ad8 commit 818b366c3e3645b3375ee0b1d1023621dbeaede2 @davidw davidw committed Nov 22, 2010
@@ -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>
@@ -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>

0 comments on commit 818b366

Please sign in to comment.