David Herman
2009-Feb-10 23:27 UTC
Re: form_remote_for NOT passing param: I want put and I get
Your :method is in the wrong place, it belongs after the first hash, look at the docs for the form reote for -----Original Message----- From: Raimon Fs <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> Sent: Tuesday, February 10, 2009 5:08 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: form_remote_for NOT passing param: I want put and I get Frederick Cheung wrote:> On 10 Feb 2009, at 18:40, Raimon Fs wrote: > >> doesn''t work on 2.2.2, and I started to make changes and changes and >> read forums and the api, but no way ... >> > > Random guesses: assuming that the page contains more than just this: > - are all dom ids unique > - have you got nested forms ? > > FredHere is the .erb file: <% form_remote_for (:expedient, :method => :put, :url => {:action => ''create_ajax''}, :update =>''div_listd'') do |f| %> <%= f.error_messages %> <table class="edit"> <tr> <td class="label" width="100px">Referencia</td> <td class="data"><%= f.text_field :reference %></td> <td><%= submit_tag "AƱadir" %></td> </tr> </table> <% end %> <br> <h1>Expedientes listos para ser enviados</h1> <div id="div_listd" > <%= render :partial => "list" %> </div> <%= link_to ''General'', :action => ''index'' %> | <%= link_to ''Back'', expedients_path %> -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---