tutorial http://net.tutsplus.com/tutorials/building-ribbit-in-rails/