Forum: Ruby on Rails tableize and model modules

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sam L. (Guest)
on 2006-05-10 21:05
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?
This topic is locked and can not be replied to.