Moving "map.resources: highest did not work for me i moved 
map.resources :users to top but still my destroy method which was using 
:method => 'post', did not work untill i add the following in my 
routes.rb under the map.resources :users

map.connect '/users/:id/', :controller => 'users', :action => 'destroy', 
:id => /\d+/

, so the new routes.rb (without comments #) looked like following:

ActionController::Routing::Routes.draw do |map|
 map.resources :users
 map.connect '/users/:id/', :controller => 'users', :action => 
'destroy', :id => /\d+/

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end

I hope that helps


-- 
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 [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