RubyCademy (@RubyCademy) header
RubyCademy (@RubyCademy) profile picture

I'm also on YouTube: https://nitter.cf/t.co/GKiobBOTe3

Joined October 2018
Watch Shrek Over SSH! 🍿 🔗 youtube.com/watch?v=9aBB-x-Z…
4
425
Combine: ➡️ The `normalizes` macro ➡️ The Callable pattern ➡️ and the Arguments Forwarding shorthand to encapsulate your normalization logic into POROs and reuse them anywhere in your app! 🔗 launchkit.codes #rubyonrails
1
24
1,259
You can use an infinite range in `case/when` to express "N or more" in a clean, readable way! 🤩 🔗 launchkit.codes
16
751
In Rails 8, adding a `!` to a type automatically makes the column non-nullable. These small additions are what make Rails great! 💚 🔗 launchkit.codes
1
1
14
846
Tired of the default Rails DB console? In Rails 8, you can now customize it! 💚 #rubyonrails 🔗 launchkit.codes
2
19
1,040
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! 💚
3
30
926
✨ RUBYCADEMY CARDS ✨ Rails has a `halted_callback_hook` that fires whenever a before_* callback halts. 🤩 Super handy for debugging and logging! #rubyonrails
4
30
956
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
3
34
1,462
Helpers like these are exactly why we love Rails! 💚 #rubyonrails
1
1
20
994
Can You Solve This Ruby Interview Question? 🔗 youtube.com/watch?v=q9lxGwWi…
2
12
928
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
1
2
33
1,504
Done in just 7 lines of Ruby! 🤯 🔗 youtube.com/watch?v=PahRQGRK…
1
13
1,327
Rails 8 added `except_on:` for validations! 🤩 A clean way to say "always validate, except in this context." It is simpler than `if:` or `unless:` and perfect for drafts, multi-step forms, or any workflow where some fields can be missing! 🔗 launchkit.codes
1
5
1
58
2,437
One of my favorite additions to Rails 7.1 is that you can now alias columns in `select` with a hash instead of raw SQL! 🤩 🔗 launchkit.codes
38
1,753
When your business rule says "exactly one record must exist", Rails has built-in methods to guarantee it. That’s what `find_sole_by` is built for! 🤩 🔗 launchkit.codes
5
24
1,202
So much knowledge in one joke!
1
32
1,731
Most SaaS ideas fail before launch, not because they’re bad, but because the founder got bored building auth and billing. 🔗 launchkit.codes
🤖 Made with AI
1
9
1,293
Create a powerful Reset-to-Default pattern using: ➡️ ActiveSupport::Concern ➡️ ActiveRecord::ModelSchema.column_defaults ➡️ and the lesser-known `attribute_method_affix` #rubyonrails
1
1
30
1,781
I built the boilerplate I wish I had 3 years ago! 🤩 🔗 youtube.com/watch?v=eJNpX8x0…
🤖 Made with AI
1
1
5
1,414
Take advantage of: ➡️ the Rails::Console class ➡️ and IO.popen to add handy pbcopy helper that copies any Rails console result straight to your clipboard! 🤩#rubyonrails
4
27
1,580