In Rails 8, adding a `!` to a type automatically makes the column non-nullable.
These small additions are what make Rails great! ๐
๐ launchkit.codes
In Rails 8, you can now access your notes directly in the browser by visiting `GET /rails/info/notes`!
Small details like this are why we love @rails! ๐
โจ RUBYCADEMY CARDS โจ
Rails has a `halted_callback_hook` that fires whenever a before_* callback halts. ๐คฉ
Super handy for debugging and logging!
#rubyonrails
Rails 7.1 added a neat little upgrade to rails routes --expanded: Source Locations! ๐
Now you can instantly see exactly where each route is defined in your codebase.
#rubyonrails
Ruby makes it so easy to keep user input within a safe range using `clamp()`! ๐
Perfect for forcing a value between MIN and MAX without extra ifs.
๐ launchkit.codes