Skip to content

fix: restore DOCX template exports on Rails 8 - #3639

Open
aaronskiba wants to merge 2 commits into
DMPRoadmap:mainfrom
portagenetwork:upstream/fix/templates-docx-download
Open

aaronskiba wants to merge 2 commits into
DMPRoadmap:mainfrom
portagenetwork:upstream/fix/templates-docx-download

Conversation

@aaronskiba

@aaronskiba aaronskiba commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed in this PR:

test: cover DOCX template exports

Add request specs for public and organization admin template exports.
Verify the downloaded document, filename, and content.

fix: restore DOCX template exports on Rails 8

Resolve a breaking change from the Rails 8 upgrade that caused DOCX exports using htmltoword to raise ActionView::MissingTemplate. Pass the template path explicitly through the :template option.

This fixes the failing tests added in the previous commit (test: cover DOCX template exports).

Rails change that caused the issue:
rails/rails@42d75ed

Add request specs for public and organization admin template exports.
Verify the downloaded document, filename, and content.
Resolve a breaking change from the Rails 8 upgrade that caused DOCX exports using htmltoword to raise ActionView::MissingTemplate. Pass the template path explicitly through the :template option.

This fixes the failing tests added in the previous commit (test: cover DOCX template exports).

Rails change that caused the issue:
rails/rails@42d75ed
@aaronskiba aaronskiba changed the title test: cover DOCX template exports fix: restore DOCX template exports on Rails 8 Dec 3, 2026
@aaronskiba
aaronskiba marked this pull request as ready for review December 3, 2026 21:08
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