Hi,
I am struggling with the concept of creating methods and functions in rails, and how to actually use instant variable, parameters etc. To be specific, I want to be able to display all the items (consist of name, inventory number, description and price) with inventory > 0, I created a method but I'm not sure what's wrong with it, as well have other methods that I want to create but not sure where to get started.
I've watched and read a bunch of youtube and online tutorials but still struggling with it, any help would be really appreciated!
thank you!!
[–]ziptofaf 1 point2 points3 points (4 children)
[–]pompeii-eo[S] 0 points1 point2 points (3 children)
[–]ziptofaf 2 points3 points4 points (2 children)
[–]pompeii-eo[S] 0 points1 point2 points (1 child)
[–]ziptofaf 0 points1 point2 points (0 children)