class Wof < ActiveRecord::Base has_and_belongs_to_many :members end class Member < ActiveRecord::Base end class WofController < ApplicationController scaffold :wof def show @wof = Wof.find(@params["id"]) render_text @wof.members end end