From c6009b2d0d651fe995d29b912c8a1ae9ec98aa6e Mon Sep 17 00:00:00 2001 From: blahedo Date: Fri, 5 Jul 2013 22:31:22 -0400 Subject: [PATCH] Merged sections to reflect current contents of guide. Section "allowing the update of fields" was now just a general introduction to the idea of the model (actual updating was two sections later). So, merged into the section about validation. --- guides/source/getting_started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index c785fd1f8c9c7..06a81366e35ab 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -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: @@ -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: