Skip to content

refactor(views): render records from their own partial path - #2

Merged
bettertogether-bts-robot merged 1 commit into
mainfrom
chore/controller-namespace-partial-prefix
Oct 31, 2026
Merged

bettertogether-bts-robot merged 1 commit into
mainfrom
chore/controller-namespace-partial-prefix

Conversation

@bettertogether-bts-robot

Copy link
Copy Markdown

💡🤖 BTS Robot 🤖💡

What

Sets config.action_view.prefix_partial_path_with_controller_namespace = false so a record always renders from its own partial path, whichever controller namespace renders it. Same change as the other host apps (NLO better-together-org#239, NLV better-together-org#454).

Why

With the Rails default, an engine or namespaced controller prefixes its namespace onto an implicit record render, so a layout or partial that renders a record can look in the wrong place. NLO hit this as a 500 on a cold fragment cache.

Impact here

None expected. This app has only top-level controllers (application, healthcheck, welcome) and two hook partials under app/views/better_together/; nothing renders a host record by controller namespace.

Verification

The same one-line change on the sibling Borgberry app (identical controllers and views): 4 examples, 0 failures. This app's own suite was not run: its compose stack was not up, and starting one risked touching the running Borgberry containers.

Rollout

Code only. Not deployed here.

Turn off prefix_partial_path_with_controller_namespace so a record always
renders from its own partial path, matching the other host apps.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bettertogether-bts-robot
bettertogether-bts-robot merged commit 1ce83c6 into main Oct 31, 2026
3 of 6 checks passed

This branch had an error being deployed

1 failed deployment
test — dcd92487 Deployed Oct 31, 2026 by bettertogether-bts-robot via rspec #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant