Keeping logic out of view

Viewed 8

so supposedly keeping logic out of your view is good practice. How far does that go though? Say, I have a model category that has_many shows, and on the category's show view I want to display all shows that belong to the category.

Would passing @category to the view and then doing @category.shows in the view be bad practice? Is it too much logic for the view?

0 Answers
Related