Skip to content

Commit

Permalink
Merge pull request #15002 from vanderhoop/master
Browse files Browse the repository at this point in the history
typo fixes in active_record_basics.md [skip ci]
  • Loading branch information
arthurnn committed May 7, 2014
2 parents 350e3d7 + b345fc2 commit 4346102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/active_record_basics.md
Expand Up @@ -309,10 +309,10 @@ into the database. There are several methods that you can use to check your
models and validate that an attribute value is not empty, is unique and not
already in the database, follows a specific format and many more.

Validation is a very important issue to consider when persisting to database, so
Validation is a very important issue to consider when persisting to the database, so
the methods `create`, `save` and `update` take it into account when
running: they return `false` when validation fails and they didn't actually
perform any operation on database. All of these have a bang counterpart (that
perform any operation on the database. All of these have a bang counterpart (that
is, `create!`, `save!` and `update!`), which are stricter in that
they raise the exception `ActiveRecord::RecordInvalid` if validation fails.
A quick example to illustrate:
Expand Down

0 comments on commit 4346102

Please sign in to comment.