I am getting mad. Here are two requests which should be PUT, but one is and not the other. I do not understand why. They come from two different forms. Processing NodesController#show (for ...) [GET] Session ID: ... Parameters: {"node"=>{...}, "_method"=>"put", "action"=>"show", "id"=>"251", "controller"=>"nodes"} Processing NodesController#update (for ...) [PUT] Session ID: ... Parameters: {"node"=>{...}, "edit"=>"popup", "_method"=>"put", "action"=>"update", "id"=>"251", "controller"=>"nodes"} Any clue before I jump into the raw_data ? -- 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 -~----------~----~----~----~------~----~------~--~---
Gaspard Bucher wrote:> I am getting mad. Here are two requests which should be PUT, but one is > and not the other. I do not understand why. They come from two different > forms. > > Processing NodesController#show (for ...) [GET] > Session ID: ... > Parameters: {"node"=>{...}, "_method"=>"put", "action"=>"show", > "id"=>"251", "controller"=>"nodes"} > > Processing NodesController#update (for ...) [PUT] > Session ID: ... > Parameters: {"node"=>{...}, "edit"=>"popup", "_method"=>"put", > "action"=>"update", "id"=>"251", "controller"=>"nodes"} > > > Any clue before I jump into the raw_data ?After searching in the raw_data of the mongrel instance, I read "REQUEST_METHOD"=>"GET", and *nasty me* I saw that my form was : <form action=''nodes/251''> instead of <form action=''nodes/251'' method=''post''>. Sorry for the trouble. Gaspard -- 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 -~----------~----~----~----~------~----~------~--~---
Are you on edge rails, by any chance? I''m seeing some weirdness introduced in the past couple of days, where ajax requests don''t seem to be having their method received correctly... On 19 May 2007, at 20:07, Gaspard Bucher wrote:> > I am getting mad. Here are two requests which should be PUT, but > one is > and not the other. I do not understand why. They come from two > different > forms. > > Processing NodesController#show (for ...) [GET] > Session ID: ... > Parameters: {"node"=>{...}, "_method"=>"put", "action"=>"show", > "id"=>"251", "controller"=>"nodes"} > > Processing NodesController#update (for ...) [PUT] > Session ID: ... > Parameters: {"node"=>{...}, "edit"=>"popup", "_method"=>"put", > "action"=>"update", "id"=>"251", "controller"=>"nodes"} > > > Any clue before I jump into the raw_data ? > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Jonathan del Strother wrote:> Are you on edge rails, by any chance? I''m seeing some weirdness > introduced in the past couple of days, where ajax requests don''t seem > to be having their method received correctly...My error was related to a form tag missing the method=''post'' attribute. I am doing a LOT of cleanup and froze rails to rev. 6633 so I can track my own bugs. I will catchup when my own code is stable. You can look at the commit feed feed://dev.rubyonrails.org/timeline?changeset=on&max=50&daysback=90&format=rss to see if anything changed related to your bugs... Gaspard --- zena, the peaceful cms http://zenadmin.org -- 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 -~----------~----~----~----~------~----~------~--~---