Hello everyone, I am new to ruby, i’m facing issues in it.
When i try to print id for object in loop, i get an error
Here is my code
@lists = List.all @lists.each do |list| raise list.id end exit
I’m getting the error
exception class/object expected