adding rails script back to app