diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:44:38 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:44:38 -0400 |
| commit | 17d660fd4b8516d6b446f7c41d7b076a29a242a1 (patch) | |
| tree | 115e7f3c1a3aa5bdc29dfa6d0c994eb795c658f6 /config | |
| parent | 835af696703484208882a70cc5dd47c5838ecf58 (diff) | |
| download | thoughts-17d660fd4b8516d6b446f7c41d7b076a29a242a1.tar.gz thoughts-17d660fd4b8516d6b446f7c41d7b076a29a242a1.tar.bz2 thoughts-17d660fd4b8516d6b446f7c41d7b076a29a242a1.zip | |
Added comment deleting
Also I seem to have fixed the JS errors that were preventing the fancy stuff in the admin panel from working.
Diffstat (limited to 'config')
| -rw-r--r-- | config/initializers/js_routes.rb | 7 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
2 files changed, 9 insertions, 0 deletions
| diff --git a/config/initializers/js_routes.rb b/config/initializers/js_routes.rb new file mode 100644 index 0000000..7bc0c65 --- /dev/null +++ b/config/initializers/js_routes.rb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | JsRoutes.setup do |c| | ||
| 2 | # Setup your JS module system: | ||
| 3 | # ESM, CJS, AMD, UMD or nil | ||
| 4 | # c.module_type = "ESM" | ||
| 5 | c.module_type = nil | ||
| 6 | c.namespace = 'Routes' | ||
| 7 | end | ||
| diff --git a/config/routes.rb b/config/routes.rb index 2bae007..dcfe673 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -15,6 +15,8 @@ Rails.application.routes.draw do | |||
| 15 | resources :links, except: [:show] | 15 | resources :links, except: [:show] |
| 16 | 16 | ||
| 17 | resources :games, except: [:show] | 17 | resources :games, except: [:show] |
| 18 | |||
| 19 | resources :comments, only: [:index, :destroy] | ||
| 18 | end | 20 | end |
| 19 | 21 | ||
| 20 | devise_for :users, controllers: { | 22 | devise_for :users, controllers: { |
