Ruby & Rails Tips ๐
2023
- Clear your development logs on startup โ effortlessly ๐ Mar 25
- Array#first and Array#last Methods: More Than Just the Beginning and End of an Array Mar 7
- How to Convert a URL Query String to a Hash in Ruby on Rails ๐ Mar 4
- Validate keys of hash using assert_valid_keys ๐ง Feb 7
- Optimizing database queries using pluck ๐ Feb 6
- Use render method in Rails ๐ Feb 5
2022
2021
- Use invert_where to invert where clause ๐งฉ Dec 26
- Authenticate By for preventing timing-based enum attacks โณ Dec 14
- Freezing string to improve performanceโก๏ธ Dec 9
- Use is_a? or kind_of? over instance_of? ๐ซ Oct 5
- Use of xxx_changed? and xxx_was methods in Rails ๐ Sep 29
- Multiple each_xxx method on string ๐ Sep 27
- values_at method to retrieve multiple non-sequential values โ๐ผ Sep 26
- Make large number more readable โ๐ผ Aug 17
- Use 'range' or 'between' for numerical comparison ๐งฎ Jul 9
- Different ways to call a method in Ruby ๐ Jun 16
- Customize default getter/setter methods โ๐ผ May 19
- What are symbols in Ruby and what they can be used for ๐ก Mar 23
2020
- Each With Index with customized starting index ๐๐ผ Dec 29
- Clear Sidekiq Jobs Cheat Sheet ๐ฃ Nov 21
- Array Operations ๐ Sep 26
- Handy numerical methods ๐งฎ Sep 16
- Hash Deep Merge ๐ Sep 2
- List all TODO tasks ๐ Aug 28
- Better way to write URL Validation ๐ Aug 26
- Like operator in MongoDB ๐งฉ Aug 23
- Array Partition โ Aug 22
- Safe Navigation Operator (&.) Aug 20
- Better way to write Email Validation ๐ง Aug 18
- Convert Array of Hashes to Hash ๐คธ๐ผโโ๏ธ Aug 10