Rails tip: Use subdirectories to namespace images by resource. Eg. images/people/add.gif vs. images/add_person.gif.
You’re reading Signal v. Noise, a publication about the web by Basecamp since 1999. Happy !
Rails tip: Use subdirectories to namespace images by resource. Eg. images/people/add.gif vs. images/add_person.gif.
Fabian Neumann
on 13 Oct 08What’s the advantage over images/people_add.gif?
Adam McIntyre
on 16 Oct 08The advantage lies primarily in being able to quickly find images by category. If you have a directory named images/buttons, you’ll know where to find all your buttons. So will another developer or designer who’s new to the project.
I’ve used this convention on a lot of big sites with many, many image assets, and it works, plain and simple.
This discussion is closed.