All tags / #forms

#forms

2 posts

File Uploads in Wheels 4.0, the Idiomatic Way

Peter Amiri

Wheels 4.0 has no ActiveStorage-style attachment system — and that's fine. This how-to walks the honest idiomatic upload flow end to end: fileField/fileFieldTag form helpers, the startFormTag multipart trap, native cffile in the controller, model validation over the result, and traversal-safe downloads with sendFile.

Form Helpers in Wheels 4.0: Object Forms, HTML5 Fields, and Error Rendering

Peter Amiri

A worked how-to on Wheels 4.0 form helpers: object-bound fields that round-trip into params.user.email, the real HTML5 single-input helpers, and the two error-rendering helpers — plus the sharp edges that bite first.

Newsletter

Release notes and new posts, once a month. No spam.

Prefer RSS? Subscribe to the feed →