I have a HABTM relation ship between users and channels, where the user is subscribed to the channel. I want to show an “unsubscribe link” if the user is already subscribe to the channel. How do I test if the user is part of channel.users?
Share
try calling:
for the user you want to test. See the Ruby documentation on Arrays for more info. Good luck!