hello, I have this in my code <% form_remote_for :temp, Job.new, :url => {:controller => ''tristate'', :action => ''create''}, :loading => ''ExpenseTracker.disableExpenseForm()'', :complete => ''ExpenseTracker.enableExpenseForm()'', :html => {:id => ''expense-form'',:category => ''job''} do |f| %> but id like to use the regular form of start_form_tag. can i do this? <% start_form_tag :action => ''create'', :category => ''job''%, :loading => ''ExpenseTracker.disableExpenseForm()'', :complete => ''ExpenseTracker.enableExpenseForm()'', :html => {:id => ''expense-form'',:category => ''job''} %> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
basically i am just trying to call the javascript code to display the ajax animation that the form is being processed. thanks poipu wrote:> hello, > I have this in my code > > <% form_remote_for :temp, > Job.new, > :url => {:controller => ''tristate'', > :action => ''create''}, > :loading => ''ExpenseTracker.disableExpenseForm()'', > :complete => ''ExpenseTracker.enableExpenseForm()'', > :html => {:id => ''expense-form'',:category => ''job''} do |f| %> > > > but id like to use the regular form of start_form_tag. can i do this? > > <% start_form_tag :action => ''create'', > :category => ''job''%, > :loading => ''ExpenseTracker.disableExpenseForm()'', > :complete => ''ExpenseTracker.enableExpenseForm()'', > :html => {:id => ''expense-form'',:category => ''job''} %>-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---