rails def app