Ruby on Rails best practice for main page controller # action?

If this is a website with a list of products, and then with links to each product, is it good practice to make a homepage products#index? (product controller and index action).

Or is it better to avoid products#indexand use home#index, and then each product refers to products#show? Perhaps both will work, but only a matter of style and, perhaps, some pros and cons of using one and the other?

+3
source share
1 answer

. - , products#index, , . , , , ... home#index.

+4

All Articles