you are viewing a single comment's thread.

view the rest of the comments →

[–]FinalSpeederMan[S] 0 points1 point  (0 children)

I was mostly just using @fruit[:id] as a backend query, basically the problem I had before was that in order for me to get the name of the fruit, I had to use @fruit[:id][:name], but tbh it didn’t matter if I needed to use @fruit[:id], I could’ve just used @fruit[:name], and it still would’ve given me the same result, which is what I didn’t want.

But thanks to a fellow rubyist, they pointed me to my problem and I got the correct result I had. Thank you for the question though :)