- @publication = Publication.find_by_name(params[:pub])
-
- joins = "JOIN issue_publications ON (issues.id = issue_publications.issue_id)"
- conditions = ['issue_publications.publication_id = ? ', @publication.id ]
- @issues = Issue.all(:joins => joins, :conditions => conditions)
- respond_to do |format|
- format.html
- format.xml do
- render :xml => @issues
- end