Class: Kms::Public::SitemapsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Kms::Public::SitemapsController
- Defined in:
- app/controllers/kms/public/sitemaps_controller.rb
Instance Method Summary collapse
Instance Method Details
#public_page_url(page) ⇒ Object
16 17 18 |
# File 'app/controllers/kms/public/sitemaps_controller.rb', line 16 def public_page_url(page) File.join(site_url, page.respond_to?(:permalink) ? page.permalink : page.fullpath) end |
#show ⇒ Object
7 8 9 10 |
# File 'app/controllers/kms/public/sitemaps_controller.rb', line 7 def show @pages = Kms::Page.published respond_with @pages end |
#site_url ⇒ Object
12 13 14 |
# File 'app/controllers/kms/public/sitemaps_controller.rb', line 12 def site_url 'http://' + request.host_with_port end |