add a semi functional RoR example