Dinarius = digital interest
15 August 2008

Errno::ENOENT in Ruby on Rails URL

It’s actually not so bad since Ruby’s error message just below will help you. Observe my own error’s first three lines of reporting:

Errno::ENOENT in Profile#show

Showing avatar/_sidebar_box.html.erb where line #12 raised:

No such file or directory – public/image/avatars

AHA! The clue is NOT in the second line where the line of code is extracted, but in the file directory that code tries to look in to: “No such file or directory…” In my case, an Avatar Model should have had public/images/avatars rather than image (singular).

Once the “s” was added and saved to the Model (not the View as indicated by the second line of the error), I was on my way again.

I like including what things like Errno::ENOENT actually mean in English, but at the moment, I dunno this one.

Favorite's the ARTICLE, not the SITE.