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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to