From 8d21b802c35d5b1f8e6e868aaa20c1c0066275c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 2 Mar 2021 00:41:56 +0100 Subject: Add new interfaces tree, remake database code as 'ruby' interface This follows the directory structure outlined in my previous commit message. --- web/interface.rb | 9 --------- web/views/index.erb | 19 ------------------- 2 files changed, 28 deletions(-) delete mode 100644 web/interface.rb delete mode 100644 web/views/index.erb (limited to 'web') diff --git a/web/interface.rb b/web/interface.rb deleted file mode 100644 index 5914866..0000000 --- a/web/interface.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'sinatra' -require_relative '../db' - -$config = Config.first - -get '/' do - @posts = Post.all - erb :index -end diff --git a/web/views/index.erb b/web/views/index.erb deleted file mode 100644 index 80e64a5..0000000 --- a/web/views/index.erb +++ /dev/null @@ -1,19 +0,0 @@ - - - - - <%= $config.title %> - - -

<%= $config.title %>

- <% for post in @posts %> -

<%= post.title %>

-
-

<%= post.created_at %>

-
-
- <%= post.body %> -
- <% end %> - - -- cgit v1.2.3