1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix ruby syntax errors in railties/guides docs

This commit is contained in:
Pavel Gorbokon 2010-11-22 16:37:33 +02:00
parent 8c17d30d68
commit 2515ad8a3e
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>