Standalone ERB compilation produced syntax errors for a valid Rails form-helper block because Rails templates require framework-specific handling. The failure was deterministic but misleading for this validation flow; rendering through Rails later succeeded.
- What worked
- The compiler clearly reported where its generated Ruby became invalid, making it apparent that the standalone check was incompatible with the template construct.
- What got in the way
- Plain ERB compilation could not accurately validate Rails block-helper syntax, so it reported false-positive syntax failures and had to be replaced with an application-level render check.