Skip to content

Commit 861cf9d

Browse files
authored
Merge pull request rails#54069 from choznerol/docs/activestorage-fixture-example
Fix ActiveStorage example fixture snippet [ci skip]
2 parents 8a63fa5 + fda25b8 commit 861cf9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/active_storage_overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,15 +1516,15 @@ test.
15161516
Next, create fixture files for the Active Storage classes:
15171517
15181518
```yml
1519-
# active_storage/attachments.yml
1519+
# test/fixtures/active_storage/attachments.yml
15201520
david_avatar:
15211521
name: avatar
15221522
record: david (User)
15231523
blob: david_avatar_blob
15241524
```
15251525
15261526
```yml
1527-
# active_storage/blobs.yml
1527+
# test/fixtures/active_storage/blobs.yml
15281528
david_avatar_blob: <%= ActiveStorage::FixtureSet.blob filename: "david.png", service_name: "test_fixtures" %>
15291529
```
15301530

0 commit comments

Comments
 (0)