If I want to use for example,
<% for product in @products %>
in “index.html” (for HomePage) of the “public” folder to call the
objects in “products” database table, how do I do that please?
It seems that I could not directly call it in the file.
actually, I want to partial-render a list for products in the homepage.
I think there must be a smart way.
btw, is “index.html” the only place we can design homepages?
Thx for help.