diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d646da312..04d4d582e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -10,6 +10,10 @@ nav_order: 5 ## main +* Fix `preview_paths` in docs. + + *Javier Aranda* + ## 3.17.0 * Use struct instead openstruct in lib code. diff --git a/docs/api.md b/docs/api.md index 19006ffed..3e18fbe58 100644 --- a/docs/api.md +++ b/docs/api.md @@ -236,7 +236,7 @@ Defaults to `ViewComponentsController`. ### `.preview_paths` The locations in which component previews will be looked up. -Defaults to `['test/component/previews']` relative to your Rails root. +Defaults to `['test/components/previews']` relative to your Rails root. ### `.preview_route` diff --git a/lib/view_component/config.rb b/lib/view_component/config.rb index 7133e3d0a..3edcd22d2 100644 --- a/lib/view_component/config.rb +++ b/lib/view_component/config.rb @@ -152,7 +152,7 @@ def defaults # @!attribute preview_paths # @return [Array] # The locations in which component previews will be looked up. - # Defaults to `['test/component/previews']` relative to your Rails root. + # Defaults to `['test/components/previews']` relative to your Rails root. # @!attribute test_controller # @return [String]