Metadata Presenter
The fb-metadata-presenter is a Rails engine, published as the metadata_presenter gem, that is responsible for rendering the MoJ Form Builder metadata into GOV.UK Design System components.
It is mounted into both fb-editor and fb-runner, so the same code renders a form whether it is previewed in the Editor or filled in by an end user in the Runner. Each host app supplies the surrounding behaviour: saving and loading data, whether pages are editable, and feature flags like reference numbers, payment links, save and return, and confirmation emails, so both apps share one consistent presentation layer.
Making changes to fb-metadata-presenter
- Make your changes in
fb-metadata-presenterthen push to GitHub. - Specify the new branch in
fb-editorandfb-runner. Runbundleto updateGemfile.lock(this is commented in theGemfile). - Test locally with
make setup. If the tests pass, push the changes to GitHub. - To test in staging, in the
.circleci/config.ymlfile for bothfb-runnerandfb-editor, replacemainwith the new branch to be tested: - Bump
metadata_presenterto a new minor version and updateCHANGELOG.md. - Merge the
fb-metadata-presenterbranch. - Once all tests pass and regression looks ok, you can safely close these test PR’s.
- Re-deploy
fb-editorandfb-runnerwith the newmetadata_presenterversion which should now be available on RubyGems.
This page was last reviewed on 22 July 2026.
It needs to be reviewed again on 22 October 2026
.
This page was set to be reviewed before 22 October 2026.
This might mean the content is out of date.