Skip to content

Commit

Permalink
Merge pull request #11322 from blahedo/master
Browse files Browse the repository at this point in the history
Tidying "getting started" guide
  • Loading branch information
rafaelfranca committed Jul 6, 2013
2 parents 69e7e6b + c6009b2 commit 01d4941
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions guides/source/getting_started.md
Expand Up @@ -723,7 +723,7 @@ TIP: In development mode (which is what you're working in by default), Rails
reloads your application with every browser request, so there's no need to stop
and restart the web server when a change is made.

### Allowing the update of fields
### Adding Some Validation

The model file, `app/models/post.rb` is about as simple as it can get:

Expand All @@ -738,8 +738,6 @@ your Rails models for free, including basic database CRUD (Create, Read, Update,
Destroy) operations, data validation, as well as sophisticated search support
and the ability to relate multiple models to one another.

### Adding Some Validation

Rails includes methods to help you validate the data that you send to models.
Open the `app/models/post.rb` file and edit it:

Expand Down

0 comments on commit 01d4941

Please sign in to comment.