You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sitemaps_controller.rb
    path of file: ./repos/open-build-service/src/api/app/controllers/webui
    
    the code of the file until where you have to start completion: class Webui::SitemapsController < Webui::WebuiController
  def index
    render layout: false, content_type: 'application/xml'
  end

  def projects
    @projects_
    
  def packages
    project_name = params[:project_name].to_s

    projects_table = Project.arel_table

    predication =
      case project_name
      when /home/
        projects_table[:name].matches("#{project_name}%")
      when 'opensuse'
        projects_table[:name].matches('openSUSE:%')
      else
        projects_table[:name].does_not_match_all(['home:%', 'DISCONTINUED:%', 'openSUSE:%'])
      end