A simple post system written in ruby on rails