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:
parent
8c17d30d68
commit
2515ad8a3e
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue