Weekly Ruby/Rails tips
Free
Learn more
Join now
Sebastien Auriault
Jul 23, 2022
💎Ruby: String concatenation performance
Did you know that concatenating strings together ("a" << "b") is a lot more performant than adding them to each other ("...
No comments
No likes
Read post…
Sebastien Auriault
Jun 24, 2022
💎Ruby tip: Powerful string formatter
Did you know that Ruby gives you a powerful string formatter to do things like choosing the number of decimals, converti...
No comments
No likes
Read post…
Sebastien Auriault
May 28, 2022
💎Rails tip: Clear logs and temp files
Did you know you could speed up your dev environment a bit by clearing up logs and temporary files? Especially when it's...
No comments
No likes
Read post…
Sebastien Auriault
Apr 30, 2022
💎Rails tip: Capture HTML
Did you know about the view helper "capture"? It allows you to store HTML into a variable and pass it down somewhere els...
No comments
No likes
Read post…
Sebastien Auriault
Apr 2, 2022
💎Ruby tip: ampersand(&) operator
Did you know that you can use the ampersand(&) operator with any method that requires a block for some convenient shortc...
No comments
No likes
Read post…
Sebastien Auriault
Mar 12, 2022
💎Rails tip: Template variants
Did you know about template variants? Useful when you have let's say one view for admins and one for normal users. Or on...
No comments
No likes
Read post…
Sebastien Auriault
Mar 5, 2022
💎Rails tip: PostgreSQL generated columns
Did you know Rails 7 added support for PostgreSQL generated columns? These columns will be calculated by the database on...
No comments
No likes
Read post…
Sebastien Auriault
Feb 19, 2022
💎Rails tip: Load async
Did you know that Rails 7 added a way to run queries in parallel? This can give good performance gains if you have multi...
No comments
No likes
Read post…
Sebastien Auriault
Feb 5, 2022
💎Rails tip: Interval column type
Did you know that since Rails 6.1, you can easily add a column of type interval if you use Postgres? This can be conveni...
2 comments
No likes
Read post…
Sebastien Auriault
Jan 29, 2022
💎Rails tip: Infinite range queries
You can use infinite ranges with dates and numbers in your ActiveRecord queries.
Examples ⬇️
# Find all posts created in ...
No comments
No likes
Read post…