It's common to have tables with a prefix in my rails apps. For example, I have these in Tend.
funds
fund_targets
The screenshot shows a trick to avoid repeating "fund" in the associations.
Now instead of -> fund\.fund_targets
I can just write -> fund.targets
I'm geeking out of this claude code skill for pre-processing images in my rails app
I called it /img
When you give a file, it will:
- Gather the size and height with sips
- Compress and convert to webp with cwebp
- Look at the image to generate alt text
- Print the erb snippet to paste
Here's the full skill: https://t.co/OMNUFYCjsN
I got rid of my free-trial.
Tend has two plans now.
Free Plan:
All features + bank syncing for all accounts at a single bank
Paid Plan:
All features + bank syncing at all your banks
AI said this should be my copy angle: "Tend is free, forever β no trial, no expiry. Connect your bank and start planning."
...pretty good mr. robot π€
Hotwire devs π "Outlets"
If you haven't already you've got to check out "outlets".
I've been using hotwire for 2 years and just discovered this wonderful feature.
I don't mind this coding style. No classes, just structs and module functions. Behavior, then value objects returned.
When I come back to this in 6 months it won't take long to re-learn it.
And I can rest knowing this stuff is not used all over the place.
I ventured into OpenCode for the last month or two and now I'm back to claude. The other models couldn't keep up, and paying per token for claude is pricey.
I like the TUI of claude more than opencode.