Wheels 4.0.6 is out.
generate auth, policies, storage disks, select() can start a chain, plus the mixin-cache fix that was making 4.0.x feel slower than 2.x.
blog.wheels.dev/posts/wheels…
18
New on the Wheels blog — wheels console: The Debugging Move You're Not Using.
Something's weird. Instead of writeDump()-and-refresh twenty times, open a REPL inside the running app and know in thirty seconds.
blog.wheels.dev/posts/wheels…
1
21
4/ console ≠ repl. console = full Wheels app context, needs a running server (that's the point). repl = bare CFML calculator, works anywhere, model() will rightly error. Wrong-tool confusion explains most "console is broken" reports.
1
11
4/ The big one: the docs show a bare sendEmail() inside a background Job's perform(). It does NOT work — a Job is a plain component with no controller mixins. Workers run perform() with zero controller context.
1
9
5/ The fix: reach sendEmail through the controller() factory.
var mailer = controller("Mailer");
mailer.sendEmail(to=data.email, subject="Welcome!", ...);
Anchor the template with a leading slash. Full background-delivery example in the post.
10
3/ Multipart text+html = two templates. But Wheels guesses which is which by COUNTING "<" characters. Plain-text body full of code? It flips your parts. Fix: detectMultipart=false + text-first ordering.
1
3
2/ The arg-routing rule: every named arg is checked against the cfmail attribute list. Match it → goes to the email. Miss it → silently becomes a view variable. So a mistyped reply-to becomes template data, no error.
1
15
New on the Wheels blog — Sending Email in Wheels 4.0: sendEmail, Templates, and Background Delivery.
There's no Mailer class. The whole mail surface is one controller function. Here's how it actually works.
blog.wheels.dev/posts/sendin…
1
18
New on the Wheels blog — File Uploads in Wheels 4.0, the Idiomatic Way.
Wheels has no ActiveStorage. No hasAttachment. No upload service. And that's fine — here's the honest flow.
blog.wheels.dev/posts/file-u…
1
19
4/ Validators can't see uploads — only strings.
Copy cffile.fileSize + contentType onto model props in the controller, then:
• validatesFormatOf the stored path
• custom validate() callback for size/MIME
The file is already on disk by the time validation runs. Plan for orphans.
1
7
5/ Serving it back is the one direction with a real helper: sendFile.
Built-in path-traversal guard — throws Wheels.InvalidPath on ".." and strips null bytes. disposition="inline" to render, "attachment" (default) to force a download.
Full how-to: blog.wheels.dev/posts/file-u…
7
New on the Wheels blog — Caching in Wheels 4.0: Actions, Queries, Partials, and Invalidation.
Four caches, not one cache with four doors. Here's what actually ships.
blog.wheels.dev/posts/cachin…
1
18
