Rename todos to tables

This commit is contained in:
Trevor Vallender 2024-05-26 09:36:07 +01:00
parent c22a5ffac2
commit 5a930074f6
5 changed files with 10 additions and 10 deletions

View File

@ -0,0 +1,4 @@
class TablesController < ApplicationController
def index
end
end

View File

@ -1,4 +0,0 @@
class TodosController < ApplicationController
def index
end
end

View File

@ -18,7 +18,6 @@
</header>
<nav>
<ul>
<li><%= link_to t("site_name"), root_path %></li>
<% if logged_in? %>
<li><%= link_to t("log_out"), logout_path, data: {turbo_method: :delete} %></li>
<% else %>

View File

@ -1,15 +1,16 @@
Rails.application.routes.draw do
get "todos/index"
default_url_options host: "summonplayer.com"
root "todos#index"
root "tables#index"
get "login" => "sessions#new", as: :login
delete "logout" => "sessions#destroy", as: :logout
resources :users, only: %i[new create]
resources :account_verifications, only: %i[show]
resources :sessions, only: %i[new create destroy]
resources :users, only: [ :new, :create ]
resources :account_verifications, only: [ :show ]
resources :sessions, only: [ :new, :create, :destroy ]
resources :tables, only: [ :index ]
get "up" => "rails/health#show", as: :rails_health_check
end