As my database and application grows, I'm starting to run into a large number of models and naming conflicts. I found out that I can switch big_complex_named_model.rb to module/simple_model.rb which changes BigComplexNamedModel to Module::SimpleModel which cleans things up quite a bit. However, if I run: 'Module::SimpleModel'.tableize I get 'module/simple_models' which is not a valid table name. If it were 'module_simple_model', or 'module__simple_model' (to differentiate modules from class names) my life would be that much easier. Could this be considered a Rails bug, or am I just an edge case?
on 2006-05-10 19:05