Qayrwan Rails Based Code