John Merlino
2010-Jan-26 16:26 UTC
difference between underscore, tableize and self.class.model
Hey all, Not sure what the difference between underscore and tableize, other than tableize also pluralizes. However, not sure how they can be used differently. Obviously, you can use tableize to reference table name in database. But what different functionality does underscore provide? Also, what different functionality would calling self.class.model, where model is a model. Basically, while I know what these three are, I''m not sure how they can be used differently. Thanks for any suggestions. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.