Ruby on Rails Discussions
How to convert the model_name to table_name in ruby on rails
rubyonrails-talk
Jakob1
(Jakob)
May 7, 2009, 6:17am
1
"CustomerDetails".tableize is what you should do.
/Jakob
Related topics
Topic
Replies
Views
Activity
retrieve model name from table name rails 3
rubyonrails-talk
0
181
June 21, 2012
Is there a utility tool to check the convention between DB table and AR model?
rubyonrails-talk
2
143
April 9, 2007
connecting model to singular named table
rubyonrails-talk
1
141
April 2, 2009
string to model name in active record
rubyonrails-talk
1
174
June 15, 2009
Table_name question
rubyonrails-talk
0
121
April 13, 2009