How to import category groups?


(Arul Baskar) #1

hi,
Am import to users, category and groups.
now I have imported to users and user group members and category, but how to relationship with category and groups. please help me any sample code.
I have imported group users sample code below.
user = User.where(email: emailuser).first
if !group.users.include?(user)
group.add(user)
end
please help me how to category_groups relationship…

Thanks in advance,
Arul Baskar