Continuing from here: Rails - Form problems , everytime I try to create a new group_membership
I get this: WARNING: Can't mass-assign protected attributes: group, member
at my log and the ID's are added blank.
Have been making changes to the attr_accessible
of my models but so far no solution.
Thanks in advance.
确保在attr_accessible
调用中添加:group
和:member
:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.