Rename todos to tables
This commit is contained in:
parent
c22a5ffac2
commit
5a930074f6
|
@ -0,0 +1,4 @@
|
|||
class TablesController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -1,4 +0,0 @@
|
|||
class TodosController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -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 %>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue