I make a CRUD with Routes: *resources :movies* so, the destroy action stopped working: No route matches "/movies/3" so I did *match ''videos/:id'' => ''videos#destroy''* then I get: Couldn''t find Movie with ID=new then I do *match ''movies/:id'' => ''movies#destroy''* *match "movies/new" => "movies#new"* *match "movies/:id/edit" => "movies#edit"* *match "movies" => "movies#index"* And I get the same problem Then I try: *resources : movies, :only => [:index, :edit, :new, :create, :destroy]* And get the same thing <o> Someone know why? Thanks! -- *Fernando Aureliano* -- 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.
Hello dude, I have had the same error once! But my problem was a conflict between jquery and prototype! I solved that problem just deleting any prototype file and installing jquery gem! Hope it work for you too! best regards On Tue, Jun 28, 2011 at 3:46 PM, Fernando Aureliano < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> I make a CRUD with Routes: > > *resources :movies* > > so, the destroy action stopped working: > > No route matches "/movies/3" > > so I did > > *match ''videos/:id'' => ''videos#destroy''* > > > then I get: > > Couldn''t find Movie with ID=new > > > then I do > > *match ''movies/:id'' => ''movies#destroy''* > *match "movies/new" => "movies#new"* > *match "movies/:id/edit" => "movies#edit"* > *match "movies" => "movies#index"* > > And I get the same problem > > Then I try: > > *resources : movies, :only => [:index, :edit, :new, :create, :destroy]* > > And get the same thing <o> > > > Someone know why? > > > Thanks! > > > -- > *Fernando Aureliano* > > -- > 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. >-- thiagocifani http://thiagocifani.wordpress.com/ twitter.com/thiagocifani del.icio.us/thiagocifani <http://del.icio.us/thiagocifani> -- 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.
Thanks, I did, now, he go to the post item, without delet it Oo On Tue, Jun 28, 2011 at 3:53 PM, thiagocifani <cifani.thiago-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> Hello dude, I have had the same error once! But my problem was a conflict > between jquery and prototype! > > I solved that problem just deleting any prototype file and installing > jquery gem! > > Hope it work for you too! > > > best regards > > On Tue, Jun 28, 2011 at 3:46 PM, Fernando Aureliano < > mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: > >> I make a CRUD with Routes: >> >> *resources :movies* >> >> so, the destroy action stopped working: >> >> >> No route matches "/movies/3" >> >> so I did >> >> *match ''videos/:id'' => ''videos#destroy''* >> >> >> then I get: >> >> >> Couldn''t find Movie with ID=new >> >> >> then I do >> >> *match ''movies/:id'' => ''movies#destroy''* >> *match "movies/new" => "movies#new"* >> *match "movies/:id/edit" => "movies#edit"* >> *match "movies" => "movies#index"* >> >> And I get the same problem >> >> Then I try: >> >> *resources : movies, :only => [:index, :edit, :new, :create, :destroy]* >> >> And get the same thing <o> >> >> >> Someone know why? >> >> >> Thanks! >> >> >> -- >> *Fernando Aureliano* >> >> -- >> 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. >> > > > > -- > thiagocifani > http://thiagocifani.wordpress.com/ > twitter.com/thiagocifani > del.icio.us/thiagocifani > <http://del.icio.us/thiagocifani> > > > -- > 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. >-- *Fernando Aureliano* -- 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.
You need to post snippets of your view and controller code in order to get a full assessment, but if I were trying to diagnose this on my own application, I''d initially look for an HTTP verb mismatch. Are you sure that the attempted destroy request is calling :method => :delete ? On Tue, Jun 28, 2011 at 9:12 PM, Fernando Aureliano < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Thanks, I did, > > now, he go to the post item, without delet it > > Oo > > > On Tue, Jun 28, 2011 at 3:53 PM, thiagocifani <cifani.thiago-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> Hello dude, I have had the same error once! But my problem was a conflict >> between jquery and prototype! >> >> I solved that problem just deleting any prototype file and installing >> jquery gem! >> >> Hope it work for you too! >> >> >> best regards >> >> On Tue, Jun 28, 2011 at 3:46 PM, Fernando Aureliano < >> mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: >> >>> I make a CRUD with Routes: >>> >>> *resources :movies* >>> >>> so, the destroy action stopped working: >>> >>> >>> No route matches "/movies/3" >>> >>> so I did >>> >>> *match ''videos/:id'' => ''videos#destroy''* >>> >>> >>> then I get: >>> >>> >>> Couldn''t find Movie with ID=new >>> >>> >>> then I do >>> >>> *match ''movies/:id'' => ''movies#destroy''* >>> *match "movies/new" => "movies#new"* >>> *match "movies/:id/edit" => "movies#edit"* >>> *match "movies" => "movies#index"* >>> >>> And I get the same problem >>> >>> Then I try: >>> >>> *resources : movies, :only => [:index, :edit, :new, :create, :destroy]* >>> >>> And get the same thing <o> >>> >>> >>> Someone know why? >>> >>> >>> Thanks! >>> >>> >>> -- >>> *Fernando Aureliano* >>> >>> -- >>> 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. >>> >> >> >> >> -- >> thiagocifani >> http://thiagocifani.wordpress.com/ >> twitter.com/thiagocifani >> del.icio.us/thiagocifani >> <http://del.icio.us/thiagocifani> >> >> >> -- >> 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. >> > > > > -- > *Fernando Aureliano* > > > -- > 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. >-- 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.
solved this by redoing the button delete. Was the same script, but work Crazy O.O Thanks everybody! On Tue, Jun 28, 2011 at 6:30 PM, Chris Kottom <chris-kMviOf/NVQxZWXO/OqhO/A@public.gmane.org> wrote:> You need to post snippets of your view and controller code in order to get > a full assessment, but if I were trying to diagnose this on my own > application, I''d initially look for an HTTP verb mismatch. Are you sure that > the attempted destroy request is calling :method => :delete ? > > On Tue, Jun 28, 2011 at 9:12 PM, Fernando Aureliano < > mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: > >> Thanks, I did, >> >> now, he go to the post item, without delet it >> >> Oo >> >> >> On Tue, Jun 28, 2011 at 3:53 PM, thiagocifani <cifani.thiago-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: >> >>> Hello dude, I have had the same error once! But my problem was a conflict >>> between jquery and prototype! >>> >>> I solved that problem just deleting any prototype file and installing >>> jquery gem! >>> >>> Hope it work for you too! >>> >>> >>> best regards >>> >>> On Tue, Jun 28, 2011 at 3:46 PM, Fernando Aureliano < >>> mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: >>> >>>> I make a CRUD with Routes: >>>> >>>> *resources :movies* >>>> >>>> so, the destroy action stopped working: >>>> >>>> >>>> No route matches "/movies/3" >>>> >>>> so I did >>>> >>>> *match ''videos/:id'' => ''videos#destroy''* >>>> >>>> >>>> then I get: >>>> >>>> >>>> Couldn''t find Movie with ID=new >>>> >>>> >>>> then I do >>>> >>>> *match ''movies/:id'' => ''movies#destroy''* >>>> *match "movies/new" => "movies#new"* >>>> *match "movies/:id/edit" => "movies#edit"* >>>> *match "movies" => "movies#index"* >>>> >>>> And I get the same problem >>>> >>>> Then I try: >>>> >>>> *resources : movies, :only => [:index, :edit, :new, :create, :destroy]* >>>> >>>> And get the same thing <o> >>>> >>>> >>>> Someone know why? >>>> >>>> >>>> Thanks! >>>> >>>> >>>> -- >>>> *Fernando Aureliano* >>>> >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> thiagocifani >>> http://thiagocifani.wordpress.com/ >>> twitter.com/thiagocifani >>> del.icio.us/thiagocifani >>> <http://del.icio.us/thiagocifani> >>> >>> >>> -- >>> 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. >>> >> >> >> >> -- >> *Fernando Aureliano* >> >> >> -- >> 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. >> > > -- > 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. >-- *Fernando Aureliano* -- 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.