Thanks for explanation. I have one more question. In the following example, why do we type @destination versus (just) destination or letter ‘d’??? is “@” always used???
why do we type @destination versus (just) destination or letter ‘d’?
@destination is the name of the variable with the image, name, and description. If you named it @current_destination or @d or something else instead of @destination, your code would still work, although it wouldn’t follow the standards I’ve seen (@something almost always represents the currently shown something)
is “@” always used?
When the variable is created in the controller file, yes, although if you rename the variable without it, your code will probably still work.