Skip to content

Commit

Permalink
Fix ruby syntax errors in railties/guides docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pahanix committed Nov 22, 2010
1 parent 8c17d30 commit 2515ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -355,7 +355,7 @@ This helper validates that the specified attributes are not empty. It uses the +


<ruby> <ruby>
class Person < ActiveRecord::Base class Person < ActiveRecord::Base
validates :name, :presence => true, :login, :email validates :name, :login, :email, :presence => true
end end
</ruby> </ruby>


Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/security.textile
Expand Up @@ -550,7 +550,7 @@ Ruby uses a slightly different approach than many other languages to match the e


<ruby> <ruby>
class File < ActiveRecord::Base class File < ActiveRecord::Base
validates :name, format => /^[\w\.\-\+]+$/ validates :name, :format => /^[\w\.\-\+]+$/
end end
</ruby> </ruby>


Expand Down

0 comments on commit 2515ad8

Please sign in to comment.