I have a small question about collection_select in Rails 4. When we call in the collection_select all the elements of a table example:
Is MVC violated? In other words: if i have a collection_select in the view of products and it calls Category.all in this view, for me we are violated the MVC pattern. Cause Category.all is something that should be in a Model.
Tell me if i'm in right.
Thx all.
Aucun commentaire:
Enregistrer un commentaire