Add active_language controller and cookie storage

This commit is contained in:
maddiebaka
2023-10-27 15:24:48 -04:00
parent c2891a66f8
commit 3ba4a49a26
8 changed files with 89 additions and 1 deletions

View File

@@ -3,6 +3,9 @@ Rails.application.routes.draw do
#get 'dictionary/index'
resources :dictionary, only: [:index, :show, :create]
resources :words, only: [:index, :show]
post '/set_active_language', action: :set_active_language, controller: :active_language
namespace :admin do
resources :languages
end