Read-only patch written, frontend shows dictionary in different languages
This commit is contained in:
@@ -3,6 +3,7 @@ class ActiveLanguageController < ApplicationController
|
||||
def set_active_language
|
||||
if Language.find_by_id(params[:active_language_id]) != nil
|
||||
cookies[:active_language_id] = params[:active_language_id]
|
||||
redirect_back fallback_location: root_path
|
||||
else
|
||||
redirect_to root_path, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user