The only reserved word is capitalized Product , and this refers to the object model. For example, to get all the products and store them in the @products variable, you would do:
@products = Product.all @product = Product.find(1)
If you stop the @ "products" sign, it will only be saved as a local variable, and your view will not be able to access it.
In this example, @products and @product are the variables that you declare in the controller. You can simply use:
@lotsofproducts = Product.all
source share