Learned something on the Rails-talk list today that blew me away.
You can install an older version of rails using this syntax:
(Where “4.0.8” is the version you want and “appname” is the name of your new rails app.)
Yes, you actually type those underscores around the version number. By the way, if you don’t have that version installed (it installs via bundler), bundler will tell you it can’t find the gem. In that case, you’ll want to do gem install rails -v 4.0.8 and then re-run the command above.
This is a :thumbs down: for Rails documentation. This little trick isn’t even documented when I get the manual page for the rails new command (rails new -h)
When what you’re building is Rails with light interactions, marketing pages, landing pages, dashboard apps on Rails 7, Stimulus JS is exactly what you want. It gets out of your way just the right amount, making the easy easy and the hard possible
it is still possible to host your sitemap on external S3 buckets. You must set up a subdomain of your domain pointed as an Alternative Domain Name for your CloudFront distribution, and in order to do this you must go through domain verification with AWS.
Tested codebases are the most signficiant development from Rails and Agile over the last 15 years. End-to-end testing, in particular, is the defining reason why Agile and Rails have been so successful. Not writing tests should be seen as akin to malpractice in software development. Hiring someone to write untested code should be outlawed.