I have two tables with a simple has_and_belongs_to_many relationship.
class Author < ActiveRecord::Base has_and_belongs_to_many :sources end
class Source < ActiveRecord::Base has_and_belongs_to_many :authors end
Naturally I have an Authors table, a Sources table, and an AuthorsSources table.
I have created a form with no problem, and the form saves the authors and sources and their relationship correctly.
Now I'm trying to set up the view for the show method, where users can see the Source and all of the Authors associated with it.
How do I go about doing this? I've looked all over the place, and can't find any pointers. Let me know if you need any more information.
Thank you!