Class: PageController

Inherits:
CartoonistController
  • Object
show all
Defined in:
app/controllers/page_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
7
8
9
# File 'app/controllers/page_controller.rb', line 2

def show
  path = params[:id].downcase
  @page = Page.from_path path

  cache_page_as "#{path}.#{cache_type}.html" do
    render
  end
end