Repository navigation
refactor(views): render records from their own partial path - #2
Merged
bettertogether-bts-robot merged 1 commit intoOct 31, 2026
Merged
Conversation
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
had a problem deploying
to
test
October 31, 2026 15:11 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡🤖 BTS Robot 🤖💡
What
Sets
config.action_view.prefix_partial_path_with_controller_namespace = falseso 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 underapp/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.