diff --git a/app/controllers/tests_controller.rb b/app/controllers/tests_controller.rb index 1526a689..8e5687e0 100644 --- a/app/controllers/tests_controller.rb +++ b/app/controllers/tests_controller.rb @@ -5,7 +5,9 @@ def index end def create - end + def show + @test = Test.find(id: params[:id]) + end 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 %>