Add Text_Input $max_length requirement and Model.field_length() API

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-29 10:48:10 +00:00
parent 21a7149486
commit 12b742fbdf
6 changed files with 211 additions and 2 deletions

View File

@@ -698,6 +698,7 @@ Pattern recognition:
- `Form_Utils.apply_form_errors()` for validation
- Action loads data, Controller saves it
- `$disabled=true` still returns values (unlike HTML)
- **Text_Input requires `$max_length`**: Use `Model.field_length('column')` for database-driven limits, numeric value for custom, or `-1` for unlimited
**Detailed guidance in `forms` skill** - auto-activates when building forms.