Class: WhitePapersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- WhitePapersController
- Defined in:
- app/controllers/white_papers_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/white_papers_controller.rb', line 7 def index # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @white_paper in the line below: present(@page) end |
#show ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/controllers/white_papers_controller.rb', line 13 def show @white_paper = WhitePaper.find(params[:id]) check_content_availability(@white_paper) # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @white_paper in the line below: present(@page) end |