I have a basic web app with a form using ActionText
. When changes are made, a have a Trix listener that calls my controller via AJAX (autosave!). The controller looks like this:
def update
respond_to do |format|
if @model.update(model_params)
format.json { render json: @model }
else
format.json { render json: @model.errors, status: :unprocessable_entity }
end
end
end
This was working absolutely fine on Rails 6.1 alpha, but since the update to Rails 6.1 RC1 the same code results in this error:
ActionView::MissingTemplate (Missing partial action_text/content/_layout with
{:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}.
Is anyone able to shed any light on why this might be? I have tried digging through the source but I'm none the wiser. I wondered also whether it was related to this issue.
Thanks in advance.