def page_list(answer_sheets, a = nil, custom_pages = nil)
      page_list = []
      answer_sheets.each do |answer_sheet|
        pages.each do |page|
          page_list << new_page_link(answer_sheet, page, a)
        end
      end
      page_list = page_list + custom_pages unless custom_pages.nil?
      page_list
    end
def page_list(answer_sheets, a = nil, custom_pages = nil)
      page_list = []
      answer_sheets.each do |answer_sheet|
        pages.each do |page|
          page_list << new_page_link(answer_sheet, page, a)
        end
      end
      page_list = page_list + custom_pages unless custom_pages.nil?
      page_list
    end
for pages_list sidebar