Class: PageController

Inherits:
ApplicationController show all
Defined in:
lib/generators/pages/templates/page_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
7
8
# File 'lib/generators/pages/templates/page_controller.rb', line 2

def show
  @page = Page.find_by_name params[:page]

  if !@page
    render :action => params[:page]
  end
end