From 1bc945a9874722d1e0d236265f607f6fa78f609d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 4 Nov 2023 10:02:01 -0400 Subject: show player's own solution on show page --- app/views/wittle/puzzles/_handle_puzzle.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/wittle/puzzles/_handle_puzzle.html.erb b/app/views/wittle/puzzles/_handle_puzzle.html.erb index 81bca29..e451745 100644 --- a/app/views/wittle/puzzles/_handle_puzzle.html.erb +++ b/app/views/wittle/puzzles/_handle_puzzle.html.erb @@ -51,7 +51,7 @@ window.onload = function() { <% else %> var puzzle = window.deserializePuzzle("<%= @puzzle.data %>") draw(puzzle) - drawPath(puzzle, JSON.parse("<%= escape_javascript(sanitize @puzzle.solved_data) %>")) + drawPath(puzzle, JSON.parse("<%= escape_javascript(sanitize @solution) %>")) window.trace = function() {} <% end %> } -- cgit 1.4.1