Class: Cms::SitemapsController

Inherits:
TbCore::ApplicationController
  • Object
show all
Defined in:
app/controllers/cms/sitemaps_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
# File 'app/controllers/cms/sitemaps_controller.rb', line 3

def show
  @pages = SpudPage.published_pages.viewable.order(:spud_page_id)
  respond_with @pages
end