diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a8154340 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/log/* diff --git a/app/controllers/tests_controller.rb b/app/controllers/tests_controller.rb index 1526a689..14bca21d 100644 --- a/app/controllers/tests_controller.rb +++ b/app/controllers/tests_controller.rb @@ -2,10 +2,17 @@ class TestsController < Simpler::Controller def index @time = Time.now + @tests = Test.all + # status 201 + # headers['Content-Type'] = 'text/plain' + # render plain: "Time: #{@time}" + # puts headers end - def create - + def show + @test = Test.find(id: params[:id]) end + def create; end + end diff --git a/app/views/tests/index.html.erb b/app/views/tests/index.html.erb index 39fce580..4c5dc2b5 100644 --- a/app/views/tests/index.html.erb +++ b/app/views/tests/index.html.erb @@ -8,5 +8,6 @@
<%= @time %>
+<%= @tests %>