-3

What is problem? I don't understand.

enter image description here

  • 2
    I guess what you try to do is `Article.all`, not `article.all` - case matters. – Konstantin Strukov Jul 17 '22 at 12:01
  • 2
    Please, post text as text, not as photographs of text. This is a website for programmers, not photographers. We want to copy&paste&run your code, copy&paste your inputs, read your outputs, and copy&paste&google your error messages, not critique your use of color and perspective. https://meta.stackoverflow.com/a/285557/2988 https://idownvotedbecau.se/imageofcode https://idownvotedbecau.se/imageofanexception/ – Jörg W Mittag Jul 17 '22 at 14:27

1 Answers1

0

There are 2 things that could be happening. First, you meant to list Article.all, referencing the class. Second, you're referencing article.all as a array, in which case it hasn't been defined as such in your code.

Also, please don't post images of code. Just copy/paste and use the code formatting tools. It really helps us understand what is going on.

Also, it helps to give as much background as possible, meaning what the code is supposed to do, why you're doing it, etc. The more thorough you are, the more helpful we can be.

beervenger
  • 226
  • 1
  • 4