A clone of rails in ruby code