Posted By

jordanbrock on 02/01/07


Tagged

form ajax ruby rubyonrails


Versions (?)

Who likes this?

8 people have marked this snippet as a favorite

ryanprel
Firanide
nekton
bordalix
vali29
aka
umang_nine
webstic


Remote Form Tag


 / Published in: Ruby
 

An example ajax form tag

  1. <%= form_remote_tag(
  2. :url => {:controller => "controller_name", :action => "action_name"},
  3. :update => {:success => '', :failure => 'ErrorDiv'},
  4. :loading => "Element.show('spinner');",
  5. :failure => "",
  6. :success => "Element.hide('DialogContainer'); Element.hide('spinner'); Element.setOpacity('main', '1');")%>

Report this snippet  

You need to login to post a comment.