aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-12-15 21:15:05 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-12-15 21:15:05 +0530
commit561e5ab82eb24335f76961d437a16f09b4a15474 (patch)
treeb6d4c6c2fd7ed7a7de9521ac227e606f1ce0fde4
parentca73e059c0f34d5aa1febd0360bf4390698b1149 (diff)
downloadrails-561e5ab82eb24335f76961d437a16f09b4a15474.tar.gz
rails-561e5ab82eb24335f76961d437a16f09b4a15474.tar.bz2
rails-561e5ab82eb24335f76961d437a16f09b4a15474.zip
copy editing [ci skip]
-rw-r--r--guides/source/active_record_validations.md2
-rw-r--r--guides/source/asset_pipeline.md2
-rw-r--r--railties/lib/rails/generators/rails/migration/USAGE2
3 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index ab7487293d..88d52cb829 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -514,7 +514,7 @@ end
```
In order to validate associated records whose presence is required, you must
-specify the `:inverse_of` the association:
+specify the `:inverse_of` option for the association:
```ruby
class Order < ActiveRecord::Base
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md
index 10ba3ab23a..743a04ed42 100644
--- a/guides/source/asset_pipeline.md
+++ b/guides/source/asset_pipeline.md
@@ -272,7 +272,7 @@ $('#logo').attr src: "<%= asset_path('logo.png') %>"
### Manifest Files and Directives
-Sprockets uses manifest files to determine which assets to include and serve. These manifest files contain _directives_ — instructions that tell Sprockets which files to require in order to build a single CSS or JavaScript file. With these directives, Sprockets loads the files specified, processes them if necessary, concatenates them into one single file and then compresses them (if `Rails.application.config.assets.compress` is true). By serving one file rather than many, the load time of pages can be greatly reduced because the browser makes fewer requests. In addition, compressing one concatenated file, reduces the file size and the browser can download it quicker.
+Sprockets uses manifest files to determine which assets to include and serve. These manifest files contain _directives_ — instructions that tell Sprockets which files to require in order to build a single CSS or JavaScript file. With these directives, Sprockets loads the files specified, processes them if necessary, concatenates them into one single file and then compresses them (if `Rails.application.config.assets.compress` is true). By serving one file rather than many, the load time of pages can be greatly reduced because the browser makes fewer requests. Compression also reduces the file size enabling the browser to download it faster.
For example, a new Rails application includes a default `app/assets/javascripts/application.js` file which contains the following lines:
diff --git a/railties/lib/rails/generators/rails/migration/USAGE b/railties/lib/rails/generators/rails/migration/USAGE
index da7012eb3b..f340ed97f2 100644
--- a/railties/lib/rails/generators/rails/migration/USAGE
+++ b/railties/lib/rails/generators/rails/migration/USAGE
@@ -15,7 +15,7 @@ Example:
`rails generate migration AddTitleBodyToPost title:string body:text published:boolean`
- This will create the AddTitleBodyToPost in db/migrate/20080514090912_add_title_body_to_post.rb with following change migration:
+ This will create the AddTitleBodyToPost in db/migrate/20080514090912_add_title_body_to_post.rb with this in the Change migration:
add_column :posts, :title, :string
add_column :posts, :body, :text