How to write comments controller using Rails?