Sha256: 6a8753bb5c029aec60fec5a3a5ebb5c6194933267b36e63dd3fdd055dfb1f6ab

Contents?: true

Size: 526 Bytes

Versions: 8

Compression:

Stored size: 526 Bytes

Contents

class SitemapController < BaseController
  layout false
  caches_action :index

  def index
    @users = User.active.select('id, login, updated_at, login_slug')
    @posts = Post.select('posts.id, posts.user_id, posts.published_as, posts.published_at, users.id, users.login_slug').joins(:user)   #"LEFT JOIN users ON users.id = posts.user_id")

    @categories = Category.find(:all)
  
    respond_to do |format|
      format.html {
        render :layout => 'application'
      }
      format.xml 
    end
  end
  
  
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/controllers/sitemap_controller.rb
community_engine-2.3.1 app/controllers/sitemap_controller.rb
community_engine-2.3.0 app/controllers/sitemap_controller.rb
community_engine-2.1.0 app/controllers/sitemap_controller.rb
community_engine-2.0.0 app/controllers/sitemap_controller.rb
community_engine-2.0.0.beta3 app/controllers/sitemap_controller.rb
community_engine-2.0.0.beta2 app/controllers/sitemap_controller.rb
community_engine-2.0.0.beta1 app/controllers/sitemap_controller.rb