It seems like user behavior has to be aware of the awkwardness here regardless of whether they learn to use a "magic" method or to structure things a bit differently.
I say this as I'm generally opposed to proliferating "magic methods" a la Rails. It's a major factor that brought me to Merb and DM. url (:user) is just as good, clearer, and faster than user_url, and far easier to debug. I believe the same applies here. Either way the user has to know what they are doing. What about: User.create(:role => role) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamapper@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---