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
<%= form_remote_tag :update => “reversed”,
:url => { :action => ‘reverse’ } %>
Text to reverse: <%= text_field_tag 'text_to_reverse' %>
<%= submit_tag 'Reverse!' %>
<%= end_form_tag %>Suggestions?