I’m continuously being impressed by the productivity and ease of use enhancements Rails keeps making after all these years it has been around.
Today I discovered that scaffolds generated in brand new
--css=tailwind enabled Rails 7 codebase, is generating basic, beautiful Tailwind markup out of the box.
rails g scaffold_controller User username:string
Further I have this in my
config/application.rb to prevent generating files that I don’t use for every single resource until they are needed:
config.generators do |g| g.assets false g.helper false g.jbuilder false end
That’s a damn good job Rails community. ❤️