wipe and replace with rails framework