When I started learning Rails, I was always in a state of confusion about using includes or joins, because both are…
Are you building an awesome Rails web application? Do you want to deploy it in a remote…
Today I had to calculate an age in Rails and I wanted to share the process and final outcome and see if anyone had a nicer way.
My first attempt was pretty naive;
Time.zone.now.year - date_of_birth.year
It’s a well spread knowledge that Controller shouldn’t have too much business logic, actually it’s better if you keep any kind of business logic away from your controller.
The asset pipeline does three main things: