diff options
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_storage_overview.md | 6 | ||||
-rw-r--r-- | guides/source/command_line.md | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index 5f8beb7439..9fabc011c8 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -230,6 +230,10 @@ end You can create a user with an avatar: +```erb +<%= form.file_field :avatar %> +``` + ```ruby class SignupController < ApplicationController def create @@ -479,7 +483,7 @@ directly from the client to the cloud. 2. Annotate file inputs with the direct upload URL. - ```ruby + ```erb <%= form.file_field :attachments, multiple: true, direct_upload: true %> ``` 3. That's it! Uploads begin upon form submission. diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 58a2d6d30f..7c629f74c8 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -633,9 +633,9 @@ $ cat config/database.yml # # Install the pg driver: # gem install pg -# On OS X with Homebrew: +# On macOS with Homebrew: # gem install pg -- --with-pg-config=/usr/local/bin/pg_config -# On OS X with MacPorts: +# On macOS with MacPorts: # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config # On Windows: # gem install pg |