Permalink
Browse files

copy editing [ci skip]

  • Loading branch information...
1 parent ca73e05 commit 561e5ab82eb24335f76961d437a16f09b4a15474 @vijaydev vijaydev committed Dec 15, 2012
@@ -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
@@ -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:
@@ -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

0 comments on commit 561e5ab

Please sign in to comment.