I want to fill an instance variable with all my Groups names.
How do I do this?
@groups = Group.name.all
Obviously, this doesn't work. But I don't even know what to search for. The table is called groups, the field name. I am doing this from a different controller but I can see the groups if I use
@groups = Group.first.name
So the associations seem to work.