diff --git a/app/controllers/tests_controller.rb b/app/controllers/tests_controller.rb index 1526a689..3f49543c 100644 --- a/app/controllers/tests_controller.rb +++ b/app/controllers/tests_controller.rb @@ -4,6 +4,14 @@ def index @time = Time.now end + def show + @test = params[:id] + end + + def question_show + @test, @qst = params[:id], params[:question_id] + end + def create end diff --git a/app/views/tests/index.html.erb b/app/views/tests/index.html.erb index 39fce580..0915cef4 100644 --- a/app/views/tests/index.html.erb +++ b/app/views/tests/index.html.erb @@ -9,4 +9,4 @@
<%= @time %>