aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/test_sheet_controller.rb
diff options
context:
space:
mode:
authorMarc Florisson2012-07-06 16:46:04 +0200
committerMarc Florisson2012-07-06 16:46:04 +0200
commitc0a4aeefa149f558daecbdbfeaf683a642771329 (patch)
treee454e189d9af3601421256f4665b87a9db9fe4ce /app/controllers/test_sheet_controller.rb
parenta94b6b696990fd038cc425ed93f6971c1093e8cf (diff)
parent9848694c64bf7e7183d23b8adce92a80fa0155b4 (diff)
downloadchouette-core-c0a4aeefa149f558daecbdbfeaf683a642771329.tar.bz2
Merge branch 'master' of chouette.dryade.priv:/srv/git/chouette2
Diffstat (limited to 'app/controllers/test_sheet_controller.rb')
-rw-r--r--app/controllers/test_sheet_controller.rb14
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