MattB wrote:
> Two models: Products & Categories, where the product details are
> imported from an external source on an ongoing basis, and have named
> categories that may not always match the categories listed in the
> Categories model, for example there might be a "widget" of external
> category "things", that needs to be in internal category "stuff". and
> another where the internal and external categories have the same name
> (more the latter than the former).
Sounds like you need a category map model (external to internal) for
those exception cases. When internal and external categories are the
same, there would not be any entry for the external category (although
you might include those for code simplicity); but definitely records for
the exceptions where you need to map external category "thing" to
internal category "stuff".
...
> At some point internal categories will need to be i18n'd (?! :-), and
> external categories could be in any language.
I assume that the 'catmap' model could handle those requirements.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment