Monday, March 19, 2007

Interesting observation about pluralization

As I was uploading my newly fixed test site out to a hosting site, I learned something else about this whole pluralization and convention thing that's a bit disturbing.

Let's say you have a controller asset_controller.rb and a model asset.rb. If you accidentally also have files assets_controller.rb and assets.rb, then you get a 500 error. Now I consider that pretty strange: if we're following convention and we have the correct files out there, then why do these non-conventional files come into play at all? Shouldn't they be simply ignored?

Seems a little fragile to me that two files that should be ignored cause the whole app to fail.

No comments:

Post a Comment