I’m using has_many and through relationship between two models
Profile and User
has_many :communities, :through=>profiles
When i try to do
@user.communities, Rails is searching for foreign key of user in profile
table, whereas profile and user have habtm relationship.
How to solve this problem?
Its urgent. please help