changed app to use rails