Изменение ключа «рендеринга» с «обычного» на «json» вызывает ошибку сервера
#ruby-on-rails #ruby-on-rails-6 #active-model-serializers Вопрос: Рассмотрим следующий код class AuthenticatedController < ApplicationController rescue_from InvalidCredentials, with: :unauthenticated def current_user raise InvalidCredentials end private def unauthenticated(_error) render plain: { error: 'text' }.to_json, status:…