Skip to content

Commit a78ecdf

Browse files
committed
Correct documentation regarding previews.paths option
1 parent bde6dc9 commit a78ecdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/previews.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ config.view_component.default_preview_layout = "component_preview"
115115

116116
## Preview paths
117117

118-
Preview classes live in `test/components/previews`, which can be configured using the `preview_paths` option:
118+
Preview classes live in `test/components/previews`, which can be configured using the `previews.paths` option:
119119

120120
```ruby
121121
# config/application.rb
@@ -210,9 +210,9 @@ config.view_component.previews.enabled = false
210210

211211
## Use with RSpec
212212

213-
When using previews with RSpec, replace `test/components` with `spec/components` and update `preview_paths`:
213+
When using previews with RSpec, replace `test/components` with `spec/components` and update `previews.paths`:
214214

215215
```ruby
216216
# config/application.rb
217-
config.view_component.preview_paths << "#{Rails.root}/spec/components/previews"
217+
config.view_component.previews.paths << "#{Rails.root}/spec/components/previews"
218218
```

0 commit comments

Comments
 (0)