How to convert the model_name to table_name in ruby on rails

"CustomerDetails".tableize is what you should do.

/Jakob