Class: Jobshop::PagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/jobshop/pages_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#layout_for_application

Instance Method Details

#showObject



7
8
9
10
11
# File 'app/controllers/jobshop/pages_controller.rb', line 7

def show
  args = valid_page? ? [ template: page ]
                     : [ file: "public/404.html", status: :not_found ]
  render(*args)
end