Reza
2010-Dec-05 04:01 UTC
RAILS3: method => :delete STOPPED working! (& CONFIRMATION is ignored)
Hi there, I''ve been working on an app with Rails3/Win32/MySQL. It has been working fine, until I don''t exactly when the :destroy method soes not work and on the log I see the GET is sent to the controller. DELETE on /en/order/3 becomes GET! Not only it was working but if I create a new app in the same context (Rails3/Win/MySQL) it works fine. I create the same MODEL, completely bare with only scaffold, and destroy works and confirmation does not get ignored. I use will_paginate and HAML as the only extra gem. The problem came (or I noticed it) at the same time I started porting my ERB files to HAML. But the new app I create when I port it to HAML using will_paginate too, it still works. I read that others have the same problem. Some of the similar messages go to few years back (2007). Any idea out there? Thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Dec-05 12:00 UTC
Re: RAILS3: method => :delete STOPPED working! (& CONFIRMATION is ignored)
On 5 December 2010 04:01, Reza <reza.naq-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there, > > I''ve been working on an app with Rails3/Win32/MySQL. It has been > working fine, until I don''t exactly when the :destroy method soes not > work and on the log I see the GET is sent to the controller. > DELETE on /en/order/3 becomes GET!Roll back to previous versions in your version control system and find out what you did to make it fail. Then you will be better able to sort it. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-08 21:32 UTC
Re: RAILS3: method => :delete STOPPED working! (& CONFIRMATION is ignored)
Colin Law wrote in post #966279:> On 5 December 2010 04:01, Reza <reza.naq-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hi there, >> >> I''ve been working on an app with Rails3/Win32/MySQL. It has been >> working fine, until I don''t exactly when the :destroy method soes not >> work and on the log I see the GET is sent to the controller. >> DELETE on /en/order/3 becomes GET! > > Roll back to previous versions in your version control system and find > out what you did to make it fail. Then you will be better able to > sort it. >Yup. If you are using Git, git bisect is fantastic for this.> ColinBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.