Remote Form Tag


/ Published in: Ruby
Save to your folder(s)

An example ajax form tag


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.