/ Published in: Ruby
                    
                                        
An example ajax form tag
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<%= form_remote_tag(
:url => {:controller => "controller_name", :action => "action_name"},
:update => {:success => '', :failure => 'ErrorDiv'},
:loading => "Element.show('spinner');",
:failure => "",
:success => "Element.hide('DialogContainer'); Element.hide('spinner'); Element.setOpacity('main', '1');")%>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                