Are there some exceptions to this command? I was having problems with
an ajax form still rendering the layout, then copy-pasted this code from
an ebook to test it and it gives a “template is missing” error as though
it’s still trying to render.
def reverse @reversed_text = params[:text_to_reverse].reverse
render :layout => false
end