a clone of Reddit's basic functionalities in RoR