first_app in ruby