From 8fb5e8b211548499c634e65ba8f4c5cf54b13c77 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Mon, 2 May 2011 12:43:33 +0200 Subject: [PATCH] Introducing help controller, moving wiki syntax documentation to help controller --- app/controllers/help_controller.rb | 9 +++++++++ .../views/help/wiki_syntax.html.erb | 3 +-- .../views/help/wiki_syntax_detailed.html.erb | 0 test/functional/help_controller_test.rb | 8 ++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/controllers/help_controller.rb rename public/help/wiki_syntax.html => app/views/help/wiki_syntax.html.erb (96%) rename public/help/wiki_syntax_detailed.html => app/views/help/wiki_syntax_detailed.html.erb (100%) create mode 100644 test/functional/help_controller_test.rb diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb new file mode 100644 index 00000000..025057f5 --- /dev/null +++ b/app/controllers/help_controller.rb @@ -0,0 +1,9 @@ +class HelpController < ApplicationController + def wiki_syntax + render :layout => false + end + + def wiki_syntax_detailed + render :layout => false + end +end diff --git a/public/help/wiki_syntax.html b/app/views/help/wiki_syntax.html.erb similarity index 96% rename from public/help/wiki_syntax.html rename to app/views/help/wiki_syntax.html.erb index 6886f340..aeb7c4f0 100644 --- a/public/help/wiki_syntax.html +++ b/app/views/help/wiki_syntax.html.erb @@ -13,7 +13,6 @@ table td code { font-size: 1.2em; } table td h1 { font-size: 1.8em; text-align: left; } table td h2 { font-size: 1.4em; text-align: left; } table td h3 { font-size: 1.2em; text-align: left; } - @@ -60,7 +59,7 @@ table td h3 { font-size: 1.2em; text-align: left; } !attached_image! -

More Information

+

More Information

diff --git a/public/help/wiki_syntax_detailed.html b/app/views/help/wiki_syntax_detailed.html.erb similarity index 100% rename from public/help/wiki_syntax_detailed.html rename to app/views/help/wiki_syntax_detailed.html.erb diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb new file mode 100644 index 00000000..6da7b843 --- /dev/null +++ b/test/functional/help_controller_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class HelpControllerTest < ActionController::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end