# Form\_remote\_tag

**URL:** <https://www.ruby-forum.com/t/form-remote-tag/159442>\
**Category:** Rails\
**Created:** [February 4, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/form-remote-tag/159442 "2009-02-04T16:22:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [February 4, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/form-remote-tag/159442/1 "2009-02-04T16:22:04Z")

</div>

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:

View-  
\<% 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 -%\>’

Controller-  
def update\_action  
@account = params[:id]

render :update do |page|  
page.replace\_html ‘update\_div’,  
:inline =\> ‘ **ARG** ’  
end  
end

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

-S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [February 5, 2009, 2:36am UTC](https://www.ruby-forum.com/t/form-remote-tag/159442/2 "2009-02-05T02:36:32Z")

</div>

Do you mean a js alert?

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

On 05/02/2009, at 2:22 AM, Shandy N.  
\<removed\_email\_address@domain.invalid
