So, before asking, I must say I am absolutely new to web programming. I have started studying 2 days ago and my only programming experience is with C language. I am trying to learn ruby on rails through some exercises. This means that I don't know almost anything about the syntax, but I am getting it little by little.
So, the current exercise is: to fetch a JSON file, obtained from a website API, and store its data in a model, which in turn I must display on a table.
Because I have a C experience, I understand this problem as something like 1. creating a new structure, 2. creating a vector for this structure, 3. reading data from a file a storing it in this vector, 4.printing the data. All that is done through writing lines of code in a single .c file and then running it in my terminal.
But things don't seem to work in this manner with rails language. I have read some codes with similar problems but I'm just not quite sure where to write them. I mean, in which files/directories? Because in C we don't have such a thing as multiple files and folders (we just write a one-page program). I am kind of lost.
If someone can help with some general steps, as where/why/what to write, I would be very grateful! There is no need to be completely specific just some overall ideas would be fantastic