Jeremy McAnally wrote:
You need to change “model_name” to your model’s name (e.g., Recipe or
whatever it’s called).
That is what I was thinking, but the poster didn’t state that nor did
they post it in a way that signified that. For example, the following
is the “normal” way that I am used to seeing something like that:
<model_name>.find( :all, :order => “id DESC” )
Also, since RoR hides most of the “code” behind the scenes, it is hard
to know exactly what has been defined and what hasn’t.
I suggest reading some tutorials about the basics of Rails before
jumping into a Cookbook…it would help with a lot of frustrations.
There don’t seem to be many tutorials on the web (at least that I could
find), but I have read every tutorial that I could find (multiple
times). Do you have any that you recommend?
I have also searched multiple forums to no avail. That is why I am
posting the question here.
I felt that this should be a relatively easy thing to do, but have spent
way too much time on this (especially when people tout how easy RoR is).