aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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