updated rails MVC