aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_storage_overview.md
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-12-16 14:04:54 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-12-16 14:25:45 +0900
commit94baf7291a6217af9f9f59225c16fbcd88a5885a (patch)
treec62e5ae7df36a306662549f4511b86ae217af0f7 /guides/source/active_storage_overview.md
parentce98cd0d0d13b2a653c6162b141b003f59ded4d6 (diff)
downloadrails-94baf7291a6217af9f9f59225c16fbcd88a5885a.tar.gz
rails-94baf7291a6217af9f9f59225c16fbcd88a5885a.tar.bz2
rails-94baf7291a6217af9f9f59225c16fbcd88a5885a.zip
Fix Active Storage Overview guide [ci skip]
Diffstat (limited to 'guides/source/active_storage_overview.md')
-rw-r--r--guides/source/active_storage_overview.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 624b5613f6..38323c089f 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -204,7 +204,7 @@ Attach Files to a Model
The `has_one_attached` macro sets up a one-to-one mapping between records and
files. Each record can have one file attached to it.
-For example, suppose your application has a User model. If you want each user to
+For example, suppose your application has a `User` model. If you want each user to
have an avatar, define the `User` model like this:
``` ruby
@@ -218,7 +218,7 @@ You can create a user with an avatar:
``` ruby
class SignupController < ApplicationController
def create
- user = Users.create!(user_params)
+ user = User.create!(user_params)
session[:user_id] = user.id
redirect_to root_path
end
@@ -248,7 +248,7 @@ The `has_many_attached` macro sets up a one-to-many relationship between records
and files. Each record can have many files attached to it.
For example, suppose your application has a `Message` model. If you want each
-message to have many images, define the Message model like this:
+message to have many images, define the `Message` model like this:
```ruby
class Message < ApplicationRecord
@@ -332,7 +332,7 @@ To enable variants, add `mini_magick` to your `Gemfile`:
gem 'mini_magick'
```
-When the browser hits the variant URL, ActiveStorage will lazy transform the
+When the browser hits the variant URL, Active Storage will lazy transform the
original blob into the format you specified and redirect to its new service
location.
@@ -508,7 +508,7 @@ System tests clean up test data by rolling back a transaction. Because destroy
is never called on an object, the attached files are never cleaned up. If you
want to clear the files, you can do it in an `after_teardown` callback. Doing it
here ensures that all connections created during the test are complete and
-you won't receive an error from ActiveStorage saying it can't find a file.
+you won't receive an error from Active Storage saying it can't find a file.
``` ruby
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase