Applying Active record model

format array, each element on separate line