redo app under rails 4