From 6d59a65905e3c20222ae2d4423fd4ec90bd6adbd Mon Sep 17 00:00:00 2001 From: David Biddle Date: Mon, 15 Dec 2025 15:27:21 +0000 Subject: [PATCH] Fix viewcomponent preview links --- config/application.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index fce770212..1b85bce5f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -37,9 +37,9 @@ class Application < Rails::Application # Make it easier to share partials between controllers config.action_view.prefix_partial_path_with_controller_namespace = false - config.view_component.preview_paths = [Rails.root.join("spec/components")] - config.view_component.preview_route = "/preview" - config.view_component.preview_controller = "ComponentPreviewController" + config.view_component.previews.paths = [Rails.root.join("spec/components")] + config.view_component.previews.route = "/preview" + config.view_component.previews.controller = "ComponentPreviewController" # Replace with value which will be true in local dev config.view_component.show_previews = HostingEnvironment.test_environment?