From 9c3bdd3da00322e8dd0d1b7223f93dc200967d6b Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Thu, 5 Jul 2012 16:04:50 +0200 Subject: add test descriptions for validation --- app/controllers/test_sheet_controller.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/controllers/test_sheet_controller.rb (limited to 'app/controllers/test_sheet_controller.rb') 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 -- cgit v1.2.3