Class: BluePages::PagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/blue_pages/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



7
8
9
10
11
12
13
14
# File 'app/controllers/blue_pages/pages_controller.rb', line 7

def show
  @page = ::Page.where(:path => params[:path]).first
  if @page
    render_page
  else
    render_404
  end
end