rails: upgrade to Rails 4

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>