to_yaml in view isn't a good idea.