counter app / ruby on rails4