I have some doubts when to use this syntaxis in models:
First, width this code:
And second width this code:
def add_to_cart(msg = nil)
I don’t know when should I use this syntaxis in this model methods. Can
someone explain it with small examples. I’ll appreciate any help.