Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using 1.9 syntax for edge guides

  • Loading branch information...
commit ad694f2f264b5afe04af77b3f43971984f32808c 1 parent 3db3f04
@raysrashmi raysrashmi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/active_record_validations.md
View
4 guides/source/active_record_validations.md
@@ -736,8 +736,8 @@ class Topic < ActiveRecord::Base
validates :title, length: { is: 5 }, allow_blank: true
end
-Topic.create("title" => "").valid? # => true
-Topic.create("title" => nil).valid? # => true
+Topic.create(title: "").valid? # => true
+Topic.create(title: nil).valid? # => true
```
### `:message`
Please sign in to comment.
Something went wrong with that request. Please try again.