We're going to talk about Enumerable#inject! Inject is super cool and if you don't use it in your code, then you should start. Really.
Ruby & Ruby on Rails : Inject
April 10, 2014 by Thibault
September 11, 2013 by Thibault
Today, we are going to do some model inheritance with Active Record! This is not something that you should do everyday but in the right situation, it's just awesome. Some parts can be tricky to implement, especially the routing and the creation of a shared controller.
READ MOREWe're going to talk about Enumerable#inject! Inject is super cool and if you don't use it in your code, then you should start. Really.
April 10, 2014 by Thibault
I'm sure you know about the Law of Demeter. It's also known as the principle of least knowledge. Let's see how to apply it in Ruby on Rails !
November 4, 2013 by Thibault
Today we will see a quick tip about scopes in Rails 4.
October 23, 2013 by Thibault
In the last article, we created our controller and define the index view. In this one, we are going to add the missing views and see some tricks to handle paths for STI models.
October 9, 2013 by Thibault
Time to continue learning about Single Table Inheritance with Ruby on Rails.
October 9, 2013 by Thibault
Let's say you are working on a mobile website or a mobile webapp. You develop it in your desktop browser because it's much easier, right ? When finally comes the time to test it on a device/simulator, something goes wrong. How can you find out what ? There is no debugging tool integrated in mobile Safari... Desktop Safari to the rescue !
August 31, 2013 by Thibault
I used to have problems with the _mobile_ thing when creating mobile websites. Indeed, if you want your mobile website to look good on devices, you need to define a few things : viewport, icons, splashscreens... So today, I'm going to tell you exactly what you need to do to make your website mobile-ready.
August 27, 2013 by Thibault
August 24, 2013 by Thibault