This is one of those simple questions that is hard to search and find an answer for, probably because most people just 'get it'.
Well, I have what I hope is a simple one.
I have the following:
<% form_remote_for(:chat_message, :url => chat_messages_path(@chat), :update => 'message') do |f| %>
<%= f.text_area :message %>
<%= submit_tag "Send" %>
<% end %>
Works all fine and dandy but when I submit, the data is sent but I would like the text area to be blanked out again. It contains the submitted text.
What am I doing wrong?