Need some advice. I’ve got two modules: artists and paintings.
In my home page, I’ve got a 2nd page that says “Browse paintings”,
which displays ALL paintings of ALL artists. This is being rendered by
In another page, I should show all paintings of a specific artist
ONLY. Meaning, paintings from ONE artist. I cant use paintings#index
for this anymore since it is already being used by the homepage. Also
take note, both pages are rendered differently (meaning, data and
display are not the same). They don’t look alike. So I can’t use index
for both pages.
What approach would you take?
I am thinking of creating a method in the artists module called:
list_paintings. And then in /app/views/list_paintings.html.erb
What are your thoughts?