[Issue #5] - Reworked app to better organize results with their corresponding tests
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
class GameData < Sinatra::Base
|
||||
get '/' do
|
||||
tests = Test.reverse(:updated_at).limit(10).all()
|
||||
results = Result.reverse(:updated_at).limit(10).all()
|
||||
|
||||
erb :'index/index', locals: {
|
||||
title: 'Dashboard',
|
||||
tests: tests,
|
||||
results: results
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user