has_many associations should set id rather than URL.