I have this strange situation where I have a form and when you hit the
form button an indicator is supposed to flash at the bottom of the
screen and say something like ‘Information Saved’ or ‘Information not
saved’, whatever. The problem is that instead of flashing the message
when I submit the form I get a prompt box saying ‘File Download’ and I
am at a complete loss of why it is doing this. Here is my code:

<% form_remote_tag :url => {:action => ‘update_action’,
:id => params[:id]}, :complete => “new Effect.Appear(‘update_div’);
new Effect.Pulsate(‘update_div’);” do -%>

<%= hidden_field(:user, :design) %>
<%= submit_tag ‘Update Template’ %>

<% end -%>’

def update_action
@account = params[:id]

render :update do |page|
page.replace_html ‘update_div’,
:inline => ‘ARG

It is pretty straight forward, but like I said I’m at a loss of why the
strange action. Any ideas? Thx,



Do you mean a js alert?

Learn rails:

On 05/02/2009, at 2:22 AM, Shandy N.