RubyCademy
@RubyCademy
The best Ruby code examples on π. For more PRO Tips and foundational knowledge: π https://www.rubycademy.com
β¨ RubyCademy: Your Pathway to Ruby Mastery β¨ NEED A REFRESHER? Make the most of our two guided paths: β‘οΈ Ruby for Beginners β‘οΈ Advanced Ruby to refresh your skills and deepen your Ruby knowledge! [ Thread π§΅] #ruby #rubyonrails
![RubyCademy's tweet image. β¨ RubyCademy: Your Pathway to Ruby Mastery β¨
NEED A REFRESHER?
Make the most of our two guided paths:
β‘οΈ Ruby for Beginners
β‘οΈ Advanced Ruby
to refresh your skills and deepen your Ruby knowledge!
[ Thread π§΅] #ruby #rubyonrails](https://pbs.twimg.com/media/GvCWwAMXAAAKidJ.jpg)
![RubyCademy's tweet image. β¨ RubyCademy: Your Pathway to Ruby Mastery β¨
NEED A REFRESHER?
Make the most of our two guided paths:
β‘οΈ Ruby for Beginners
β‘οΈ Advanced Ruby
to refresh your skills and deepen your Ruby knowledge!
[ Thread π§΅] #ruby #rubyonrails](https://pbs.twimg.com/media/GvCWyF5XMAAs_qk.jpg)
Ruby Is the Definition of Developer Happiness! The problem: You have raw sign-in data with email duplicates. You want a sorted summary of unique users and their sign-in counts. The one-liner solution π #ruby #rubyonrails

Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! π€― #rubyonrails

Use this simple technique to select only the table columns you need to render your view. Thank you, @rails! π

A new @goodenoughtests workshop is scheduled for 1st August. If you think about joining, I have for you here what other people say about the workshop. Here is @kaspth about how the workshop can help with clients and teams:
For sure. π Here are some real examples of my top 3 Rails methods π #rubyonrails
What are your top 3 underrated Rails methods? Here are mine (no particular order): β Object#with_options β ActiveRecord::Migration#up_only β ActiveSupport::Testing::TimeHelpers#travel_to Drop yours in replies π #rubyonrails
With `except_on:` in validations, we can skip specific validations in certain contexts! π€© #rubyonrails

You can identify slow views by calling `benchmark` around suspected parts to determine their loading times! π€© #rubyonrails #railsconf

What's the return value of the following Ruby code? ``` [1, 3, 2, 1, 2] | [] # => ??? ``` Please answer the question before checking the correct answer π The correct answer with explanation: rubycademy.com/quiz/array-uniβ¦ #rubyonrails