diff options
Diffstat (limited to 'app/controllers/test_sheet_controller.rb')
| -rw-r--r-- | app/controllers/test_sheet_controller.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/test_sheet_controller.rb b/app/controllers/test_sheet_controller.rb new file mode 100644 index 000000000..5bc3374e2 --- /dev/null +++ b/app/controllers/test_sheet_controller.rb @@ -0,0 +1,14 @@ +class TestSheetController < ApplicationController + + def show + @page = TestSheetPage.find(slug) + @toc = TestSheetPage.find("toc") + end + + private + + def slug + params[:slug] or "toc" + end + +end |
