Add my solution to Rails exercise