Hi, I have a few models not using a Serial id as primary key, instead using a unique string related to the domain of the objects.
When using them with rails3 (using rails3_datamapper) I run into problems with things like content_tag_for who seem to assume that all objects have an id property. I wanted to ask if anyone else has come across this before and if they have any tips on good ways to deal with it? I am thinking that I could add something like this to keep rails happy: property :id, Serial, :key => false Haven't tried it yet, thought I'd check if there were any good techniques I could reuse before getting into it. Thanks. -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.